Documentation ¶
Index ¶
- Constants
- Variables
- func GetBool(configStore *configstore.Store, name string, defaultValue bool) (bool, error)
- func GetInt(configStore *configstore.Store, name string, defaultValue int) (int, error)
- func GetItem(configStore *configstore.Store, name string, defaultValue string) (configstore.Item, error)
- func GetString(configStore *configstore.Store, name string, defaultValue string) (string, error)
- func IsNotFound(err error, key string) bool
- func NewConfigWithDefaults() *configstore.Store
Constants ¶
View Source
const ( HarborClassKey = "classname" ReconciliationKey = "max-concurrent-reconciliation" NetworkPoliciesEnabledKey = "network-policies" CtrlConfigDirectoryKey = "controllers-config-directory" TemplateDirectoryKey = "template-directory" )
View Source
const ( DefaultPriority = 5 DefaultConcurrentReconcile = 1 DefaultHarborClass = "" DefaultNetworkPoliciesEnabled = false DefaultConfigDirectory = "/etc/harbor-operator" DefaultTemplateDirectory = DefaultConfigDirectory + "/templates" // DefaultImagePullPolicy specifies the policy to image pulls. DefaultImagePullPolicy = corev1.PullIfNotPresent )
Variables ¶
View Source
var ErrNotReady = errors.New("configuration not ready")
Functions ¶
func GetItem ¶ added in v1.0.1
func GetItem(configStore *configstore.Store, name string, defaultValue string) (configstore.Item, error)
func IsNotFound ¶
func NewConfigWithDefaults ¶
func NewConfigWithDefaults() *configstore.Store
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.