oss

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: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ErrOSSNoExist = errors.New("oss: key not exist")

Functions

func NewOssBackend

func NewOssBackend() states.Backend

Types

type OssBackend

type OssBackend struct {
	OssState
}

func (*OssBackend) ConfigSchema

func (b *OssBackend) ConfigSchema() cty.Type

ConfigSchema returns a description of the expected configuration structure for the receiving backend.

func (*OssBackend) Configure

func (b *OssBackend) Configure(obj cty.Value) error

Configure uses the provided configuration to set configuration fields within the OssState backend.

func (*OssBackend) StateStorage

func (b *OssBackend) StateStorage() states.StateStorage

StateStorage return a StateStorage to manage State stored in oss

type OssState

type OssState struct {
	// contains filtered or unexported fields
}

func NewOSSState

func NewOSSState(endPoint, accessKeyID, accessKeySecret, bucketName string) (*OssState, error)

func (*OssState) Apply

func (s *OssState) Apply(state *states.State) error

func (*OssState) Delete

func (s *OssState) Delete(id string) error

func (*OssState) GetLatestState

func (s *OssState) GetLatestState(query *states.StateQuery) (*states.State, error)

Jump to

Keyboard shortcuts

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