Documentation ¶
Overview ¶
Package snapshotstaging
Index ¶
- Constants
- type SnapshotOptions
- func (o *SnapshotOptions) CleanUp() error
- func (o *SnapshotOptions) ConnectToSnapshotStorage(useLocal bool) (*s3.Client, error)
- func (o *SnapshotOptions) ConnectToSnapshotStorageByConfig(snapshotConfig *SnapshotStorageConnectionConfig) (*s3.Client, error)
- func (o *SnapshotOptions) GetMinioIPEndpointFromInsideCluster() (string, error)
- func (o *SnapshotOptions) GetRemoteSnapshotStorageConfig() (*SnapshotStorageConnectionConfig, error)
- func (o *SnapshotOptions) ProvisionStagingStorage() error
- func (o *SnapshotOptions) RedirectS3ToMinioFromCluster() error
- type SnapshotStorageConnectionConfig
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
Click to show internal directories.
Click to hide internal directories.