kubernetes

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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) Build added in v0.4.5

func (m *Module) Build() error

CreateCodeDir generate all terraform code for project.

func (*Module) GetDiffData added in v0.4.5

func (m *Module) GetDiffData() interface{}

func (*Module) GetState added in v0.4.5

func (m *Module) GetState() interface{}

func (*Module) KindKey added in v0.4.5

func (m *Module) KindKey() string

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

func (m *Module) ReplaceMarkers() error

ReplaceMarkers replace all templated markers with values.

func (*Module) UpdateProjectRuntimeData added in v0.4.5

func (m *Module) UpdateProjectRuntimeData(p *project.Project) error

UpdateProjectRuntimeData update project runtime dataset, adds module outputs.

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"`
}

func (*State) GetType

func (s *State) GetType() string

type StateDiff

type StateDiff struct {
	common.StateSpecDiffCommon
	Inputs interface{} `json:"inputs"`
}

Jump to

Keyboard shortcuts

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