abstractions

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment interface {
	Get(k string) string
}

func NewMockedEnvironment

func NewMockedEnvironment(values map[string]string) Environment

func NewOSEnvironment

func NewOSEnvironment() Environment

type FileReader

type FileReader interface {
	ReadFile(name string) ([]byte, error)
}

func NewFileReader

func NewFileReader() FileReader

type MockedEnvironment

type MockedEnvironment struct {
	Values map[string]string
}

func (*MockedEnvironment) Get

func (e *MockedEnvironment) Get(k string) string

Jump to

Keyboard shortcuts

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