config

package
v0.0.0-...-9a4926e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	// logger
	Logger struct {
		Debug   bool `           long:"debug"        env:"DEBUG"    description:"debug mode"`
		Trace   bool `           long:"trace"        env:"TRACE"    description:"verbose mode"`
		LogJson bool `           long:"log.json"     env:"LOG_JSON" description:"Switch log output to json format"`
	}

	BootstrapToken struct {
		IdTemplate                   string         `` /* 186-byte string literal not displayed */
		Name                         string         `` /* 178-byte string literal not displayed */
		Label                        string         `` /* 207-byte string literal not displayed */
		Namespace                    string         `` /* 176-byte string literal not displayed */
		Type                         string         `` /* 189-byte string literal not displayed */
		UsageBootstrapAuthentication string         `` /* 190-byte string literal not displayed */
		UsageBootstrapSigning        string         `` /* 183-byte string literal not displayed */
		AuthExtraGroups              string         `` /* 229-byte string literal not displayed */
		Expiration                   *time.Duration `` /* 187-byte string literal not displayed */
		TokenLength                  uint           `` /* 191-byte string literal not displayed */
		TokenRunes                   string         `` /* 246-byte string literal not displayed */
	}

	Sync struct {
		Time           time.Duration `long:"sync.time"               env:"SYNC_TIME"                 description:"Sync time (time.Duration)" default:"1h"`
		RecreateBefore time.Duration `` /* 153-byte string literal not displayed */
		Full           bool          `long:"sync.full"               env:"SYNC_FULL"                 description:"Sync also previous tokens (full sync)"`
	}

	CloudProvider struct {
		Provider *string `long:"cloud-provider"  env:"CLOUD_PROVIDER"       description:"Cloud provider" choice:"azure" required:"true"`
		Config   *string `long:"cloud-config"    env:"CLOUD_CONFIG"         description:"Cloud provider configuration path"`

		Azure struct {
			Environment        *string `long:"azure-environment"            env:"AZURE_ENVIRONMENT"                description:"Azure environment name"`
			KeyVaultName       *string `long:"azure.keyvault-name"          env:"AZURE_KEYVAULT_NAME"              description:"Name of Keyvault to sync token"`
			KeyVaultSecretName *string `` /* 157-byte string literal not displayed */
		}
	}

	// general options
	DryRun bool `long:"dry-run"  env:"DRY_RUN"       description:"Dry run (do not apply to nodes)"`

	// general options
	Server struct {
		// general options
		Bind         string        `long:"server.bind"              env:"SERVER_BIND"           description:"Server address"        default:":8080"`
		ReadTimeout  time.Duration `long:"server.timeout.read"      env:"SERVER_TIMEOUT_READ"   description:"Server read timeout"   default:"5s"`
		WriteTimeout time.Duration `long:"server.timeout.write"     env:"SERVER_TIMEOUT_WRITE"  description:"Server write timeout"  default:"10s"`
	}
}

func (*Opts) GetJson

func (o *Opts) GetJson() []byte

Jump to

Keyboard shortcuts

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