snapshotstaging

package
v1.57.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package snapshotstaging

Index

Constants

View Source
const AccessKey = "ACCESS_KEY"
View Source
const BucketName = "outreach-devenv-snapshots"
View Source
const HostIP = "127.0.0.1"
View Source
const PortNumber = "61003"
View Source
const SecretKey = "SECRET_KEY"

Variables

This section is empty.

Functions

This section is empty.

Types

type SnapshotOptions

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

func NewSnapShotOptions

func NewSnapShotOptions(ctx context.Context, log logrus.FieldLogger, b *box.Config) SnapshotOptions

func (*SnapshotOptions) CleanUp

func (o *SnapshotOptions) CleanUp() error

Destroys minIO container

func (*SnapshotOptions) ConnectToSnapshotStorage

func (o *SnapshotOptions) ConnectToSnapshotStorage(useLocal bool) (*s3.Client, error)

Connects to the snapshot storage

func (*SnapshotOptions) ConnectToSnapshotStorageByConfig

func (o *SnapshotOptions) ConnectToSnapshotStorageByConfig(snapshotConfig *SnapshotStorageConnectionConfig) (*s3.Client, error)

Connects to the snapshot storage by config

func (*SnapshotOptions) GetMinioIPEndpointFromInsideCluster

func (o *SnapshotOptions) GetMinioIPEndpointFromInsideCluster() (string, error)

Get IP endpoint for minio when accessing from inside the cluster

func (*SnapshotOptions) GetRemoteSnapshotStorageConfig

func (o *SnapshotOptions) GetRemoteSnapshotStorageConfig() (*SnapshotStorageConnectionConfig, error)

Get remote snapshot storage by configuration

func (*SnapshotOptions) ProvisionStagingStorage

func (o *SnapshotOptions) ProvisionStagingStorage() error

Provisions a minIO instance outside devenv cluster to store snapshots for validation

func (*SnapshotOptions) RedirectS3ToMinioFromCluster

func (o *SnapshotOptions) RedirectS3ToMinioFromCluster() error

Redirects s3 to minio when running from inside the cluster

type SnapshotStorageConnectionConfig

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

func GetLocalSnapshotConfig

func GetLocalSnapshotConfig(o *SnapshotOptions) *SnapshotStorageConnectionConfig

Get Configuration pointing to the Local Snapshot bucket used to temporarily store

Jump to

Keyboard shortcuts

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