config

package
v0.1.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 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 ControllerConfig

type ControllerConfig struct {
	BaseConfig
	ArgoCDNamespace         string
	ServiceAccount          string
	ServiceAccountNamespace string
}

func NewControllerConfig

func NewControllerConfig() ControllerConfig

Jump to

Keyboard shortcuts

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