br

package
v0.0.0-...-e8d26fd Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MOUserEnvKey     = "MO_USER"
	MOPasswordEnvKey = "MO_PASSWORD"

	RestoreAccessEnvKey = "RESTORE_ACCESS_KEY_ID"
	RestoreSecretEnvKey = "RESTORE_SECRET_ACCESS_KEY"

	MetaDelimiter = "META_DELIMITER"
	RawMetaEnv    = "RAW_META"
)

Variables

This section is empty.

Functions

func StartJobGCer

func StartJobGCer[T JobObject](mgr manager.Manager, actor *GCActor[T], obj T) error

Types

type BackupActor

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

func NewBackupActor

func NewBackupActor(image string) *BackupActor

func (*BackupActor) Finalize

func (c *BackupActor) Finalize(ctx *recon.Context[*v1alpha1.BackupJob]) (bool, error)

func (*BackupActor) Observe

func (*BackupActor) Reconcile

func (c *BackupActor) Reconcile(mgr manager.Manager) error

type BackupCommand

type BackupCommand struct {
	Host string
	Port int
	S3   S3
}

func (*BackupCommand) String

func (b *BackupCommand) String() string

type GCActor

type GCActor[T JobObject] struct {
	ConditionType recon.ConditionType
}

func (*GCActor[T]) Observe

func (r *GCActor[T]) Observe(c *recon.Context[T]) error

type JobObject

type JobObject interface {
	recon.Conditional
	client.Object

	GetTTL() time.Duration
	GetOverlay() *v1alpha1.Overlay
}

type RestoreActor

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

func NewRestoreActor

func NewRestoreActor(image string) *RestoreActor

func (*RestoreActor) Finalize

func (c *RestoreActor) Finalize(ctx *recon.Context[*v1alpha1.RestoreJob]) (bool, error)

func (*RestoreActor) Observe

func (*RestoreActor) Reconcile

func (c *RestoreActor) Reconcile(mgr manager.Manager) error

type RestoreCommand

type RestoreCommand struct {
	BackupID string
	Target   S3
	RawMeta  string

	ReadSourceEnvSecret bool
}

func (*RestoreCommand) String

func (c *RestoreCommand) String() string

type S3

type S3 struct {
	Endpoint      string
	Bucket        string
	Path          string
	Type          string
	ReadEnvSecret bool
}

Jump to

Keyboard shortcuts

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