writers

package
v0.28.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Add    string = "Add"
	Delete string = "Delete"
)
View Source
const (
	AuthMethodIAM       = "IAM"
	AuthMethodAccessKey = "accessKey"
)
View Source
const (
	DeleteExistingContentsInDir   = true
	PreserveExistingContentsInDir = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GitWriter

type GitWriter struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

func (*GitWriter) RemoveObject

func (g *GitWriter) RemoveObject(filePath string) error

func (*GitWriter) WriteDirWithObjects added in v0.0.5

func (g *GitWriter) WriteDirWithObjects(deleteExistingContentsInDir bool, subDir string, toWrite ...platformv1alpha1.Workload) error

type S3Writer added in v0.0.3

type S3Writer struct {
	Log        logr.Logger
	RepoClient *minio.Client
	BucketName string
	// contains filtered or unexported fields
}

func (*S3Writer) RemoveObject added in v0.0.3

func (b *S3Writer) RemoveObject(objectName string) error

func (*S3Writer) WriteDirWithObjects added in v0.0.5

func (b *S3Writer) WriteDirWithObjects(deleteExistingContentsInDir bool, dir string, toWrite ...platformv1alpha1.Workload) error

type StateStoreWriter added in v0.0.3

type StateStoreWriter interface {
	WriteDirWithObjects(deleteExistingContentsInDir bool, dir string, workloads ...platformv1alpha1.Workload) error
	RemoveObject(objectName string) error
}

func NewGitWriter added in v0.0.3

func NewGitWriter(logger logr.Logger, stateStoreSpec platformv1alpha1.GitStateStoreSpec, destination platformv1alpha1.Destination, creds map[string][]byte) (StateStoreWriter, error)

func NewS3Writer added in v0.0.3

func NewS3Writer(logger logr.Logger, stateStoreSpec platformv1alpha1.BucketStateStoreSpec, destination platformv1alpha1.Destination, creds map[string][]byte) (StateStoreWriter, error)

Jump to

Keyboard shortcuts

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