stringers

package
v0.6.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 ParseAllEnv(files []string, envs []string, readEnv bool) (result []v1.EnvVar, err error)

func ParseConfig

func ParseConfig(config string) (v1.DataMount, error)

func ParseConfigs

func ParseConfigs(configs ...string) (result []v1.DataMount, err error)

func ParseDNSOption

func ParseDNSOption(option string) (riov1.PodDNSConfigOption, error)

func ParseDNSOptions

func ParseDNSOptions(options ...string) (result []riov1.PodDNSConfigOption, err error)

func ParseDataMount

func ParseDataMount(mount string) (v1.DataMount, error)

func ParseDuration

func ParseDuration(num string) (result metav1.Duration, err error)

func ParseEnv

func ParseEnv(env string) (v1.EnvVar, error)

func ParseEnvs

func ParseEnvs(envs ...string) (result []v1.EnvVar, err error)

func ParseHostAlias

func ParseHostAlias(host string) (v1.HostAlias, error)

func ParseHostAliases

func ParseHostAliases(hosts ...string) (result []v1.HostAlias, 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 ParsePort

func ParsePort(spec string) (result v1.ContainerPort, err error)

func ParsePorts

func ParsePorts(specs ...string) (result []v1.ContainerPort, err error)

func ParseQuantity

func ParseQuantity(num string) (result resource.Quantity, err error)

func ParseSecret

func ParseSecret(secret string) (v1.DataMount, error)

func ParseSecrets

func ParseSecrets(secrets ...string) (result []v1.DataMount, err error)

func ParseUserGroup

func ParseUserGroup(user string, group string) (uid *int64, gid *int64, err error)

func ParseVolume

func ParseVolume(v string) (volume v1.Volume, err error)

func ParseVolumes

func ParseVolumes(vols ...string) (result []v1.Volume, err error)

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

type DataMountStringer struct {
	v1.DataMount
	// contains filtered or unexported fields
}

func (DataMountStringer) MaybeString

func (d DataMountStringer) MaybeString() interface{}

type EnvStringer

type EnvStringer struct {
	v1.EnvVar
}

func (*EnvStringer) MaybeString

func (e *EnvStringer) MaybeString() interface{}

type HostAliasStringer

type HostAliasStringer struct {
	v1.HostAlias
}

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

type VolumeStringer struct {
	v1.Volume
}

func (VolumeStringer) MaybeString

func (v VolumeStringer) MaybeString() interface{}

Jump to

Keyboard shortcuts

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