client

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *Config) (*Client, error)

func NewClientFromSecret

func NewClientFromSecret(secret map[string]string) (*Client, error)

func (*Client) BucketExists

func (client *Client) BucketExists(bucketName string) (bool, error)

func (*Client) CreateBucket

func (client *Client) CreateBucket(bucketName string) error

func (*Client) CreatePrefix

func (client *Client) CreatePrefix(bucketName string, prefix string) error

func (*Client) RemoveBucket

func (client *Client) RemoveBucket(bucketName string) error

func (*Client) RemovePrefix

func (client *Client) RemovePrefix(bucketName string, prefix string) error

type Config

type Config struct {
	Lookup          string
	AccessKeyID     string
	SecretAccessKey string
	Endpoint        string
}

Config holds values to configure the driver

Jump to

Keyboard shortcuts

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