config

package
v0.0.0-...-b46b529 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 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 Config

type Config struct {
	AwsRegion        string   `env:"AWS_REGION" envDefault:"us-east-2"`
	SecretName       string   `env:"SECRET_NAME" envDefault:"ecr-docker-secret"`
	TargetNamespaces []string `env:"TARGET_NAMESPACES" envDefault:"default"`
	TargetRegistries []string `env:"TARGET_REGISTRIES"`
	SecretType       string   `env:"SECRET_TYPE" envDefault:"Opaque"`
	SecretTypeName   v1.SecretType
}

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig reads configuration from file or environment variables.

Jump to

Keyboard shortcuts

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