Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func CompareKeyver(a, b Keyver) int
 - func DeploySecrets(ctx context.Context, app *fly.AppCompact, args DeploymentArgs) error
 - func JoinLabelVersion(ver Keyver, prefix string) string
 - func New() *cobra.Command
 - func SetSecretsAndDeploy(ctx context.Context, flapsClient flapsutil.FlapsClient, app *fly.AppCompact, ...) error
 - func UnsetSecretsAndDeploy(ctx context.Context, flapsClient flapsutil.FlapsClient, app *fly.AppCompact, ...) error
 - func ValidKeyLabel(label string) error
 - type DeploymentArgs
 - type KeyTypeInfo
 - type Keyver
 - type SecretType
 - type SemanticType
 
Constants ¶
      View Source
      
  
    const ( SECRETKEY_TYPE_HS256 = fly.SECRETKEY_TYPE_HS256 SECRETKEY_TYPE_HS384 = fly.SECRETKEY_TYPE_HS384 SECRETKEY_TYPE_HS512 = fly.SECRETKEY_TYPE_HS512 SECRETKEY_TYPE_XAES256GCM = fly.SECRETKEY_TYPE_XAES256GCM SECRETKEY_TYPE_NACL_AUTH = fly.SECRETKEY_TYPE_NACL_AUTH SECRETKEY_TYPE_NACL_BOX = fly.SECRETKEY_TYPE_NACL_BOX SECRETKEY_TYPE_NACL_SECRETBOX = fly.SECRETKEY_TYPE_NACL_SECRETBOX SECRETKEY_TYPE_NACL_SIGN = fly.SECRETKEY_TYPE_NACL_SIGN )
      View Source
      
  
const ( SemTypeSigning = SemanticType("signing") SemTypeEncrypting = SemanticType("encrypting") )
Variables ¶
      View Source
      
  var SupportedSecretTypes = GetSupportedSecretTypes()
    SupportedSecretTypes is a list of the SecretTypes for supported key types.
      View Source
      
  var SupportedSemanticTypes = GetSupportedSemanticTypes()
    SupportedSecretTypes is a list of the SemanticTypes for supported key types.
Functions ¶
func CompareKeyver ¶ added in v0.3.4
func DeploySecrets ¶ added in v0.1.71
func DeploySecrets(ctx context.Context, app *fly.AppCompact, args DeploymentArgs) error
DeploySecrets deploys machines with the new secret if this step is not to be skipped.
func JoinLabelVersion ¶ added in v0.3.4
JoinLabelVersion adds a keyversion to a key label.
func SetSecretsAndDeploy ¶ added in v0.0.536
func SetSecretsAndDeploy(ctx context.Context, flapsClient flapsutil.FlapsClient, app *fly.AppCompact, secrets map[string]string, args DeploymentArgs) error
func UnsetSecretsAndDeploy ¶ added in v0.0.536
func UnsetSecretsAndDeploy(ctx context.Context, flapsClient flapsutil.FlapsClient, app *fly.AppCompact, secrets []string, args DeploymentArgs) error
func ValidKeyLabel ¶ added in v0.3.4
validKeyLabel determines if a key label is valid or not.
Types ¶
type DeploymentArgs ¶ added in v0.3.182
type KeyTypeInfo ¶ added in v0.3.4
type KeyTypeInfo struct {
	// contains filtered or unexported fields
}
    type Keyver ¶ added in v0.3.4
type Keyver int64
Keyver is a key version.
func SplitLabelKeyver ¶ added in v0.3.4
splitLabelKeyver splits a label into an integer version and the remaining label. It returns a version of KeyverUnspec if no label is present or if it would be out of range.
type SecretType ¶ added in v0.3.4
type SecretType = string
func GetSupportedSecretTypes ¶ added in v0.3.4
func GetSupportedSecretTypes() []SecretType
func SemanticTypeToSecretType ¶ added in v0.3.4
func SemanticTypeToSecretType(st SemanticType) (SecretType, error)
type SemanticType ¶ added in v0.3.4
type SemanticType string
func GetSupportedSemanticTypes ¶ added in v0.3.4
func GetSupportedSemanticTypes() []SemanticType
func SecretTypeToSemanticType ¶ added in v0.3.4
func SecretTypeToSemanticType(st SecretType) (SemanticType, error)
 Click to show internal directories. 
   Click to hide internal directories.