From 642fb9c28fb0d2dcd41853166ed2cbcc7bdeb813 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 19 Jul 2018 12:52:20 -0700 Subject: [PATCH] Move internal jose package --- command/crypto/jwe/decrypt.go | 2 +- command/crypto/jwe/encrypt.go | 2 +- command/crypto/jwk/create.go | 2 +- command/crypto/jwk/keyset.go | 2 +- command/crypto/jwk/public.go | 2 +- command/crypto/jwk/thumbprint.go | 2 +- command/crypto/jwt/sign.go | 2 +- command/crypto/jwt/verify.go | 2 +- {command/crypto/internal/jose => jose}/generate.go | 0 {command/crypto/internal/jose => jose}/parse.go | 0 {command/crypto/internal/jose => jose}/types.go | 0 {command/crypto/internal/jose => jose}/validate.go | 0 12 files changed, 8 insertions(+), 8 deletions(-) rename {command/crypto/internal/jose => jose}/generate.go (100%) rename {command/crypto/internal/jose => jose}/parse.go (100%) rename {command/crypto/internal/jose => jose}/types.go (100%) rename {command/crypto/internal/jose => jose}/validate.go (100%) diff --git a/command/crypto/jwe/decrypt.go b/command/crypto/jwe/decrypt.go index 6cd3f886..bd93cc5f 100644 --- a/command/crypto/jwe/decrypt.go +++ b/command/crypto/jwe/decrypt.go @@ -7,7 +7,7 @@ import ( "github.com/smallstep/cli/errs" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" + "github.com/smallstep/cli/jose" "github.com/smallstep/cli/utils" "github.com/urfave/cli" ) diff --git a/command/crypto/jwe/encrypt.go b/command/crypto/jwe/encrypt.go index f1da73d2..da3e9495 100644 --- a/command/crypto/jwe/encrypt.go +++ b/command/crypto/jwe/encrypt.go @@ -5,8 +5,8 @@ import ( "os" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" "github.com/smallstep/cli/errs" + "github.com/smallstep/cli/jose" "github.com/smallstep/cli/utils" "github.com/urfave/cli" ) diff --git a/command/crypto/jwk/create.go b/command/crypto/jwk/create.go index f760d337..1a5523f4 100644 --- a/command/crypto/jwk/create.go +++ b/command/crypto/jwk/create.go @@ -9,9 +9,9 @@ import ( "os" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" "github.com/smallstep/cli/crypto/pem" "github.com/smallstep/cli/errs" + "github.com/smallstep/cli/jose" "github.com/smallstep/cli/utils" "github.com/urfave/cli" ) diff --git a/command/crypto/jwk/keyset.go b/command/crypto/jwk/keyset.go index d04f1d37..76e06acc 100644 --- a/command/crypto/jwk/keyset.go +++ b/command/crypto/jwk/keyset.go @@ -9,8 +9,8 @@ import ( "syscall" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" "github.com/smallstep/cli/errs" + "github.com/smallstep/cli/jose" "github.com/urfave/cli" ) diff --git a/command/crypto/jwk/public.go b/command/crypto/jwk/public.go index c98994d9..c3a97971 100644 --- a/command/crypto/jwk/public.go +++ b/command/crypto/jwk/public.go @@ -7,7 +7,7 @@ import ( "os" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" + "github.com/smallstep/cli/jose" "github.com/urfave/cli" ) diff --git a/command/crypto/jwk/thumbprint.go b/command/crypto/jwk/thumbprint.go index 86e0809b..987dc215 100644 --- a/command/crypto/jwk/thumbprint.go +++ b/command/crypto/jwk/thumbprint.go @@ -9,7 +9,7 @@ import ( "os" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" + "github.com/smallstep/cli/jose" "github.com/urfave/cli" ) diff --git a/command/crypto/jwt/sign.go b/command/crypto/jwt/sign.go index 5dc38bc7..8ce91fe7 100644 --- a/command/crypto/jwt/sign.go +++ b/command/crypto/jwt/sign.go @@ -10,8 +10,8 @@ import ( "time" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" "github.com/smallstep/cli/errs" + "github.com/smallstep/cli/jose" "github.com/smallstep/cli/utils" "github.com/urfave/cli" ) diff --git a/command/crypto/jwt/verify.go b/command/crypto/jwt/verify.go index 0bddc63d..c10fe471 100644 --- a/command/crypto/jwt/verify.go +++ b/command/crypto/jwt/verify.go @@ -6,8 +6,8 @@ import ( "time" "github.com/pkg/errors" - "github.com/smallstep/cli/command/crypto/internal/jose" "github.com/smallstep/cli/errs" + "github.com/smallstep/cli/jose" "github.com/smallstep/cli/utils" "github.com/urfave/cli" ) diff --git a/command/crypto/internal/jose/generate.go b/jose/generate.go similarity index 100% rename from command/crypto/internal/jose/generate.go rename to jose/generate.go diff --git a/command/crypto/internal/jose/parse.go b/jose/parse.go similarity index 100% rename from command/crypto/internal/jose/parse.go rename to jose/parse.go diff --git a/command/crypto/internal/jose/types.go b/jose/types.go similarity index 100% rename from command/crypto/internal/jose/types.go rename to jose/types.go diff --git a/command/crypto/internal/jose/validate.go b/jose/validate.go similarity index 100% rename from command/crypto/internal/jose/validate.go rename to jose/validate.go