s3

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

Documentation

Index

Constants

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

Variables

View Source
var ErrS3NoExist = errors.New("s3: key not exist")

Functions

func NewS3Backend

func NewS3Backend() states.Backend

Types

type S3Backend

type S3Backend struct {
	S3State
}

func (*S3Backend) ConfigSchema

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

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

func (*S3Backend) Configure

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

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

func (*S3Backend) StateStorage

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

StateStorage return a StateStorage to manage State stored in S3

type S3State

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

func NewS3State

func NewS3State(endpoint, accessKeyID, accessKeySecret, bucketName string, region string) (*S3State, error)

func (*S3State) Apply

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

func (*S3State) Delete

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

func (*S3State) GetLatestState

func (s *S3State) 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