v1beta1

package
v1.11.7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API. +groupName=networking.gke.io

Index

Constants

View Source
const (
	VmIpPortEndpointType      = NetworkEndpointType("GCE_VM_IP_PORT")
	VmIpEndpointType          = NetworkEndpointType("GCE_VM_IP")
	NonGCPPrivateEndpointType = NetworkEndpointType("NON_GCP_PRIVATE_IP_PORT")
)
View Source
const (
	// Initialized means all NEGs have been created and initialized.
	Initialized = "Initialized"
	// Synced means all NEGs are being synced.
	// The LastSyncTime represents the time when the last sync took place.
	Synced = "Synced"
)

These are valid conditions of NEG.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: svcneg.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Condition

type Condition struct {
	// Type is the type of the condition.
	// +required
	Type string `json:"type" protobuf:"bytes,1,opt,name=type"`
	// Status of the condition, one of True, False, Unknown.
	// +required
	Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"`
	// ObservedGeneration will not be set for ServiceNetworkEndpointGroup as the spec is empty.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
	// Last time the condition transitioned from one status to another.
	// +required
	LastTransitionTime metav1.Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"`
	// The reason for the condition's last transition
	// +required
	Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"`
	// A human readable message indicating details about the transition.
	// This field may be empty.
	// +required
	Message string `json:"message" protobuf:"bytes,6,opt,name=message"`
}

TODO: Replace Condition with standard Condition NegCondition contains details for the current condition of this NEG. +k8s:openapi-gen=true

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type NegObjectReference

type NegObjectReference struct {
	// The unique identifier for the NEG resource in GCE API.
	// +required
	Id string `json:"id"`

	// SelfLink is the GCE Server-defined fully-qualified URL for the GCE NEG resource
	SelfLink string `json:"selfLink,omitempty"`

	// NetworkEndpointType: Type of network endpoints in this network
	// endpoint group.
	NetworkEndpointType NetworkEndpointType `json:"networkEndpointType,omitempty"`
}

NegObjectReference is the object reference to the NEG resource in GCE +k8s:openapi-gen=true

func (*NegObjectReference) DeepCopy

func (in *NegObjectReference) DeepCopy() *NegObjectReference

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

func (*NegObjectReference) DeepCopyInto

func (in *NegObjectReference) DeepCopyInto(out *NegObjectReference)

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

type NetworkEndpointType

type NetworkEndpointType string

+k8s:openapi-gen=true

type ServiceNetworkEndpointGroup

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

	Spec   ServiceNetworkEndpointGroupSpec   `json:"spec,omitempty"`
	Status ServiceNetworkEndpointGroupStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

+k8s:openapi-gen=true

func (*ServiceNetworkEndpointGroup) DeepCopy

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

func (*ServiceNetworkEndpointGroup) DeepCopyInto

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

func (*ServiceNetworkEndpointGroup) DeepCopyObject

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

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

type ServiceNetworkEndpointGroupList

type ServiceNetworkEndpointGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ServiceNetworkEndpointGroup `json:"items"`
}

ServiceNetworkEndpointGroupList is a list of ServiceNetworkEndpointGroup resources

func (*ServiceNetworkEndpointGroupList) DeepCopy

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

func (*ServiceNetworkEndpointGroupList) DeepCopyInto

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

func (*ServiceNetworkEndpointGroupList) DeepCopyObject

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

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

type ServiceNetworkEndpointGroupSpec

type ServiceNetworkEndpointGroupSpec struct{}

ServiceNetworkEndpointGroupSpec is the spec for a ServiceNetworkEndpointGroup resource

func (*ServiceNetworkEndpointGroupSpec) DeepCopy

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

func (*ServiceNetworkEndpointGroupSpec) DeepCopyInto

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

type ServiceNetworkEndpointGroupStatus

type ServiceNetworkEndpointGroupStatus struct {
	// +listType=map
	// +listMapKey=id
	NetworkEndpointGroups []NegObjectReference `json:"networkEndpointGroups,omitempty"`

	// Last time the NEG syncer syncs associated NEGs.
	// +optional
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty"`

	// Last time the NEG syncer syncs associated NEGs.
	// +optional
	LastSyncTime metav1.Time `json:"lastSyncTime,omitempty"`
}

ServiceNetworkEndpointGroupStatus is the status for a ServiceNetworkEndpointGroup resource +k8s:openapi-gen=true

func (*ServiceNetworkEndpointGroupStatus) DeepCopy

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

func (*ServiceNetworkEndpointGroupStatus) DeepCopyInto

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