Documentation ¶
Index ¶
- func AggregateTerms(terms []v1.NodeSelectorTerm) v1.NodeSelectorTerm
- func NodeSelectorTermToStrings(term v1.NodeSelectorTerm) []string
- func StringsToNodeSelectorTerm(exprs []string) []v1.NodeSelectorTerm
- type ContainerPorts
- type ContainerProbeHandler
- type ContainerStatus
- type Creator
- type CredentialMapper
- type CrossVersionObjectToWorkload
- type DropFromSchema
- type IngressBackend
- type IngressPath
- type IngressSpec
- type InitContainerMapper
- type MergeListByIndexMapper
- type NamespaceIDMapper
- type NamespaceReference
- type NodeAddressAnnotationMapper
- type NodeAddressMapper
- type OSInfo
- type PersistVolumeClaim
- type SchedulingMapper
- type StatefulSetSpecMapper
- type Status
- type WorkloadAnnotations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateTerms ¶
func AggregateTerms(terms []v1.NodeSelectorTerm) v1.NodeSelectorTerm
func NodeSelectorTermToStrings ¶
func NodeSelectorTermToStrings(term v1.NodeSelectorTerm) []string
func StringsToNodeSelectorTerm ¶
func StringsToNodeSelectorTerm(exprs []string) []v1.NodeSelectorTerm
Types ¶
type ContainerPorts ¶
type ContainerPorts struct { }
func (ContainerPorts) FromInternal ¶
func (n ContainerPorts) FromInternal(data map[string]interface{})
func (ContainerPorts) ModifySchema ¶
func (ContainerPorts) ToInternal ¶
func (n ContainerPorts) ToInternal(data map[string]interface{}) error
type ContainerProbeHandler ¶
type ContainerProbeHandler struct { }
func (ContainerProbeHandler) FromInternal ¶
func (n ContainerProbeHandler) FromInternal(data map[string]interface{})
func (ContainerProbeHandler) ModifySchema ¶
func (ContainerProbeHandler) ToInternal ¶
func (n ContainerProbeHandler) ToInternal(data map[string]interface{}) error
type ContainerStatus ¶
type ContainerStatus struct { }
func (ContainerStatus) FromInternal ¶
func (n ContainerStatus) FromInternal(data map[string]interface{})
func (ContainerStatus) ModifySchema ¶
func (ContainerStatus) ToInternal ¶
func (n ContainerStatus) ToInternal(data map[string]interface{}) error
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
func (*Creator) FromInternal ¶
func (*Creator) ModifySchema ¶
func (*Creator) ToInternal ¶
type CredentialMapper ¶
type CredentialMapper struct { }
func (CredentialMapper) FromInternal ¶
func (s CredentialMapper) FromInternal(data map[string]interface{})
func (CredentialMapper) ModifySchema ¶
func (CredentialMapper) ToInternal ¶
func (s CredentialMapper) ToInternal(data map[string]interface{}) error
type CrossVersionObjectToWorkload ¶
type CrossVersionObjectToWorkload struct {
Field string
}
func (CrossVersionObjectToWorkload) FromInternal ¶
func (c CrossVersionObjectToWorkload) FromInternal(data map[string]interface{})
func (CrossVersionObjectToWorkload) ModifySchema ¶
func (CrossVersionObjectToWorkload) ToInternal ¶
func (c CrossVersionObjectToWorkload) ToInternal(data map[string]interface{}) error
type DropFromSchema ¶
DropFromSchema This mapper differs from the existing drop mapper in that it does not remove the field if it is present, only removing the field from the schema. This is so that fields that must be present for formatters and stores will be available, but not shown on the schema
func NewDropFromSchema ¶
func NewDropFromSchema(name string) *DropFromSchema
func (DropFromSchema) FromInternal ¶
func (d DropFromSchema) FromInternal(data map[string]interface{})
type IngressBackend ¶
type IngressBackend struct{}
IngressBackend mapper copies service fields within k8s.io/api/networking/v1.IngressBackend to the equivalents in k8s.io/api/extensions/v1beta1.IngressBackend. Applies to the Spec.DefaultBackend and Spec.Rules[*].Backend.
func (IngressBackend) FromInternal ¶
func (i IngressBackend) FromInternal(data map[string]interface{})
func (IngressBackend) ModifySchema ¶
func (IngressBackend) ToInternal ¶
func (i IngressBackend) ToInternal(data map[string]interface{}) error
type IngressPath ¶
type IngressPath struct{}
IngressPath mapper applies the required pathType field to k8s.io/api/networking/v1.HTTPIngressPath.
func (IngressPath) FromInternal ¶
func (i IngressPath) FromInternal(data map[string]interface{})
func (IngressPath) ModifySchema ¶
func (IngressPath) ToInternal ¶
func (i IngressPath) ToInternal(data map[string]interface{}) error
type IngressSpec ¶
type IngressSpec struct{}
IngressSpec mapper copies defaultBackend (type k8s.io/api/networking/v1.IngressBackend) to backend (type k8s.io/api/extensions/v1beta1.IngressBackend) on Spec.
func (IngressSpec) FromInternal ¶
func (i IngressSpec) FromInternal(data map[string]interface{})
func (IngressSpec) ModifySchema ¶
func (IngressSpec) ToInternal ¶
func (i IngressSpec) ToInternal(data map[string]interface{}) error
type InitContainerMapper ¶
type InitContainerMapper struct { }
func (InitContainerMapper) FromInternal ¶
func (e InitContainerMapper) FromInternal(data map[string]interface{})
func (InitContainerMapper) ModifySchema ¶
func (InitContainerMapper) ToInternal ¶
func (e InitContainerMapper) ToInternal(data map[string]interface{}) error
type MergeListByIndexMapper ¶
type MergeListByIndexMapper struct { From string To string Ignore map[string]struct{} // contains filtered or unexported fields }
func NewMergeListByIndexMapper ¶
func NewMergeListByIndexMapper(From, To string, Ignores ...string) *MergeListByIndexMapper
func (*MergeListByIndexMapper) FromInternal ¶
func (m *MergeListByIndexMapper) FromInternal(data map[string]interface{})
func (*MergeListByIndexMapper) ModifySchema ¶
func (*MergeListByIndexMapper) ToInternal ¶
func (m *MergeListByIndexMapper) ToInternal(data map[string]interface{}) error
type NamespaceIDMapper ¶
func (*NamespaceIDMapper) FromInternal ¶
func (n *NamespaceIDMapper) FromInternal(data map[string]interface{})
func (*NamespaceIDMapper) ModifySchema ¶
func (*NamespaceIDMapper) ToInternal ¶
func (n *NamespaceIDMapper) ToInternal(data map[string]interface{}) error
type NamespaceReference ¶
type NamespaceReference struct { VersionPath string // contains filtered or unexported fields }
func (*NamespaceReference) FromInternal ¶
func (n *NamespaceReference) FromInternal(data map[string]interface{})
func (*NamespaceReference) ModifySchema ¶
func (*NamespaceReference) ToInternal ¶
func (n *NamespaceReference) ToInternal(data map[string]interface{}) error
type NodeAddressAnnotationMapper ¶
type NodeAddressAnnotationMapper struct { }
func (NodeAddressAnnotationMapper) FromInternal ¶
func (n NodeAddressAnnotationMapper) FromInternal(data map[string]interface{})
func (NodeAddressAnnotationMapper) ModifySchema ¶
func (NodeAddressAnnotationMapper) ToInternal ¶
func (n NodeAddressAnnotationMapper) ToInternal(data map[string]interface{}) error
type NodeAddressMapper ¶
type NodeAddressMapper struct { }
func (NodeAddressMapper) FromInternal ¶
func (n NodeAddressMapper) FromInternal(data map[string]interface{})
func (NodeAddressMapper) ModifySchema ¶
func (NodeAddressMapper) ToInternal ¶
func (n NodeAddressMapper) ToInternal(data map[string]interface{}) error
type OSInfo ¶
type OSInfo struct { }
func (OSInfo) FromInternal ¶
func (OSInfo) ModifySchema ¶
func (OSInfo) ToInternal ¶
type PersistVolumeClaim ¶
type PersistVolumeClaim struct { }
func (PersistVolumeClaim) FromInternal ¶
func (p PersistVolumeClaim) FromInternal(data map[string]interface{})
func (PersistVolumeClaim) ModifySchema ¶
func (PersistVolumeClaim) ToInternal ¶
func (p PersistVolumeClaim) ToInternal(data map[string]interface{}) error
type SchedulingMapper ¶
type SchedulingMapper struct { }
func (SchedulingMapper) FromInternal ¶
func (s SchedulingMapper) FromInternal(data map[string]interface{})
func (SchedulingMapper) ModifySchema ¶
func (SchedulingMapper) ToInternal ¶
func (s SchedulingMapper) ToInternal(data map[string]interface{}) error
type StatefulSetSpecMapper ¶
type StatefulSetSpecMapper struct { }
func (StatefulSetSpecMapper) FromInternal ¶
func (s StatefulSetSpecMapper) FromInternal(data map[string]interface{})
func (StatefulSetSpecMapper) ModifySchema ¶
func (StatefulSetSpecMapper) ToInternal ¶
func (s StatefulSetSpecMapper) ToInternal(data map[string]interface{}) error
type Status ¶
type Status struct { }
func (Status) FromInternal ¶
func (Status) ModifySchema ¶
func (Status) ToInternal ¶
type WorkloadAnnotations ¶
type WorkloadAnnotations struct { }
func (WorkloadAnnotations) FromInternal ¶
func (n WorkloadAnnotations) FromInternal(data map[string]interface{})
func (WorkloadAnnotations) ModifySchema ¶
func (WorkloadAnnotations) ToInternal ¶
func (n WorkloadAnnotations) ToInternal(data map[string]interface{}) error
Source Files ¶
- container_ports.go
- container_probe.go
- container_status.go
- creator.go
- credentialmapper.go
- cross_version_object.go
- drop_from_schema.go
- ingress_backend.go
- init_container.go
- merge_list_by_index.go
- namespace.go
- namespace_reference.go
- node_address.go
- os_info.go
- persistvolumeclaim.go
- scheduling.go
- statefulset_spec.go
- status.go
- workload.go