fake

package
v9.4.47+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

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

func New

func New() *Fake

func (*Fake) CreateBucket

func (f *Fake) CreateBucket(name string, region string, endpoint string, anonymousBucketAccessMode api.AnonymousBucketAccessMode) (string, error)

CreateBucket provisions a new in-memory bucket

func (*Fake) DeleteBucket

func (f *Fake) DeleteBucket(name string, region string, endpoint string, clearBucket bool) error

DeleteBucket deprovisions an in-memory bucket

func (*Fake) GrantBucketAccess

func (f *Fake) GrantBucketAccess(id string, accountName string, accessPolicy string) (string, *bucket.BucketAccessCredentials, error)

AccessBucket grants access to the in-memory bucket Dummy impplementation Actual implementation to be done once we have more clarity on the downstream API

func (*Fake) RevokeBucketAccess

func (f *Fake) RevokeBucketAccess(id string, accountId string) error

DeleteBucket deprovisions an in-memory bucketz Dummy impplementation Actual implementation to be done once we have more clarity on the downstream API

func (*Fake) Start

func (f *Fake) Start() error

Start starts a new fake object storage server

func (*Fake) Stop

func (f *Fake) Stop() error

Stop closes the http server for the fake driver

func (*Fake) String

func (f *Fake) String() string

String name representation of driver

Jump to

Keyboard shortcuts

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