defaults

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GroupName = ""

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder object to register various known types
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme represents a func that can be used to apply all the registered
	// funcs in a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AllPtrFieldsNil added in v1.0.2

func AllPtrFieldsNil(obj interface{}) bool

func ExternallyAccessible added in v1.0.2

func ExternallyAccessible(service *v1.Service) bool

ExternallyAccessible checks if service is externally accessible.

func Kind added in v1.0.2

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func NeatDefaults

func NeatDefaults(in string) (string, error)

NeatDefaults gets a json document representing a Kubernetes resource, and removes all fields with default values. default values is determined by invoking the "defaulting" code from Kubernetes apimachinery

func ParseImageName added in v1.0.2

func ParseImageName(image string) (string, string, string, error)

ParseImageName parses a docker image string into three parts: repo, tag and digest. If both tag and digest are empty, a default image tag will be returned.

func RegisterDefaults added in v1.0.2

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource added in v1.0.2

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_AzureDiskVolumeSource added in v1.0.2

func SetDefaults_AzureDiskVolumeSource(obj *v1.AzureDiskVolumeSource)

func SetDefaults_ConfigMap added in v1.0.2

func SetDefaults_ConfigMap(obj *v1.ConfigMap)

func SetDefaults_ConfigMapVolumeSource added in v1.0.2

func SetDefaults_ConfigMapVolumeSource(obj *v1.ConfigMapVolumeSource)

func SetDefaults_Container added in v1.0.2

func SetDefaults_Container(obj *v1.Container)

func SetDefaults_DownwardAPIVolumeSource added in v1.0.2

func SetDefaults_DownwardAPIVolumeSource(obj *v1.DownwardAPIVolumeSource)

func SetDefaults_Endpoints added in v1.0.2

func SetDefaults_Endpoints(obj *v1.Endpoints)

func SetDefaults_EphemeralContainer added in v1.0.2

func SetDefaults_EphemeralContainer(obj *v1.EphemeralContainer)

func SetDefaults_HTTPGetAction added in v1.0.2

func SetDefaults_HTTPGetAction(obj *v1.HTTPGetAction)

func SetDefaults_HostPathVolumeSource added in v1.0.2

func SetDefaults_HostPathVolumeSource(obj *v1.HostPathVolumeSource)

func SetDefaults_ISCSIPersistentVolumeSource added in v1.0.2

func SetDefaults_ISCSIPersistentVolumeSource(obj *v1.ISCSIPersistentVolumeSource)

func SetDefaults_ISCSIVolumeSource added in v1.0.2

func SetDefaults_ISCSIVolumeSource(obj *v1.ISCSIVolumeSource)

func SetDefaults_LimitRangeItem added in v1.0.2

func SetDefaults_LimitRangeItem(obj *v1.LimitRangeItem)

func SetDefaults_Namespace added in v1.0.2

func SetDefaults_Namespace(obj *v1.Namespace)

SetDefaults_Namespace adds a default label for all namespaces

func SetDefaults_NamespaceStatus added in v1.0.2

func SetDefaults_NamespaceStatus(obj *v1.NamespaceStatus)

func SetDefaults_NodeStatus added in v1.0.2

func SetDefaults_NodeStatus(obj *v1.NodeStatus)

func SetDefaults_ObjectFieldSelector added in v1.0.2

func SetDefaults_ObjectFieldSelector(obj *v1.ObjectFieldSelector)

func SetDefaults_PersistentVolume added in v1.0.2

func SetDefaults_PersistentVolume(obj *v1.PersistentVolume)

func SetDefaults_PersistentVolumeClaim added in v1.0.2

func SetDefaults_PersistentVolumeClaim(obj *v1.PersistentVolumeClaim)

func SetDefaults_PersistentVolumeClaimSpec added in v1.0.2

func SetDefaults_PersistentVolumeClaimSpec(obj *v1.PersistentVolumeClaimSpec)

func SetDefaults_Pod added in v1.0.2

func SetDefaults_Pod(obj *v1.Pod)

func SetDefaults_PodSpec added in v1.0.2

func SetDefaults_PodSpec(obj *v1.PodSpec)

func SetDefaults_Probe added in v1.0.2

func SetDefaults_Probe(obj *v1.Probe)

func SetDefaults_ProjectedVolumeSource added in v1.0.2

func SetDefaults_ProjectedVolumeSource(obj *v1.ProjectedVolumeSource)

func SetDefaults_RBDPersistentVolumeSource added in v1.0.2

func SetDefaults_RBDPersistentVolumeSource(obj *v1.RBDPersistentVolumeSource)

func SetDefaults_RBDVolumeSource added in v1.0.2

func SetDefaults_RBDVolumeSource(obj *v1.RBDVolumeSource)

func SetDefaults_ReplicationController added in v1.0.2

func SetDefaults_ReplicationController(obj *v1.ReplicationController)

func SetDefaults_ResourceList added in v1.0.2

func SetDefaults_ResourceList(obj *v1.ResourceList)

