initializableretriever

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retriever

type Retriever struct {
	Path string
	// contains filtered or unexported fields
}

Retriever is a mock provider, that create a file as init step and delete it at shutdown.

func NewMockInitializableRetriever

func NewMockInitializableRetriever(path string, status retriever.Status) Retriever

func (*Retriever) Init

func (r *Retriever) Init(_ context.Context, _ *log.Logger) error

func (*Retriever) Retrieve

func (r *Retriever) Retrieve(_ context.Context) ([]byte, error)

Retrieve is reading the file and return the content

func (*Retriever) Shutdown

func (r *Retriever) Shutdown(_ context.Context) error

func (*Retriever) Status

func (r *Retriever) Status() retriever.Status

Jump to

Keyboard shortcuts

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