kubernetes

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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) New

func (f *Factory) New(spec map[string]interface{}, stack *project.Stack) (project.Unit, error)

New creates new unit driver factory.

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
	Source     string                 `yaml:"-" json:"source"`
	Kubeconfig string                 `yaml:"-" json:"kubeconfig"`
	Inputs     map[string]interface{} `yaml:"-" json:"inputs"`
	// providerVersion string                 `yaml:"-" json:"-"`
	ProviderConf ProviderConfigSpec `yaml:"-" json:"provider_conf"`
	UnitKind     string             `yaml:"-" json:"type"`
	StateData    project.Unit       `yaml:"-" json:"-"`
}

func NewEmptyUnit

func NewEmptyUnit() Unit

func NewUnit

func NewUnit(spec map[string]interface{}, stack *project.Stack) (*Unit, error)

func (*Unit) Build

func (u *Unit) Build() error

Build generate all terraform code for project.

func (*Unit) GetDiffData

func (u *Unit) GetDiffData() interface{}

func (*Unit) GetState

func (u *Unit) GetState() project.Unit

func (*Unit) GetStateUnit

func (u *Unit) GetStateUnit() *Unit

func (*Unit) GetUnitDiff

func (u *Unit) GetUnitDiff() UnitDiffSpec

func (*Unit) KindKey

func (u *Unit) KindKey() string

func (*Unit) LoadState

func (u *Unit) LoadState(stateData interface{}, modKey string, p *project.StateProject) error

func (*Unit) Prepare

func (u *Unit) Prepare() error

Prepare scan all markers in unit, and build project unit links, and unit dependencies.

func (*Unit) ReadConfig

func (u *Unit) ReadConfig(spec map[string]interface{}, stack *project.Stack) error

func (*Unit) ScanData

func (u *Unit) ScanData(scanner project.MarkerScanner) error

func (*Unit) UpdateProjectRuntimeData

func (u *Unit) UpdateProjectRuntimeData(p *project.Project) error

UpdateProjectRuntimeData update project runtime dataset, adds unit outputs.

type UnitDiffSpec

type UnitDiffSpec struct {
	base.UnitDiffSpec
	ProviderConf ProviderConfigSpec `json:"provider_conf"`
	Inputs       interface{}        `json:"inputs"`
}

Jump to

Keyboard shortcuts

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