cloudprovider

package
v0.0.0-...-0eb897b Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 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 Clients

type Clients struct {
	// contains filtered or unexported fields
}

func NewClients

func NewClients() *Clients

func NewMockClients

func NewMockClients() *Clients

func (*Clients) GetS3Objects

func (c *Clients) GetS3Objects(bucketName string) []S3Object

func (*Clients) ListS3Buckets

func (c *Clients) ListS3Buckets() []S3Buckets

type MockS3Client

type MockS3Client struct {
	s3iface.S3API
}

func (*MockS3Client) ListBuckets

func (s3mock *MockS3Client) ListBuckets(*s3.ListBucketsInput) (*s3.ListBucketsOutput, error)

type S3Buckets

type S3Buckets struct {
	BucketName string
}

type S3Object

type S3Object struct {
	ObjectName   string
	SizeMB       float32
	LastModified time.Time
	StorageClass string
}

Jump to

Keyboard shortcuts

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