util

package
v0.0.0-...-8f580fe Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalAffinity

func MarshalAffinity(affinity *apiv1.Affinity) (string, error)

MarshalAffinity encodes the given Affinity into a string.

func MarshalOwnerReference

func MarshalOwnerReference(reference *metav1.OwnerReference) (string, error)

MarshalOwnerReference encodes the given OwnerReference into a string.

func MarshalVolume

func MarshalVolume(volume *apiv1.Volume) (string, error)

MarshalVolume encodes the given Volume into a string.

func MarshalVolumeMount

func MarshalVolumeMount(mount *apiv1.VolumeMount) (string, error)

MarshalVolumeMount encodes the given VolumeMount into a string.

func NewHash32

func NewHash32() hash.Hash32

NewHash32 returns a 32-bit hash computed from the given byte slice.

func UnmarshalAffinity

func UnmarshalAffinity(affinityStr string) (*apiv1.Affinity, error)

UnmarshalAffinity decodes a Affinity from the given string.

func UnmarshalOwnerReference

func UnmarshalOwnerReference(ownerReferenceStr string) (*metav1.OwnerReference, error)

UnmarshalOwnerReference decodes a OwnerReference from the given string.

func UnmarshalVolume

func UnmarshalVolume(volumeStr string) (*apiv1.Volume, error)

UnmarshalVolume decodes a Volume from the given string.

func UnmarshalVolumeMount

func UnmarshalVolumeMount(mountStr string) (*apiv1.VolumeMount, error)

UnmarshalVolumeMount decodes a VolumeMount from the given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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