Help us shape the future of Go! Take the 2026 Go Developer Survey

s3

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	Key          string
	LastModified time.Time
	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 AWS S3 mock server. It serves the provided Objects for the BucketName on the HTTPAddress when Start or StartTLS is called.

func NewServer

func NewServer(bucketName string) *Server

func (*Server) HTTPAddress

func (s *Server) HTTPAddress() string

func (*Server) Start

func (s *Server) Start()

func (*Server) StartTLS

func (s *Server) StartTLS(config *tls.Config)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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