Documentation ¶
Index ¶
- Constants
- type CertsLoader
- type EvaluateOpts
- type InterpolateOpts
- type MultiVars
- type OpsFileArg
- type OpsFlags
- type Patching
- type RSAKey
- type RSAKeyGenerator
- type SSHKey
- type SSHKeyGenerator
- type StaticVariables
- type Template
- type ValueGenerator
- type ValueGeneratorConcrete
- type ValueGeneratorFactory
- type VarFlags
- type VariableDefinition
- type Variables
- type VarsCertLoader
- type VarsFSStore
- type VarsFileArg
Constants ¶
View Source
const DefaultPasswordLength = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertsLoader ¶
type CertsLoader interface {
LoadCerts(string) (*x509.Certificate, *rsa.PrivateKey, error)
}
type EvaluateOpts ¶
type InterpolateOpts ¶
type MultiVars ¶
type MultiVars struct {
// contains filtered or unexported fields
}
func NewMultiVars ¶
func (MultiVars) List ¶
func (m MultiVars) List() ([]VariableDefinition, error)
type OpsFileArg ¶
func (*OpsFileArg) UnmarshalFlag ¶
func (a *OpsFileArg) UnmarshalFlag(filePath string) error
type OpsFlags ¶
type OpsFlags struct {
OpsFiles []OpsFileArg `long:"ops-file" short:"o" value-name:"PATH" description:"Load manifest operations from a YAML file"`
}
Shared
type RSAKeyGenerator ¶
type RSAKeyGenerator struct{}
func NewRSAKeyGenerator ¶
func NewRSAKeyGenerator() RSAKeyGenerator
func (RSAKeyGenerator) Generate ¶
func (g RSAKeyGenerator) Generate(parameters interface{}) (interface{}, error)
type SSHKeyGenerator ¶
type SSHKeyGenerator struct{}
func NewSSHKeyGenerator ¶
func NewSSHKeyGenerator() SSHKeyGenerator
func (SSHKeyGenerator) Generate ¶
func (g SSHKeyGenerator) Generate(parameters interface{}) (interface{}, error)
type StaticVariables ¶
type StaticVariables map[string]interface{}
func (StaticVariables) Get ¶
func (v StaticVariables) Get(varDef VariableDefinition) (interface{}, bool, error)
func (StaticVariables) List ¶
func (v StaticVariables) List() ([]VariableDefinition, error)
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func NewTemplate ¶
type ValueGenerator ¶
type ValueGenerator interface {
Generate(interface{}) (interface{}, error)
}
func NewPasswordGenerator ¶
func NewPasswordGenerator() ValueGenerator
type ValueGeneratorConcrete ¶
type ValueGeneratorConcrete struct {
// contains filtered or unexported fields
}
func NewValueGeneratorConcrete ¶
func NewValueGeneratorConcrete(loader CertsLoader) ValueGeneratorConcrete
func (ValueGeneratorConcrete) GetGenerator ¶
func (vgc ValueGeneratorConcrete) GetGenerator(valueType string) (ValueGenerator, error)
type ValueGeneratorFactory ¶
type ValueGeneratorFactory interface {
GetGenerator(valueType string) (ValueGenerator, error)
}
type VarFlags ¶
type VarFlags struct { VarsFiles []VarsFileArg `long:"vars-file" short:"l" value-name:"PATH" description:"Load variables from a YAML file"` VarsFSStore VarsFSStore `long:"vars-store" value-name:"PATH" description:"Load/save variables from/to a YAML file"` }
func (VarFlags) AsVariables ¶
type VariableDefinition ¶
type Variables ¶
type Variables interface { Get(VariableDefinition) (interface{}, bool, error) List() ([]VariableDefinition, error) }
type VarsCertLoader ¶
type VarsCertLoader struct {
// contains filtered or unexported fields
}
func NewVarsCertLoader ¶
func NewVarsCertLoader(vars Variables) VarsCertLoader
func (VarsCertLoader) LoadCerts ¶
func (l VarsCertLoader) LoadCerts(name string) (*x509.Certificate, *rsa.PrivateKey, error)
type VarsFSStore ¶
type VarsFSStore struct { ValueGeneratorFactory ValueGeneratorFactory // contains filtered or unexported fields }
func NewVarsFSStore ¶
func NewVarsFSStore(fs fileio.Fs) VarsFSStore
func (VarsFSStore) Get ¶
func (s VarsFSStore) Get(varDef VariableDefinition) (interface{}, bool, error)
func (VarsFSStore) IsSet ¶
func (s VarsFSStore) IsSet() bool
func (VarsFSStore) List ¶
func (s VarsFSStore) List() ([]VariableDefinition, error)
func (*VarsFSStore) UnmarshalFlag ¶
func (s *VarsFSStore) UnmarshalFlag(data string) error
type VarsFileArg ¶
type VarsFileArg struct { Vars StaticVariables // contains filtered or unexported fields }
func (*VarsFileArg) UnmarshalFlag ¶
func (a *VarsFileArg) UnmarshalFlag(filePath string) error
Source Files ¶
- certs_loader_interface.go
- interop_opts.go
- multi_vars.go
- obj_to_struct.go
- ops_file_arg.go
- ops_flags.go
- password_generator.go
- patching.go
- rsa_key_generator.go
- ssh_key_generator.go
- static_vars.go
- template.go
- value_generator.go
- value_generator_factory.go
- value_generator_factory_concrete.go
- var_flags.go
- variables.go
- vars_cert_loader.go
- vars_file_arg.go
- vars_fs_store.go
Click to show internal directories.
Click to hide internal directories.