Documentation
¶
Index ¶
- Constants
- Variables
- type GitWriter
- type S3Writer
- func (b *S3Writer) ReadFile(filename string) ([]byte, error)
- func (b *S3Writer) RemoveObject(objectName string) error
- func (b *S3Writer) UpdateFiles(_ string, workloadsToCreate []v1alpha1.Workload, workloadsToDelete []string) error
- func (b *S3Writer) UpdateInDir(subDir, _ string, workloadsToCreate []v1alpha1.Workload) error
- type StateStoreWriter
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 ¶
func (*GitWriter) UpdateFiles ¶ added in v0.93.0
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 (*S3Writer) UpdateFiles ¶ added in v0.93.0
type StateStoreWriter ¶ added in v0.0.3
type StateStoreWriter interface { UpdateFiles(workPlacementName string, workloadsToCreate []v1alpha1.Workload, workloadsToDelete []string) error UpdateInDir(subDir, workPlacementName string, workloadsToCreate []v1alpha1.Workload) 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)
Click to show internal directories.
Click to hide internal directories.