configfile

package
v1.12.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem interface {
	ReadFile(filename string) ([]byte, error)
}

Filesystem is an interface used to mock out calls to ReadFile

func NewRealFS

func NewRealFS() Filesystem

NewRealFS builds a Filesystem that wraps around `os.ReadFile`.

type Loader

type Loader interface {
	Load() (*config.WebhookConfiguration, error)
}

func NewFSLoader

func NewFSLoader(fs Filesystem, name string) (Loader, error)

Jump to

Keyboard shortcuts

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