config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotFound        = errors.New("config not found")
	ErrUnsupportedApiVersion = errors.New("unsupported api version")
)

Functions

func FindConfig

func FindConfig() (string, error)

func LoadObject

func LoadObject(document []byte) (meta.Object, error)

func LoadObjectsFromFile

func LoadObjectsFromFile(path string) (meta.ObjectList, error)

func NewLifecycler

func NewLifecycler(objects meta.ObjectList) *lifecycler

Types

type GatewayConfig

type GatewayConfig = v1beta1.GatewayConfig

type Lifecycler

type Lifecycler interface {
	GetObjectList() (meta.ObjectList, error)
	UpdateObjectList(objects meta.ObjectList) error
	ReloadC() (chan struct{}, error)
}

func NewUnavailableLifecycler

func NewUnavailableLifecycler(objects meta.ObjectList) Lifecycler

type Unmarshaler

type Unmarshaler interface {
	Unmarshal(into interface{}) error
}

Directories

Path Synopsis
This package defines the configuration for the Opni Monitoring gateway and agent.
This package defines the configuration for the Opni Monitoring gateway and agent.

Jump to

Keyboard shortcuts

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