config

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfiguration

func ParseConfiguration()

func ValidateConfiguration

func ValidateConfiguration()

Types

type DisallowedName added in v1.4.1

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

func (*DisallowedName) Decode added in v1.4.1

func (d *DisallowedName) Decode(value string) error

func (DisallowedName) Match added in v1.4.1

func (d DisallowedName) Match(value string) bool

func (DisallowedName) String added in v1.4.1

func (d DisallowedName) String() string

type Specification

type Specification struct {
	ContainerSocket             string           `json:"containerSocket" split_words:"true" required:"false"`
	ContainerRuntime            string           `json:"containerRuntime" split_words:"true" required:"false"`
	ContainerdNamespace         string           `json:"containerdNamespace" split_words:"true" required:"true" default:"k8s.io"`
	DisableDiscoveryExcludes    bool             `required:"false" split_words:"true" default:"false"`
	DiscoveryCallInterval       string           `json:"discoveryCallInterval" split_words:"true" required:"false" default:"15s"`
	DiscoveryAttributesExcludes []string         `` /* 174-byte string literal not displayed */
	Port                        uint16           `json:"port" split_words:"true" required:"false" default:"8086"`
	HealthPort                  uint16           `json:"healthPort" split_words:"true" required:"false" default:"8082"`
	LivenessCheckInterval       string           `json:"livenessProbeInterval" split_words:"true" required:"false" default:"30s"` // 0 or empty string disables liveness check
	MemfillPath                 string           `json:"memfillPath" split_words:"true" required:"true"`
	Hostname                    string           `json:"hostname" split_words:"true" required:"false"`
	DisallowHostNetwork         bool             `json:"disallowHostNetwork" split_words:"true" required:"false" default:"false"`
	DisallowK8sNamespaces       []DisallowedName `json:"disallowK8sNamespaces" split_words:"true" required:"false"`
}
var (
	Config Specification
)

Jump to

Keyboard shortcuts

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