Documentation ¶
Overview ¶
File for all the secret key file parsing and initializiation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPublicKey ¶
Types ¶
type CommonConfiguration ¶
type CommonConfiguration struct { DefaultLimitsCPU string `yaml:"defaultLimitsCPU" env:"DEFAULT_LIMITS_CPU" env-default:"100m"` DefaultLimitsMemory string `yaml:"defaultLimitsMemory" env:"DEFAULT_LIMITS_MEMORY" env-default:"128Mi"` DefaultRequestsCPU string `yaml:"defaultRequestsCPU" env:"DEFAULT_REQUESTS_CPU" env-default:"50m"` DefaultRequestMemory string `yaml:"defaultRequestMemory" env:"DEFAULT_REQUESTS_MEMORY" env-default:"64Mi"` DefaultVolumeSize string `yaml:"defaultVolumeSize" env:"DEFAULT_VOLUME_SIZE" env-default:"1G"` DefaultTag string `yaml:"defaultTag" env:"DEFAULT_TAG" env-default:"latest"` DefaultTimeout time.Duration `yaml:"defaultTimeout" env:"DEFAULT_TIMEOUT" env-default:"5s"` GrpcKeepalive time.Duration `yaml:"grpcKeepalive" env:"GRPC_KEEPALIVE" env-default:"60s"` Debug bool `yaml:"debug" env:"DEBUG" env-default:"false"` // TODO(c3ppc3pp): custom setter to validate input GrpcToken string `yaml:"grpcToken" env:"GRPC_TOKEN"` GrpcInsecure bool `yaml:"grpcInsecure" env:"GRPC_INSECURE" env-default:"false"` ImportContainerImage string `yaml:"importContainerImage" env:"IMPORT_CONTAINER_IMAGE" env-default:"rclone/rclone:1.57.0"` IngressRootDomain string `yaml:"ingressRootDomain" env:"INGRESS_ROOT_DOMAIN" env-default:""` // TODO(c3ppc3pp): custom UUIDv4 setter NodeID string `yaml:"nodeID" env:"NODE_ID" env-default:"cb7e9573-9a43-4d5b-8005-eb8bb7a423c4"` ReadHeaderTimeout time.Duration `yaml:"readHeaderTimeout" env:"READ_HEADER_TIMEOUT" env-default:"15s"` Registry string `yaml:"registry" env:"REGISTRY" env-default:"index.docker.io"` RegistryPassword string `yaml:"registryPassword" env:"REGISTRY_PASSWORD" env-default:""` RegistryUsername string `yaml:"registryUsername" env:"REGISTRY_USERNAME" env-default:""` SecretPrivateKey ConfigFromFile `yaml:"secretPrivateKeyFile" env:"SECRET_PRIVATE_KEY_FILE" env-default:"/srv/dagent/private.key"` }
configuration defaults convention is we have ALL the options here, but where defaults should be different we handle it on application level, every time we need a parameter we call into a function in a package which calls here, then we populate the options which should be different if not defined otherwise
type ConfigFromFile ¶
type ConfigFromFile string
func (*ConfigFromFile) SetValue ¶
func (field *ConfigFromFile) SetValue(secretPath string) error
Click to show internal directories.
Click to hide internal directories.