Documentation ¶
Index ¶
- Constants
- Variables
- func NormalizeContainerPort(port v1.ContainerPort) v1.ContainerPort
- func ParseAllEnv(files []string, envs []string, readEnv bool) (result []v1.EnvVar, err error)
- func ParseConfig(config string) (v1.DataMount, error)
- func ParseConfigs(configs ...string) (result []v1.DataMount, err error)
- func ParseDNSOption(option string) (riov1.PodDNSConfigOption, error)
- func ParseDNSOptions(options ...string) (result []riov1.PodDNSConfigOption, err error)
- func ParseDataMount(mount string) (v1.DataMount, error)
- func ParseDuration(num string) (result metav1.Duration, err error)
- func ParseEnv(env string) (v1.EnvVar, error)
- func ParseEnvs(envs ...string) (result []v1.EnvVar, err error)
- func ParseHostAlias(host string) (v1.HostAlias, error)
- func ParseHostAliases(hosts ...string) (result []v1.HostAlias, err error)
- func ParseImagePullPolicy(policy string) (v1.PullPolicy, error)
- func ParsePermission(perm string) (result v1.Permission, err error)
- func ParsePermissions(perms ...string) (result []v1.Permission, err error)
- func ParsePort(spec string) (result v1.ContainerPort, err error)
- func ParsePorts(specs ...string) (result []v1.ContainerPort, err error)
- func ParseQuantity(num string) (result resource.Quantity, err error)
- func ParseSecret(secret string) (v1.DataMount, error)
- func ParseSecrets(secrets ...string) (result []v1.DataMount, err error)
- func ParseUserGroup(user string, group string) (uid *int64, gid *int64, err error)
- func ParseVolume(v string) (volume v1.Volume, err error)
- func ParseVolumes(vols ...string) (result []v1.Volume, err error)
- type ConfigsStringer
- type ContainerPortStringer
- type DataMountStringer
- type EnvStringer
- type HostAliasStringer
- type PermissionStringer
- type PodDNSConfigOptionStringer
- type SecretsStringer
- type VolumeStringer
Constants ¶
View Source
const (
ConfigsDefaultPath = "/run/configs"
)
View Source
const (
SecretsDefaultPath = "/run/secrets"
)
Variables ¶
View Source
var ( ReadVerbs = []string{ "get", "list", "watch", } WriteVerbs = []string{ "create", "delete", "get", "list", "patch", "update", "watch", } )
Functions ¶
func NormalizeContainerPort ¶
func NormalizeContainerPort(port v1.ContainerPort) v1.ContainerPort
func ParseAllEnv ¶
func ParseDNSOption ¶
func ParseDNSOption(option string) (riov1.PodDNSConfigOption, error)
func ParseDNSOptions ¶
func ParseDNSOptions(options ...string) (result []riov1.PodDNSConfigOption, err error)
func ParseImagePullPolicy ¶
func ParseImagePullPolicy(policy string) (v1.PullPolicy, error)
func ParsePermission ¶
func ParsePermission(perm string) (result v1.Permission, err error)
func ParsePermissions ¶
func ParsePermissions(perms ...string) (result []v1.Permission, err error)
func ParsePorts ¶
func ParsePorts(specs ...string) (result []v1.ContainerPort, err error)
func ParseUserGroup ¶
Types ¶
type ConfigsStringer ¶
type ConfigsStringer struct {
DataMountStringer
}
func (ConfigsStringer) MaybeString ¶
func (d ConfigsStringer) MaybeString() interface{}
type ContainerPortStringer ¶
type ContainerPortStringer struct {
v1.ContainerPort
}
func (ContainerPortStringer) MaybeString ¶
func (e ContainerPortStringer) MaybeString() interface{}
type DataMountStringer ¶
func (DataMountStringer) MaybeString ¶
func (d DataMountStringer) MaybeString() interface{}
type EnvStringer ¶
func (*EnvStringer) MaybeString ¶
func (e *EnvStringer) MaybeString() interface{}
type HostAliasStringer ¶
func (HostAliasStringer) MaybeString ¶
func (h HostAliasStringer) MaybeString() interface{}
type PermissionStringer ¶
type PermissionStringer struct {
v1.Permission
}
func (PermissionStringer) MaybeString ¶
func (p PermissionStringer) MaybeString() interface{}
type PodDNSConfigOptionStringer ¶
type PodDNSConfigOptionStringer struct {
riov1.PodDNSConfigOption
}
func (PodDNSConfigOptionStringer) MaybeString ¶
func (p PodDNSConfigOptionStringer) MaybeString() interface{}
type SecretsStringer ¶
type SecretsStringer struct {
DataMountStringer
}
func (SecretsStringer) MaybeString ¶
func (d SecretsStringer) MaybeString() interface{}
type VolumeStringer ¶
func (VolumeStringer) MaybeString ¶
func (v VolumeStringer) MaybeString() interface{}
Click to show internal directories.
Click to hide internal directories.