config

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQPMessaging

type AMQPMessaging struct {
	URL      string `json:"url" yaml:"url"`
	Exchange string `json:"exchange" yaml:"exchange"`
	Queue    string `json:"queue" yaml:"queue"`
}

type Buildkit

type Buildkit struct {
	Namespace       string            `json:"namespace" yaml:"namespace"`
	PodLabels       map[string]string `json:"podLabels" yaml:"podLabels"`
	DaemonPort      int32             `json:"daemonPort" yaml:"daemonPort"`
	ServiceName     string            `json:"serviceName" yaml:"serviceName"`
	StatefulSetName string            `json:"statefulSetName" yaml:"statefulSetName"`

	Secrets map[string]string `json:"secrets" yaml:"secrets,omitempty"`

	PoolSyncWaitTime *time.Duration `json:"poolSyncWaitTime" yaml:"poolSyncWaitTime"`
	PoolMaxIdleTime  *time.Duration `json:"poolMaxIdleTime" yaml:"poolMaxIdleTime"`
	PoolWatchTimeout *int64         `json:"poolWatchTimeout" yaml:"poolWatchTimeout"`

	MTLS *BuildkitMTLS `json:"mtls,omitempty" yaml:"mtls,omitempty"`
}

type BuildkitMTLS

type BuildkitMTLS struct {
	CACertPath string `json:"caCertPath" yaml:"caCertPath"`
	CertPath   string `json:"certPath" yaml:"certPath"`
	KeyPath    string `json:"keyPath" yaml:"keyPath"`
}

type ContainerLogging

type ContainerLogging struct {
	Encoder  string `json:"encoder" yaml:"encoder"`
	LogLevel string `json:"level" yaml:"level"`
}

type Controller

type Controller struct {
	Logging   Logging   `json:"logging" yaml:"logging"`
	Manager   Manager   `json:"manager" yaml:"manager"`
	Buildkit  Buildkit  `json:"buildkit" yaml:"buildkit"`
	Messaging Messaging `json:"messaging" yaml:"messaging"`
	NewRelic  NewRelic  `json:"newRelic" yaml:"newRelic"`

	ImageBuildMaxConcurrency int `json:"imageBuildMaxConcurrency" yaml:"imageBuildMaxConcurrency"`
}

func LoadFromFile

func LoadFromFile(filename string) (Controller, error)

func (Controller) Validate

func (c Controller) Validate() error

type KafkaMessaging

type KafkaMessaging struct {
	Servers   []string `json:"servers" yaml:"servers"`
	Topic     string   `json:"topic" yaml:"topic"`
	Partition string   `json:"partition" yaml:"partition"`
}

type LogfileLogging

type LogfileLogging struct {
	Enabled  bool   `json:"enabled" yaml:"enabled"`
	Filepath string `json:"filepath" yaml:"filepath"`
	LogLevel string `json:"level" yaml:"level"`
}

type Logging

type Logging struct {
	StacktraceLevel string `json:"stacktraceLevel" yaml:"stacktraceLevel"`

	Container ContainerLogging `json:"container" yaml:"container"`
	Logfile   LogfileLogging   `json:"logfile" yaml:"logfile"`
}

type Manager

type Manager struct {
	HealthProbeAddr      string   `json:"healthProbeAddr" yaml:"healthProbeAddr"`
	MetricsAddr          string   `json:"metricsAddr" yaml:"metricsAddr"`
	WebhookPort          int      `json:"webhookPort" yaml:"webhookPort"`
	WatchNamespaces      []string `json:"watchNamespaces" yaml:"watchNamespaces,omitempty"`
	EnableLeaderElection bool     `json:"enableLeaderElection" yaml:"enableLeaderElection"`
}

type Messaging

type Messaging struct {
	Enabled bool            `json:"enabled" yaml:"enabled"`
	AMQP    *AMQPMessaging  `json:"amqp" yaml:"amqp"`
	Kafka   *KafkaMessaging `json:"kafka" yaml:"kafka"`
}

type NewRelic added in v0.1.10

type NewRelic struct {
	Enabled    bool              `json:"enabled" yaml:"enabled"`
	AppName    string            `json:"appName" yaml:"appName"`
	Labels     map[string]string `json:"labels" yaml:"labels,omitempty"`
	LicenseKey string            `json:"licenseKey" yaml:"licenseKey"`
}

Jump to

Keyboard shortcuts

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