Documentation ¶
Index ¶
- type S3Fake
- func (s *S3Fake) BucketExists(bucket string) (bool, error)
- func (s *S3Fake) CreateBucket(bucket string) error
- func (s *S3Fake) CreateUser(name string) (*User, error)
- func (s *S3Fake) DeleteBucket(bucket string) error
- func (s *S3Fake) DeleteUser(name string) error
- func (s *S3Fake) Run(ctx context.Context) error
- func (s *S3Fake) UserExists(name string) (*User, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Fake ¶
type S3Fake struct { Address string Backend gofakes3.Backend Users *sync.Map // contains filtered or unexported fields }
S3Fake is a fake S3 server.
func (*S3Fake) BucketExists ¶
BucketExists checks if a bucket exists.
func (*S3Fake) CreateBucket ¶
CreateBucket creates a bucket.
func (*S3Fake) CreateUser ¶
CreateUser creates a user.
func (*S3Fake) DeleteBucket ¶
DeleteBucket deletes a bucket.
func (*S3Fake) DeleteUser ¶
DeleteUser deletes a user.
Click to show internal directories.
Click to hide internal directories.