func SetDefaults_ScaleIOPersistentVolumeSource added in v1.0.2

func SetDefaults_ScaleIOPersistentVolumeSource(obj *v1.ScaleIOPersistentVolumeSource)

func SetDefaults_ScaleIOVolumeSource added in v1.0.2

func SetDefaults_ScaleIOVolumeSource(obj *v1.ScaleIOVolumeSource)

func SetDefaults_Secret added in v1.0.2

func SetDefaults_Secret(obj *v1.Secret)

func SetDefaults_SecretVolumeSource added in v1.0.2

func SetDefaults_SecretVolumeSource(obj *v1.SecretVolumeSource)

func SetDefaults_Service added in v1.0.2

func SetDefaults_Service(obj *v1.Service)

func SetDefaults_ServiceAccountTokenProjection added in v1.0.2

func SetDefaults_ServiceAccountTokenProjection(obj *v1.ServiceAccountTokenProjection)

func SetDefaults_Volume added in v1.0.2

func SetDefaults_Volume(obj *v1.Volume)

func SetObjectDefaults_ConfigMap added in v1.0.2

func SetObjectDefaults_ConfigMap(in *v1.ConfigMap)

func SetObjectDefaults_ConfigMapList added in v1.0.2

func SetObjectDefaults_ConfigMapList(in *v1.ConfigMapList)

func SetObjectDefaults_Endpoints added in v1.0.2

func SetObjectDefaults_Endpoints(in *v1.Endpoints)

func SetObjectDefaults_EndpointsList added in v1.0.2

func SetObjectDefaults_EndpointsList(in *v1.EndpointsList)

func SetObjectDefaults_LimitRange added in v1.0.2

func SetObjectDefaults_LimitRange(in *v1.LimitRange)

func SetObjectDefaults_LimitRangeList added in v1.0.2

func SetObjectDefaults_LimitRangeList(in *v1.LimitRangeList)

func SetObjectDefaults_Namespace added in v1.0.2

func SetObjectDefaults_Namespace(in *v1.Namespace)

func SetObjectDefaults_NamespaceList added in v1.0.2

func SetObjectDefaults_NamespaceList(in *v1.NamespaceList)

func SetObjectDefaults_Node added in v1.0.2

func SetObjectDefaults_Node(in *v1.Node)

func SetObjectDefaults_NodeList added in v1.0.2

func SetObjectDefaults_NodeList(in *v1.NodeList)

func SetObjectDefaults_PersistentVolume added in v1.0.2

func SetObjectDefaults_PersistentVolume(in *v1.PersistentVolume)

func SetObjectDefaults_PersistentVolumeClaim added in v1.0.2

func SetObjectDefaults_PersistentVolumeClaim(in *v1.PersistentVolumeClaim)

func SetObjectDefaults_PersistentVolumeClaimList added in v1.0.2

func SetObjectDefaults_PersistentVolumeClaimList(in *v1.PersistentVolumeClaimList)

func SetObjectDefaults_PersistentVolumeList added in v1.0.2

func SetObjectDefaults_PersistentVolumeList(in *v1.PersistentVolumeList)

func SetObjectDefaults_Pod added in v1.0.2

func SetObjectDefaults_Pod(in *v1.Pod)

func SetObjectDefaults_PodList added in v1.0.2

func SetObjectDefaults_PodList(in *v1.PodList)

func SetObjectDefaults_PodStatusResult added in v1.0.2

func SetObjectDefaults_PodStatusResult(in *v1.PodStatusResult)

func SetObjectDefaults_PodTemplate added in v1.0.2

func SetObjectDefaults_PodTemplate(in *v1.PodTemplate)

func SetObjectDefaults_PodTemplateList added in v1.0.2

func SetObjectDefaults_PodTemplateList(in *v1.PodTemplateList)

func SetObjectDefaults_ReplicationController added in v1.0.2

func SetObjectDefaults_ReplicationController(in *v1.ReplicationController)

func SetObjectDefaults_ReplicationControllerList added in v1.0.2

func SetObjectDefaults_ReplicationControllerList(in *v1.ReplicationControllerList)

func SetObjectDefaults_ResourceQuota added in v1.0.2

func SetObjectDefaults_ResourceQuota(in *v1.ResourceQuota)

func SetObjectDefaults_ResourceQuotaList added in v1.0.2

func SetObjectDefaults_ResourceQuotaList(in *v1.ResourceQuotaList)

func SetObjectDefaults_Secret added in v1.0.2

func SetObjectDefaults_Secret(in *v1.Secret)

func SetObjectDefaults_SecretList added in v1.0.2

func SetObjectDefaults_SecretList(in *v1.SecretList)

func SetObjectDefaults_Service added in v1.0.2

func SetObjectDefaults_Service(in *v1.Service)

func SetObjectDefaults_ServiceList added in v1.0.2

func SetObjectDefaults_ServiceList(in *v1.ServiceList)

Types

This section is empty.

Jump to

Keyboard shortcuts

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