v0

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsBIState added in v0.0.8

type AwsBIState struct {
	Status Status        `json:"status" validate:"required,eq=initialized|eq=applied|eq=destroyed"`
	Config *awsbi.Config `json:"config" validate:"omitempty"`
	Output *awsbi.Output `json:"output" validate:"omitempty"`
}

type AzBIState

type AzBIState struct {
	Status Status       `json:"status" validate:"required,eq=initialized|eq=applied|eq=destroyed"`
	Config *azbi.Config `json:"config" validate:"omitempty"`
	Output *azbi.Output `json:"output" validate:"omitempty"`
}

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" validate:"required,eq=initialized|eq=applied|eq=destroyed"`
	Config *azks.Config `json:"config" validate:"omitempty"`
	Output *azks.Output `json:"output" validate:"omitempty"`
}

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 HiState added in v0.0.7

type HiState struct {
	Status Status     `json:"status" validate:"required,eq=initialized|eq=applied|eq=destroyed"`
	Config *hi.Config `json:"config" validate:"omitempty"`
}

func (*HiState) GetConfig added in v0.0.7

func (s *HiState) GetConfig() *hi.Config

type State

type State struct {
	Kind    *string     `json:"kind" validate:"required,eq=state"`
	Version *string     `json:"version" validate:"required,version=~0"`
	Unused  []string    `json:"-"`
	AzBI    *AzBIState  `json:"azbi" validate:"omitempty"`
	AzKS    *AzKSState  `json:"azks" validate:"omitempty"`
	Hi      *HiState    `json:"hi" validate:"omitempty"`
	AwsBI   *AwsBIState `json:"awsbi" validate:"omitempty"`
}

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) GetHiState added in v0.0.7

func (s *State) GetHiState() *HiState

func (*State) IsValidDoNotUse added in v0.0.7

func (s *State) IsValidDoNotUse() error

DO NOT USE!!! This is temporary function used to fix existing issue (https://github.com/epiphany-platform/e-structures/issues/10) in some modules and will be removed shortly after issue is resolved in all modules

func (*State) Marshal added in v0.0.4

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

func (*State) Unmarshal added in v0.0.4

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

func (*State) UnmarshalDoNotUse added in v0.0.7

func (s *State) UnmarshalDoNotUse(b []byte) error

DO NOT USE!!! This is temporary function used to fix existing issue (https://github.com/epiphany-platform/e-structures/issues/10) in some modules and will be removed shortly after issue is resolved in all modules

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