apis

package
v0.0.0-...-8a8b58e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 21 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 EvaluateOpts struct {
	ExpectAllKeys     bool
	ExpectAllVarsUsed bool
}

type InterpolateOpts

type InterpolateOpts struct {
	VarFlags
	OpsFlags
}

type MultiVars

type MultiVars struct {
	// contains filtered or unexported fields
}

func NewMultiVars

func NewMultiVars(varss []Variables) MultiVars

func (MultiVars) Get

func (m MultiVars) Get(varDef VariableDefinition) (interface{}, bool, error)

func (MultiVars) List

func (m MultiVars) List() ([]VariableDefinition, error)

type OpsFileArg

type OpsFileArg struct {
	Ops patch.Ops
	// contains filtered or unexported fields
}

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

func (OpsFlags) AsOp

func (f OpsFlags) AsOp() patch.Op

type Patching

type Patching struct {
	// contains filtered or unexported fields
}

func NewPatching

func NewPatching(
	stateStore storage.Store,
	fs fileio.Fs,
) Patching

func (Patching) ProvisionManifest

func (p Patching) ProvisionManifest() (*artifacts.Manifest, error)

type RSAKey

type RSAKey struct {
	PrivateKey string `json:"private_key" yaml:"private_key"`
	PublicKey  string `json:"public_key" yaml:"public_key"`
}

type RSAKeyGenerator

type RSAKeyGenerator struct{}

func NewRSAKeyGenerator

func NewRSAKeyGenerator() RSAKeyGenerator

func (RSAKeyGenerator) Generate

func (g RSAKeyGenerator) Generate(parameters interface{}) (interface{}, error)

type SSHKey

type SSHKey struct {
	PrivateKey           string `json:"private_key" yaml:"private_key"`
	PublicKey            string `json:"public_key" yaml:"public_key"`
	PublicKeyFingerprint string `json:"public_key_fingerprint" yaml:"public_key_fingerprint"`
}

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

type Template

type Template struct {
	// contains filtered or unexported fields
}

func NewTemplate

func NewTemplate(bytes []byte) Template

func (Template) Evaluate

func (t Template) Evaluate(vars Variables, op patch.Op, opts EvaluateOpts) ([]byte, error)

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

func (f VarFlags) AsVariables() Variables

type VariableDefinition

type VariableDefinition struct {
	Name    string
	Type    string
	Options interface{}
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL