Documentation
¶
Index ¶
- func GenerateCert(hosts []string) (caCert, cert, key string, err error)
- func GenerateCertWithCA(hosts []string, cacrt *pkix.Certificate, cakey *pkix.Key) (caCert, cert, key string, err error)
- func GenerateKeys() (publicKeyPem, privateKeyPem string, err error)
- func Initialize() (key *pkix.Key, crt *pkix.Certificate, err error)
- func NewContext(args []string, myflags []cli.Flag) (context *cli.Context)
- func NewPassword(strlen int) string
- func ToCliFlagArray(fs []pcli.Flag) (cliFlags []cli.Flag)
- type CloudConfigInfer
- type CloudConfigInferer
- type VaultRotater
- type VaultUnmarshal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCert ¶
GenerateCert - generates a caCert, cert and key
func GenerateCertWithCA ¶
func GenerateCertWithCA(hosts []string, cacrt *pkix.Certificate, cakey *pkix.Key) (caCert, cert, key string, err error)
GenerateCertWithCA - generates a certificate with a caCert and caKey, also return ca as string
func GenerateKeys ¶
func Initialize ¶
func Initialize() (key *pkix.Key, crt *pkix.Certificate, err error)
Initialize - generates a caCert and caKey
func NewContext ¶
func NewContext(args []string, myflags []cli.Flag) (context *cli.Context)
NewContext - convenience method to construct a valid cli.Context within a plugin
func NewPassword ¶
NewPassword - generates new password based on length
func ToCliFlagArray ¶
ToCliFlagArray - converts a plugin flag array into a codegangsta cli.Flag array
Types ¶
type CloudConfigInfer ¶
type CloudConfigInfer struct {
CloudConfig enaml.CloudConfigManifest
}
func NewCloudConfigInfer ¶
func NewCloudConfigInfer(c enaml.CloudConfigManifest) *CloudConfigInfer
NewCloudConfigInfer - get a cloud configinferer from a cloud config enaml object
func NewCloudConfigInferFromBytes ¶
func NewCloudConfigInferFromBytes(b []byte) *CloudConfigInfer
NewCloudConfigInferFromBytes - get a cloud configinferer from a cloud config bytes array
func (*CloudConfigInfer) InferDefaultAZ ¶
func (s *CloudConfigInfer) InferDefaultAZ() string
func (*CloudConfigInfer) InferDefaultDiskType ¶
func (s *CloudConfigInfer) InferDefaultDiskType() string
func (*CloudConfigInfer) InferDefaultNetwork ¶
func (s *CloudConfigInfer) InferDefaultNetwork() string
func (*CloudConfigInfer) InferDefaultVMType ¶
func (s *CloudConfigInfer) InferDefaultVMType() string
type CloudConfigInferer ¶
type VaultRotater ¶
type VaultUnmarshal ¶
func NewVaultUnmarshal ¶
func NewVaultUnmarshal(domain, token string) *VaultUnmarshal
func (*VaultUnmarshal) RotateSecrets ¶
func (s *VaultUnmarshal) RotateSecrets(hash string, secrets interface{}) error
func (*VaultUnmarshal) UnmarshalFlags ¶
func (s *VaultUnmarshal) UnmarshalFlags(hash string, flgs []pcli.Flag) error
UnmarshalFlags sets default values for any flags in flgs that have values in the specified Vault hash.
func (*VaultUnmarshal) UnmarshalSomeFlags ¶
func (s *VaultUnmarshal) UnmarshalSomeFlags(hash string, flags []pcli.Flag, flagnames ...string) error
UnmarshalSomeFlags is like UnmarshalFlags except it takes a whitelist of flags to unmarshal.