mock_gcs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*Server)

func WithFailOnObjectExistence

func WithFailOnObjectExistence() Opt

func WithFailOnObjectName

func WithFailOnObjectName(name string) Opt

type Server

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

func NewServer

func NewServer(bucket string, opts ...Opt) *Server

func (*Server) Add

func (s *Server) Add(name string, attrs storage.ObjectAttrs)

func (*Server) Client

func (s *Server) Client(ctx context.Context) (*storage.Client, error)

func (*Server) Close

func (s *Server) Close()

func (*Server) Get

func (s *Server) Get(name string) *storage.ObjectAttrs

func (*Server) RemoveAll

func (s *Server) RemoveAll()

Jump to

Keyboard shortcuts

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