v0

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KindMissingValidationError    = errors.New("field 'Kind' cannot be nil")
	VersionMissingValidationError = errors.New("field 'Version' cannot be nil")
	MajorVersionMismatchError     = errors.New("version of loaded structure has MAJOR part different than required")
)

Functions

This section is empty.

Types

type AzBIState

type AzBIState struct {
	Status Status       `json:"status"`
	Config *azbi.Config `json:"config"`
	Output *azbi.Output `json:"output"`
}

func (*AzBIState) GetConfig added in v0.0.6

func (s *AzBIState) GetConfig() *azbi.Config

func (*AzBIState) GetOutput added in v0.0.6

func (s *AzBIState) GetOutput() *azbi.Output

type AzKSState added in v0.0.6

type AzKSState struct {
	Status Status       `json:"status"`
	Config *azks.Config `json:"config"`
	Output *azks.Output `json:"output"`
}

func (*AzKSState) GetConfig added in v0.0.6

func (s *AzKSState) GetConfig() *azks.Config

func (*AzKSState) GetOutput added in v0.0.6

func (s *AzKSState) GetOutput() *azks.Output

type State

type State struct {
	Kind    *string    `json:"kind"`
	Version *string    `json:"version"`
	Unused  []string   `json:"-"`
	AzBI    *AzBIState `json:"azbi"`
	AzKS    *AzKSState `json:"azks"`
}

func NewState

func NewState() *State

TODO test

func (*State) GetAzBIState added in v0.0.6

func (s *State) GetAzBIState() *AzBIState

func (*State) GetAzKSState added in v0.0.6

func (s *State) GetAzKSState() *AzKSState

func (*State) Marshal added in v0.0.4

func (s *State) Marshal() (b []byte, err error)

func (*State) Unmarshal added in v0.0.4

func (s *State) Unmarshal(b []byte) (err error)

type Status

type Status string
const (
	Initialized Status = "initialized"
	Applied     Status = "applied"
	Destroyed   Status = "destroyed"
)

Jump to

Keyboard shortcuts

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