Documentation
¶
Index ¶
- func FillCredentials(o *snapshotapi.S3Options, isClient bool)
- func IsValidS3URLScheme(s3URL string) bool
- type ObjectStore
- func (o *ObjectStore) Delete(ctx context.Context) error
- func (o *ObjectStore) GetObject(ctx context.Context) (io.ReadCloser, error)
- func (o *ObjectStore) Init(config *snapshotapi.S3Options) error
- func (o *ObjectStore) List(ctx context.Context) ([]snapshotapi.Snapshot, error)
- func (o *ObjectStore) PutObject(ctx context.Context, body io.Reader) error
- func (o *ObjectStore) Target() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillCredentials ¶
func FillCredentials(o *snapshotapi.S3Options, isClient bool)
func IsValidS3URLScheme ¶
IsValidS3URLScheme returns true if the scheme is http:// or https:// and the url parses correctly, otherwise, return false
Types ¶
type ObjectStore ¶
type ObjectStore struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(logger logr.Logger) *ObjectStore
func (*ObjectStore) GetObject ¶
func (o *ObjectStore) GetObject(ctx context.Context) (io.ReadCloser, error)
func (*ObjectStore) Init ¶
func (o *ObjectStore) Init(config *snapshotapi.S3Options) error
func (*ObjectStore) List ¶
func (o *ObjectStore) List(ctx context.Context) ([]snapshotapi.Snapshot, error)
func (*ObjectStore) Target ¶
func (o *ObjectStore) Target() string
Click to show internal directories.
Click to hide internal directories.