storage

package
v0.0.0-...-af0b780 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSStorage

type GCSStorage struct {
	GCSStorageBucket             string `mapstructure:"gcs_storage_bucket"`
	GCSStorageServiceAccountFile string `mapstructure:"gcs_storage_service_account_file"`
}

func (*GCSStorage) Configure

func (s *GCSStorage) Configure(ctx *util.YWTestContext, providerName string) error

func (*GCSStorage) ConfigureIfNotExists

func (s *GCSStorage) ConfigureIfNotExists(ctx *util.YWTestContext, storageName string) error

func (*GCSStorage) RegisterFlags

func (s *GCSStorage) RegisterFlags(flags *pflag.FlagSet)

func (*GCSStorage) Type

func (s *GCSStorage) Type() string

func (*GCSStorage) ValidateFlags

func (s *GCSStorage) ValidateFlags() error

type PreconfiguredStorage

type PreconfiguredStorage struct {
}

func (*PreconfiguredStorage) Configure

func (s *PreconfiguredStorage) Configure(_ *util.YWTestContext, providerName string) error

func (*PreconfiguredStorage) ConfigureIfNotExists

func (s *PreconfiguredStorage) ConfigureIfNotExists(ctx *util.YWTestContext, storageName string) error

func (*PreconfiguredStorage) RegisterFlags

func (s *PreconfiguredStorage) RegisterFlags(_ *pflag.FlagSet)

func (*PreconfiguredStorage) Type

func (s *PreconfiguredStorage) Type() string

func (*PreconfiguredStorage) ValidateFlags

func (s *PreconfiguredStorage) ValidateFlags() error

type S3Storage

type S3Storage struct {
	S3StorageBucket      string `mapstructure:"s3_storage_bucket"`
	S3StorageAWSHostBase string `mapstructure:"s3_storage_aws_host_base,omitempty"`

	S3StorageUseIAMRole bool `mapstructure:"s3_storage_use_iam_role,omitempty"`

	S3StorageAWSAccessKey string `mapstructure:"s3_storage_aws_access_key,omitempty"`
	S3StorageAWSSecretKey string `mapstructure:"s3_storage_aws_secret_key,omitempty"`
}

func (*S3Storage) Configure

func (s *S3Storage) Configure(ctx *util.YWTestContext, providerName string) error

func (*S3Storage) ConfigureIfNotExists

func (s *S3Storage) ConfigureIfNotExists(ctx *util.YWTestContext, storageName string) error

func (*S3Storage) RegisterFlags

func (s *S3Storage) RegisterFlags(flags *pflag.FlagSet)

func (*S3Storage) Type

func (s *S3Storage) Type() string

func (*S3Storage) ValidateFlags

func (s *S3Storage) ValidateFlags() error

type StorageProvider

type StorageProvider interface {
	Type() string
	RegisterFlags(flags *pflag.FlagSet)
	ValidateFlags() error
	Configure(ctx *util.YWTestContext, storageName string) error
	ConfigureIfNotExists(ctx *util.YWTestContext, storageName string) error
}

func GetStorageProvider

func GetStorageProvider(logger logr.Logger, flags *pflag.FlagSet, providerType string) (StorageProvider, error)

Jump to

Keyboard shortcuts

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