Documentation
¶
Index ¶
- type ExecNestedSchema
- type Factory
- type Module
- func (m *Module) Build() error
- func (m *Module) GetDiffData() interface{}
- func (m *Module) GetState() interface{}
- func (m *Module) KindKey() string
- func (m *Module) LoadState(stateData interface{}, modKey string, p *project.StateProject) error
- func (m *Module) ReadConfig(spec map[string]interface{}, infra *project.Infrastructure) error
- func (m *Module) ReplaceMarkers() error
- func (m *Module) UpdateProjectRuntimeData(p *project.Project) error
- type ProviderConfigSpec
- type State
- type StateDiff
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecNestedSchema ¶ added in v0.4.6
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) New ¶
func (f *Factory) New(spec map[string]interface{}, infra *project.Infrastructure) (project.Module, error)
New creates new module driver factory.
func (*Factory) NewFromState ¶
func (f *Factory) NewFromState(spec map[string]interface{}, modKey string, p *project.StateProject) (project.Module, error)
NewFromState creates new module from state data.
type Module ¶ added in v0.4.5
type Module struct {
common.Module
ProviderConf ProviderConfigSpec
// contains filtered or unexported fields
}
func (*Module) GetDiffData ¶ added in v0.4.5
func (m *Module) GetDiffData() interface{}
func (*Module) LoadState ¶ added in v0.4.5
func (m *Module) LoadState(stateData interface{}, modKey string, p *project.StateProject) error
func (*Module) ReadConfig ¶ added in v0.4.5
func (m *Module) ReadConfig(spec map[string]interface{}, infra *project.Infrastructure) error
func (*Module) ReplaceMarkers ¶ added in v0.4.5
ReplaceMarkers replace all templated markers with values.
type ProviderConfigSpec ¶ added in v0.4.6
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 State ¶
type State struct {
common.StateSpecCommon
Source string `json:"source"`
Kubeconfig string `json:"kubeconfig"`
ModType string `json:"type"`
Inputs interface{} `json:"inputs"`
}
type StateDiff ¶
type StateDiff struct {
common.StateSpecDiffCommon
Inputs interface{} `json:"inputs"`
}
Click to show internal directories.
Click to hide internal directories.