harbor

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvVar

func EnvVar(configName string, value ConfigValue) (corev1.EnvVar, error)

func EnvVars

func EnvVars(configs map[string]ConfigValue) ([]corev1.EnvVar, error)

Types

type ConfigValue

type ConfigValue interface {
	GetValue() string
	GetValueFrom() *corev1.EnvVarSource
}

type Value

type Value string

func (Value) GetValue

func (v Value) GetValue() string

func (Value) GetValueFrom

func (v Value) GetValueFrom() *corev1.EnvVarSource

type ValueFrom

type ValueFrom corev1.EnvVarSource

func (ValueFrom) GetValue

func (v ValueFrom) GetValue() string

func (ValueFrom) GetValueFrom

func (v ValueFrom) GetValueFrom() *corev1.EnvVarSource

Jump to

Keyboard shortcuts

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