v1alpha1

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the smartnat v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/DevFactory/smartnat/pkg/apis/smartnat +k8s:defaulter-gen=TypeMeta +groupName=smartnat.aureacentral.com

Package v1alpha1 contains API Schema definitions for the smartnat v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/DevFactory/smartnat/pkg/apis/smartnat +k8s:defaulter-gen=TypeMeta +groupName=smartnat.aureacentral.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "smartnat.aureacentral.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type Mapping

type Mapping struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MappingSpec   `json:"spec,omitempty"`
	Status MappingStatus `json:"status,omitempty"`
}

Mapping is the Schema for the mappings API +k8s:openapi-gen=true TODO: status subresources are only alpha and disabed by default on 1.10. add "+" here when redy to enable. Sync with Maping update code in mapping_controller.go kubebuilder:subresource:status

func (*Mapping) DeepCopy

func (in *Mapping) DeepCopy() *Mapping

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mapping.

func (*Mapping) DeepCopyInto

func (in *Mapping) DeepCopyInto(out *Mapping)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Mapping) DeepCopyObject

func (in *Mapping) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MappingList

type MappingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Mapping `json:"items"`
}

MappingList contains a list of Mapping

func (*MappingList) DeepCopy

func (in *MappingList) DeepCopy() *MappingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingList.

func (*MappingList) DeepCopyInto

func (in *MappingList) DeepCopyInto(out *MappingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MappingList) DeepCopyObject

func (in *MappingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MappingPodIPs

type MappingPodIPs struct {
	PodIPs []string `json:"podIPs,omitempty"`
}

MappingPodIPs lists IPs of pods

func (*MappingPodIPs) DeepCopy

func (in *MappingPodIPs) DeepCopy() *MappingPodIPs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingPodIPs.

func (*MappingPodIPs) DeepCopyInto

func (in *MappingPodIPs) DeepCopyInto(out *MappingPodIPs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MappingPort

type MappingPort struct {
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	Port int32 `json:"port,omitempty"`
	// +kubebuilder:validation:Enum=tcp,udp
	Protocol string `json:"protocol,omitempty"`
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	ServicePort int32 `json:"servicePort,omitempty"`
}

MappingPort describes mapping for a single port

func (*MappingPort) DeepCopy

func (in *MappingPort) DeepCopy() *MappingPort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingPort.

func (*MappingPort) DeepCopyInto

func (in *MappingPort) DeepCopyInto(out *MappingPort)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MappingSpec

type MappingSpec struct {
	// +kubebuilder:validation:MinItems=1
	Addresses []string `json:"addresses"`
	// +kubebuilder:validation:MinItems=0
	AllowedSources []string `json:"allowedSources"`
	// +kubebuilder:validation:MaxLength=62
	// +kubebuilder:validation:MinLength=1
	ServiceName string `json:"serviceName"`
	// +kubebuilder:validation:Enum=service
	Mode string `json:"mode"`
	// +kubebuilder:validation:MinItems=1
	Ports []MappingPort `json:"ports"`
}

MappingSpec defines the desired state of Mapping

func (*MappingSpec) DeepCopy

func (in *MappingSpec) DeepCopy() *MappingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingSpec.

func (*MappingSpec) DeepCopyInto

func (in *MappingSpec) DeepCopyInto(out *MappingSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MappingStatus

type MappingStatus struct {
	Invalid             string                   `json:"invalid,omitempty"`
	ServiceVIP          string                   `json:"serviceVIP,omitempty"`
	ConfiguredAddresses map[string]MappingPodIPs `json:"configuredAddresses,omitempty"`
}

MappingStatus defines the observed state of Mapping

func (*MappingStatus) DeepCopy

func (in *MappingStatus) DeepCopy() *MappingStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MappingStatus.

func (*MappingStatus) DeepCopyInto

func (in *MappingStatus) DeepCopyInto(out *MappingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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