s3test

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Test

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

func New

func New(name string) (*S3Test, error)

func (*S3Test) Client

func (s *S3Test) Client() *s3.Client

func (*S3Test) Endpoint

func (s *S3Test) Endpoint() string

func (*S3Test) Env

func (s *S3Test) Env() string

func (*S3Test) Init

func (s *S3Test) Init() error

func (*S3Test) Running

func (s *S3Test) Running() (int, error)

Running tests whether the test server is running. If so, the port is returned. If there are no errors but the server is not found, the port is returned as 0.

func (*S3Test) Start

func (s *S3Test) Start() (bool, error)

Start starts the test server if not already running and returns an indicator of whether it started it.

func (*S3Test) Stop

func (s *S3Test) Stop() error

Stop stops the server.

Jump to

Keyboard shortcuts

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