config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version ...
	Version *string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	File             string          `                         short:"f" long:"config"  description:"Yaml config"`
	Verbose          []bool          `yaml:"verbose"           short:"v" long:"verbose" description:"Show verbose debug information"`
	Version          bool            `                                   long:"version" description:"Show version"`
	ListeningAddress string          `yaml:"listening_address" short:"a" long:"address" description:"Listening address" default:"127.0.0.1"`
	ListeningPort    int             `yaml:"listening_port"    short:"p" long:"port"    description:"Listening port" default:"8080"`
	UnixSocket       string          `yaml:"unix_socket"       short:"u" long:"unix"    description:"Listening unix socket"`
	Internal         *InternalConfig `yaml:"internal"`
	TemplatesDir     string          `yaml:"templates"`
	StaticDir        string          `yaml:"static"`
	GoModules        []GoModule      `yaml:"go-modules"`
	Reloads          int
}

Config ... +k8s:deepcopy-gen:interfaces=sylr.dev/libqd/config.Config +k8s:deepcopy-gen=true

func (*Config) ConfigFile

func (c *Config) ConfigFile() string

ConfigFile ...

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.

func (*Config) DeepCopyConfig

func (in *Config) DeepCopyConfig() libqdconfig.Config

DeepCopyConfig is an autogenerated deepcopy function, copying the receiver, creating a new libqdconfig.Config.

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GoModule

type GoModule struct {
	Name   string `yaml:"name"`
	Import string `yaml:"go-import"`
	Source string `yaml:"go-source"`
}

GoModule ... +k8s:deepcopy-gen=true

func (*GoModule) DeepCopy

func (in *GoModule) DeepCopy() *GoModule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoModule.

func (*GoModule) DeepCopyInto

func (in *GoModule) DeepCopyInto(out *GoModule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InternalConfig

type InternalConfig struct {
	TrustedSubnets []string `yaml:"trusted_subnets"`
}

InternalConfig ... +k8s:deepcopy-gen=true

func (*InternalConfig) DeepCopy

func (in *InternalConfig) DeepCopy() *InternalConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalConfig.

func (*InternalConfig) DeepCopyInto

func (in *InternalConfig) DeepCopyInto(out *InternalConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Mutex

type Mutex struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

Mutex ...

func NewMutex

func NewMutex(manager *qdconfig.Manager, logger *zap.Logger, loggerLevel *zap.AtomicLevel) Mutex

NewMutex ...

func (*Mutex) ConfigApplier

func (cm *Mutex) ConfigApplier(currentConfig qdconfig.Config, newConfig qdconfig.Config) error

ConfigApplier ...

func (*Mutex) ConfigValidator

func (cm *Mutex) ConfigValidator(currentConfig qdconfig.Config, newConfig qdconfig.Config) []error

ConfigValidator ...

Jump to

Keyboard shortcuts

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