Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrObjectNotFound = errors.New("object not found")
)
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct { Key string Generation int64 MetaGeneration int64 ContentType string Content []byte }
Object is a mock Server object.
type Server ¶
type Server struct { BucketName string Objects []*Object // contains filtered or unexported fields }
Server is a simple Google Cloud Storage mock server. It serves the provided Objects for the BucketName on the HTTPAddress when Start or StartTLS is called. It provides primitive support "Generation Conditions" when Object contents are fetched. Ref: https://pkg.go.dev/cloud.google.com/go/storage#hdr-Conditions
func (*Server) HTTPAddress ¶
Click to show internal directories.
Click to hide internal directories.