env

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExceptionFailHandler added in v0.4.1

func ExceptionFailHandler(msg string, callerSkip ...int)

func FileSystem

func FileSystem(fs vfs.FileSystem, path string) fsOpt

func ModifiableTestData

func ModifiableTestData(paths ...string) tdOpt

func TestData

func TestData(paths ...string) tdOpt

Types

type Environment

type Environment struct {
	vfs.VFS
	// contains filtered or unexported fields
}

func NewEnvironment

func NewEnvironment(opts ...Option) *Environment

func (*Environment) ApplyOption

func (e *Environment) ApplyOption(options accessio.Options) error

func (*Environment) ConfigContext

func (e *Environment) ConfigContext() config.Context

func (*Environment) CredentialsContext

func (e *Environment) CredentialsContext() credentials.Context

func (*Environment) Fail added in v0.4.1

func (e *Environment) Fail(msg string, callerSkip ...int)

func (*Environment) FailOnErr added in v0.4.1

func (e *Environment) FailOnErr(err error, msg string, callerSkip ...int)

func (*Environment) FileSystem

func (e *Environment) FileSystem() vfs.FileSystem

func (*Environment) GetEnvironment added in v0.4.1

func (e *Environment) GetEnvironment() *Environment

func (*Environment) GetFailHandler added in v0.4.1

func (e *Environment) GetFailHandler() FailHandler

func (*Environment) GetFilesystem added in v0.4.1

func (e *Environment) GetFilesystem() vfs.FileSystem

func (*Environment) Mount added in v0.4.1

func (*Environment) OCIContext

func (e *Environment) OCIContext() oci.Context

func (*Environment) OCMContext

func (e *Environment) OCMContext() ocm.Context

func (*Environment) RSAKeyPair added in v0.4.1

func (e *Environment) RSAKeyPair(name ...string)

func (*Environment) ReadRSAKeyPair added in v0.4.1

func (e *Environment) ReadRSAKeyPair(name, path string)

func (*Environment) SetFailHandler added in v0.4.1

func (e *Environment) SetFailHandler(h ...FailHandler) *Environment

SetFailHandler sets an explicit fail handler or by default a fail handler throwing an exception is set.

type FailHandler added in v0.4.1

type FailHandler func(msg string, callerSkip ...int)

func (FailHandler) GetEnvironment added in v0.4.1

func (FailHandler) GetEnvironment() *Environment

func (FailHandler) GetFailHandler added in v0.4.1

func (f FailHandler) GetFailHandler() FailHandler

func (FailHandler) GetFilesystem added in v0.4.1

func (FailHandler) GetFilesystem() vfs.FileSystem

func (FailHandler) Mount added in v0.4.1

type Option

type Option interface {
	Mount(fs *composefs.ComposedFileSystem) error
	GetFilesystem() vfs.FileSystem
	GetFailHandler() FailHandler
	GetEnvironment() *Environment
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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