confgroup

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config map[string]interface{}

func (Config) Apply

func (c Config) Apply(def Default)

func (Config) AutoDetectionRetry

func (c Config) AutoDetectionRetry() int

func (Config) FullName

func (c Config) FullName() string

func (Config) Hash

func (c Config) Hash() uint64

func (Config) HashIncludeMap

func (c Config) HashIncludeMap(_ string, k, _ interface{}) (bool, error)

func (Config) Labels added in v0.40.0

func (c Config) Labels() map[any]any

func (Config) Module

func (c Config) Module() string

func (Config) Name

func (c Config) Name() string

func (Config) Priority

func (c Config) Priority() int

func (Config) Provider

func (c Config) Provider() string

func (Config) SetModule

func (c Config) SetModule(source string)

func (Config) SetProvider

func (c Config) SetProvider(source string)

func (Config) SetSource

func (c Config) SetSource(source string)

func (Config) Source

func (c Config) Source() string

func (Config) UpdateEvery

func (c Config) UpdateEvery() int

type Default

type Default struct {
	MinUpdateEvery     int `yaml:"-"`
	UpdateEvery        int `yaml:"update_every"`
	AutoDetectionRetry int `yaml:"autodetection_retry"`
	Priority           int `yaml:"priority"`
}

type Group

type Group struct {
	Configs []Config
	Source  string
}

type Registry

type Registry map[string]Default

func (Registry) Lookup

func (r Registry) Lookup(name string) (Default, bool)

func (Registry) Register

func (r Registry) Register(name string, def Default)

Jump to

Keyboard shortcuts

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