infra

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImageSaversHaveErrors = errors.New("image savers have errors")
	ErrNoImageSavers         = errors.New("no image savers")
)

Functions

This section is empty.

Types

type ImageSaver

type ImageSaver interface {
	String() string
	SaveImage(ctx context.Context, image []byte, imageName, message string) error
}

type Infra

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

func New

func New(imageSavers []ImageSaver, opts ...Option) *Infra

func (*Infra) SaveImage

func (i *Infra) SaveImage(ctx context.Context, image []byte, imageName, message string) error

type Option

type Option func(i *Infra) *Infra

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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