objectstore

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, credentials Credentials) (*objectStore, error)

New returns an Object Store instance that manages Amazon S3 buckets.

func NewPlainObjectStore

func NewPlainObjectStore() (*objectStore, error)

NewPlainObjectStore creates an objectstore with no configuration. Instances created with this function may be used to access methods that don't explicitly access external (cloud) resources

Types

type Config

type Config struct {
	Region string
	Opts   []Option
}

Config defines configuration

type Credentials

type Credentials struct {
	AccessKeyID     string
	SecretAccessKey string
}

Credentials represents credentials necessary for access

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option sets configuration in the object store.

type WaitForCompletion

type WaitForCompletion bool

WaitForCompletion makes the object store wait for the operations to actually complete. Eg. bucket is created and available or bucket is removed permanently.

Jump to

Keyboard shortcuts

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