mapper

package
v0.0.0-...-98e341c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 (n ContainerPorts) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (n ContainerProbeHandler) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (n ContainerStatus) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (c *Creator) FromInternal(data map[string]interface{})

func (*Creator) ModifySchema

func (c *Creator) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (*Creator) ToInternal

func (c *Creator) ToInternal(data map[string]interface{}) error

type CredentialMapper

type CredentialMapper struct {
}

func (CredentialMapper) FromInternal

func (s CredentialMapper) FromInternal(data map[string]interface{})

func (CredentialMapper) ModifySchema

func (s CredentialMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (c CrossVersionObjectToWorkload) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (CrossVersionObjectToWorkload) ToInternal

func (c CrossVersionObjectToWorkload) ToInternal(data map[string]interface{}) error

type DropFromSchema

type DropFromSchema struct {
	mapper.Drop
}

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 (i IngressBackend) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (i IngressPath) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (i IngressSpec) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (e InitContainerMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (m *MergeListByIndexMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (*MergeListByIndexMapper) ToInternal

func (m *MergeListByIndexMapper) ToInternal(data map[string]interface{}) error

type NamespaceIDMapper

type NamespaceIDMapper struct {
	Move *mapper.Move
}

func (*NamespaceIDMapper) FromInternal

func (n *NamespaceIDMapper) FromInternal(data map[string]interface{})

func (*NamespaceIDMapper) ModifySchema

func (n *NamespaceIDMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (n *NamespaceReference) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (n NodeAddressAnnotationMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (n NodeAddressMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (NodeAddressMapper) ToInternal

func (n NodeAddressMapper) ToInternal(data map[string]interface{}) error

type OSInfo

type OSInfo struct {
}

func (OSInfo) FromInternal

func (o OSInfo) FromInternal(data map[string]interface{})

func (OSInfo) ModifySchema

func (o OSInfo) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (OSInfo) ToInternal

func (o OSInfo) ToInternal(data map[string]interface{}) error

type PersistVolumeClaim

type PersistVolumeClaim struct {
}

func (PersistVolumeClaim) FromInternal

func (p PersistVolumeClaim) FromInternal(data map[string]interface{})

func (PersistVolumeClaim) ModifySchema

func (p PersistVolumeClaim) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (s SchedulingMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (s StatefulSetSpecMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (StatefulSetSpecMapper) ToInternal

func (s StatefulSetSpecMapper) ToInternal(data map[string]interface{}) error

type Status

type Status struct {
}

func (Status) FromInternal

func (s Status) FromInternal(data map[string]interface{})

func (Status) ModifySchema

func (s Status) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (Status) ToInternal

func (s Status) ToInternal(data map[string]interface{}) error

type WorkloadAnnotations

type WorkloadAnnotations struct {
}

func (WorkloadAnnotations) FromInternal

func (n WorkloadAnnotations) FromInternal(data map[string]interface{})

func (WorkloadAnnotations) ModifySchema

func (n WorkloadAnnotations) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (WorkloadAnnotations) ToInternal

func (n WorkloadAnnotations) ToInternal(data map[string]interface{}) error

Jump to

Keyboard shortcuts

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