config

package
v0.4.23-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config exposes helpers for robot configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRequiredConfig

func ValidateRequiredConfig[C any](c C) error

Types

type Configmap

type Configmap interface {
	Validate() error
}

type ConfigmapAgent

type ConfigmapAgent struct {
	// contains filtered or unexported fields
}

func NewConfigmapAgent

func NewConfigmapAgent(c Configmap, path string) (a *ConfigmapAgent, err error)

func (*ConfigmapAgent) GetConfigmap

func (a *ConfigmapAgent) GetConfigmap() Configmap

type FrameworkOptions added in v0.2.0

type FrameworkOptions struct {
	Address     string
	Port        int
	ConfigFile  string
	GracePeriod time.Duration
	EnableTLS   bool
	HandlePath  string
	CertFile    string
	KeyFile     string
}

func (*FrameworkOptions) AddFlagsComposite added in v0.2.0

func (o *FrameworkOptions) AddFlagsComposite(fs *flag.FlagSet)

func (*FrameworkOptions) ValidateComposite added in v0.2.0

func (o *FrameworkOptions) ValidateComposite() error

Jump to

Keyboard shortcuts

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