config

package
v0.0.0-...-cabf8b7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTrustDomain     = "camblet"
	DefaultCertTTLDuration = time.Hour * 24
)

Variables

View Source
var (
	DefaultConfigLocations = []string{".", "/.config"}
)
View Source
var (
	DefaultLocalAddress = ":50600"
)

Functions

This section is empty.

Types

type Agent

type Agent struct {
	LocalAddress           string            `json:"localAddress,omitempty"`
	KernelModuleDevice     string            `json:"kernelModuleDevice,omitempty"`
	MetadataCollectors     collectors.Config `json:"metadataCollectors,omitempty"`
	TrustDomain            string            `json:"trustDomain,omitempty"`
	DefaultCertTTL         string            `json:"defaultCertTTL,omitempty"`
	DefaultCertTTLDuration time.Duration     `json:"-"`
	CAPemPath              string            `json:"caPEMPath,omitempty"`
	PoliciesPath           []string          `json:"policiesPath,omitempty"`
	ServicesPath           []string          `json:"servicesPath,omitempty"`
}

func (Agent) Validate

func (c Agent) Validate() (Agent, error)

type Config

type Config struct {
	Agent Agent `json:"agent,omitemtpy"`
}

Config holds any kind of configuration that comes from the outside world and is necessary for running the application

func Configure

func Configure(v *viper.Viper, flags *pflag.FlagSet, configDir string) Config

func (Config) Dump

func (c Config) Dump() string

func (Config) Validate

func (c Config) Validate() (Config, error)

Validate validates the configuration

type KernelModuleConfig

type KernelModuleConfig struct {
	TrustDomain string `json:"trust_domain"`
}

KernelModuleConfig holds configuration for the kernel module

Directories

Path Synopsis
metadata

Jump to

Keyboard shortcuts

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