config

package
v0.1.0-rc.14 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustAtoi

func MustAtoi(s string) int

func MustParseBool

func MustParseBool(s string) bool

func MustParseDuration

func MustParseDuration(s string) time.Duration

func MustParseLogLevel

func MustParseLogLevel(s string) logrus.Level

Types

type APIConfig

type APIConfig struct {
	BaseConfig
	Host string
	Port int

	LocalMode bool

	GracefulShutdownTimeout time.Duration
}

func NewAPIConfig

func NewAPIConfig() APIConfig

func (APIConfig) RESTConfig

func (c APIConfig) RESTConfig() (*rest.Config, error)

type BaseConfig

type BaseConfig struct {
	LogLevel logrus.Level
}

type CLIConfig

type CLIConfig struct {
	BaseConfig
}

func NewCLIConfig

func NewCLIConfig() CLIConfig

func (CLIConfig) RESTConfig

func (c CLIConfig) RESTConfig() (*rest.Config, error)

type ControllerConfig

type ControllerConfig struct {
	BaseConfig
	ArgoCDNamespace                  string
	ArgoCDCredentialBorrowingEnabled bool
	ArgoCDPreferInClusterRestConfig  bool
}

func NewControllerConfig

func NewControllerConfig() ControllerConfig

type WebhooksConfig

type WebhooksConfig struct {
	BaseConfig
	ServiceAccount          string
	ServiceAccountNamespace string
}

func NewWebhooksConfig

func NewWebhooksConfig() WebhooksConfig

Jump to

Keyboard shortcuts

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