writers

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthMethodIAM       = "IAM"
	AuthMethodAccessKey = "accessKey"
)

Variables

View Source
var FileNotFound = fmt.Errorf("file not found")

Functions

This section is empty.

Types

type GitWriter

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

func (*GitWriter) ReadFile added in v0.93.0

func (g *GitWriter) ReadFile(filePath string) ([]byte, error)

func (*GitWriter) UpdateFiles added in v0.93.0

func (g *GitWriter) UpdateFiles(subDir string, workPlacementName string, workloadsToCreate []v1alpha1.Workload, workloadsToDelete []string) (string, 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) ReadFile added in v0.93.0

func (b *S3Writer) ReadFile(filename string) ([]byte, error)

func (*S3Writer) RemoveObject added in v0.0.3

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

func (*S3Writer) UpdateFiles added in v0.93.0

func (b *S3Writer) UpdateFiles(subDir string, _ string, workloadsToCreate []v1alpha1.Workload, workloadsToDelete []string) (string, error)

type StateStoreWriter added in v0.0.3

type StateStoreWriter interface {
	UpdateFiles(subDir string, workPlacementName string, workloadsToCreate []v1alpha1.Workload, workloadsToDelete []string) (string, error)
	ReadFile(filename string) ([]byte, error)
}

func NewGitWriter added in v0.0.3

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

func NewS3Writer added in v0.0.3

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

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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