local

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KusionStateFileFile = "kusion_state.yaml"
)

Variables

This section is empty.

Functions

func NewFileSystemState

func NewFileSystemState() states.StateStorage

func NewLocalBackend added in v0.6.0

func NewLocalBackend() states.Backend

Types

type FileSystemState

type FileSystemState struct {
	// state Path is in the same dir where command line is invoked
	Path string
}

func (*FileSystemState) Apply

func (f *FileSystemState) Apply(state *states.State) error

func (*FileSystemState) Delete

func (f *FileSystemState) Delete(id string) error

func (*FileSystemState) GetLatestState

func (f *FileSystemState) GetLatestState(query *states.StateQuery) (*states.State, error)

type LocalBackend added in v0.6.0

type LocalBackend struct {
	FileSystemState
}

func (*LocalBackend) ConfigSchema added in v0.6.0

func (f *LocalBackend) ConfigSchema() cty.Type

func (*LocalBackend) Configure added in v0.6.0

func (f *LocalBackend) Configure(obj cty.Value) error

func (*LocalBackend) StateStorage added in v0.6.0

func (f *LocalBackend) StateStorage() states.StateStorage

Jump to

Keyboard shortcuts

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