Documentation
¶
Index ¶
- type ExecNestedSchema
- type Factory
- type ProviderConfigSpec
- type Unit
- func (m *Unit) Build() error
- func (m *Unit) GetDiffData() interface{}
- func (m *Unit) GetState() interface{}
- func (m *Unit) GetUnitDiff() UnitDiffSpec
- func (m *Unit) KindKey() string
- func (m *Unit) LoadState(stateData interface{}, modKey string, p *project.StateProject) error
- func (m *Unit) ReadConfig(spec map[string]interface{}, stack *project.Stack) error
- func (m *Unit) ReplaceMarkers() error
- func (m *Unit) UpdateProjectRuntimeData(p *project.Project) error
- type UnitDiffSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecNestedSchema ¶
type ExecNestedSchema struct {
APIVersion string `yaml:"api_version,omitempty" json:"api_version,omitempty"`
Args []string `yaml:"args,omitempty" json:"args,omitempty"`
Command string `yaml:"command,omitempty" json:"command,omitempty"`
Env map[string]string `yaml:"env,omitempty" json:"env,omitempty"`
}
type Factory ¶
type Factory struct {
}
Factory factory for s3 backends.
func (*Factory) NewFromState ¶
func (f *Factory) NewFromState(spec map[string]interface{}, modKey string, p *project.StateProject) (project.Unit, error)
NewFromState creates new unit from state data.
type ProviderConfigSpec ¶
type ProviderConfigSpec struct {
ConfigPath string `yaml:"config_path,omitempty" json:"config_path,omitempty"`
ClientCertificate string `yaml:"client_certificate,omitempty" json:"client_certificate,omitempty"`
ConfigContext string `yaml:"config_context,omitempty" json:"config_context,omitempty"`
ConfigContextCluster string `yaml:"config_context_cluster,omitempty" json:"config_context_cluster,omitempty"`
ConfigContextUser string `yaml:"config_context_user,omitempty" json:"config_context_user,omitempty"`
Exec *ExecNestedSchema `yaml:"exec,omitempty" json:"exec,omitempty"`
Host string `yaml:"host,omitempty" json:"host,omitempty"`
Insecure string `yaml:"insecure,omitempty" json:"insecure,omitempty"`
Password string `yaml:"password,omitempty" json:"password,omitempty"`
Token string `yaml:"token,omitempty" json:"token,omitempty"`
Username string `yaml:"username,omitempty" json:"username,omitempty"`
}
type Unit ¶
type Unit struct {
base.Unit
StatePtr *Unit `yaml:"-" json:"-"`
Source string `yaml:"-" json:"source"`
Kubeconfig string `yaml:"-" json:"kubeconfig"`
Inputs map[string]interface{} `yaml:"-" json:"inputs"`
ProviderConf ProviderConfigSpec `yaml:"-" json:"provider_conf"`
UnitKind string `yaml:"-" json:"type"`
// contains filtered or unexported fields
}
func NewEmptyUnit ¶
func NewEmptyUnit() Unit
func (*Unit) GetDiffData ¶
func (m *Unit) GetDiffData() interface{}
func (*Unit) GetUnitDiff ¶
func (m *Unit) GetUnitDiff() UnitDiffSpec
func (*Unit) LoadState ¶
func (m *Unit) LoadState(stateData interface{}, modKey string, p *project.StateProject) error
func (*Unit) ReadConfig ¶
func (*Unit) ReplaceMarkers ¶
ReplaceMarkers replace all templated markers with values.
type UnitDiffSpec ¶
type UnitDiffSpec struct {
base.UnitDiffSpec
ProviderConf ProviderConfigSpec `json:"provider_conf"`
Inputs interface{} `json:"inputs"`
}
Click to show internal directories.
Click to hide internal directories.