storage

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBackupKey

func GenerateBackupKey(clusterName string) string

GenerateBackupKey generates a standardized key for etcd backups

func StateKeyForBackupKey added in v0.4.7

func StateKeyForBackupKey(backupKey string) string

StateKeyForBackupKey derives the state-secret object key that pairs with a given etcd backup key, so each backup and its matching state are stored side-by-side.

Types

type S3Client

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

S3Client wraps the AWS S3 client for etcd backup operations

func NewS3Client

func NewS3Client(ctx context.Context, cfg *S3Config) (*S3Client, error)

NewS3Client creates a new S3 client with the provided configuration

func (*S3Client) Delete

func (s *S3Client) Delete(ctx context.Context, key string) error

func (*S3Client) Upload

func (s *S3Client) Upload(ctx context.Context, key string, reader io.Reader) error

Upload uploads data from a reader to S3 with the specified key This method streams data directly to S3 without buffering in memory or disk

type S3Config

type S3Config struct {
	Bucket             string
	Region             string
	Endpoint           string
	AccessKeyID        string
	SecretAccessKey    string
	InsecureSkipVerify bool
}

S3Config contains configuration for S3 client

Jump to

Keyboard shortcuts

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