controll

package
v0.0.0-...-7d5d80b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookUpEnvOrBool

func LookUpEnvOrBool(key string, defaultVal bool) bool

LookUpEnvOrBool lookup ENV string with given key and convert to bool, or returns default value if not exists or conversion failed

func LookupEnvOrDuration

func LookupEnvOrDuration(key string, defaultVal time.Duration) time.Duration

LookupEnvOrDuration lookup ENV string with given key and convert to time.Duration or returns default value if not exists

func LookupEnvOrInt

func LookupEnvOrInt(key string, defaultVal int) int

LookupEnvOrInt lookup ENV string with given key and convert to int, or returns default value if not exists or conversion failed

func LookupEnvOrString

func LookupEnvOrString(key string, defaultVal string) string

Types

type Config

type Config struct {
	Auths map[string]map[string]string `json:"auths"`
}

type Info

type Info struct {
	Url      string
	User     string
	Password string
}

type Options

type Options struct {
	SecretName               string
	ConfigForce              bool
	ConfigPath               string
	ConfigExcludedNamespaces string
	ConfigManagedOnly        bool
	ConfigRunOnce            bool
	ConfigAllServiceAccount  bool
	ConfigServiceAccounts    string
	ConfigLoopDuration       time.Duration
}

func (*Options) ParseConfig

func (opt *Options) ParseConfig() (string, error)

func (*Options) Process

func (opt *Options) Process()

Jump to

Keyboard shortcuts

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