config

package
v0.0.0-...-cc8e7a3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ResyncInterval                    time.Duration
	CertificateCheckInterval          time.Duration
	KubeConfig                        string
	VicePresidentConfig               string
	ViceKeyFile                       string
	ViceCrtFile                       string
	IntermediateCertificate           string
	RootCACertificate                 string
	Namespace                         string
	EnableValidateRemoteCertificate   bool
	IsEnableAdditionalSymantecMetrics bool
	IsDebug                           bool
	RateLimit                         int
	Threadiness                       int
	MinCertValidityDays               int
	MetricPort                        int
	Finalizer                         string
	EventComponent                    string
	IngressAnnotation                 string
}

Options to configure your vice president.

func (*Options) CheckOptions

func (o *Options) CheckOptions() error

CheckOptions verifies the Options and sets default values if necessary.

type ViceConfig

type ViceConfig struct {
	FirstName          string `yaml:"first_name"`
	LastName           string `yaml:"last_name"`
	EMail              string `yaml:"email"`
	Country            string `yaml:"country"`
	Province           string `yaml:"province"`
	Locality           string `yaml:"locality"`
	Organization       string `yaml:"organization"`
	OrganizationalUnit string `yaml:"organizational_unit"`
	DefaultChallenge   string `yaml:"default_challenge"`
}

ViceConfig to define the parameters when talking to the Symantec VICE API.

type VicePresidentConfig

type VicePresidentConfig struct {
	ViceConfig `yaml:"vice"`
}

VicePresidentConfig is a wrapper for both parts of the config.

func ReadConfig

func ReadConfig(filePath string) (cfg VicePresidentConfig, err error)

ReadConfig reads a given vice configuration file and returns the ViceConfig object and if applicable an error.

Jump to

Keyboard shortcuts

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