Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API. +groupName=networking.gke.io
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Condition
- type NegObjectReference
- type NetworkEndpointType
- type ServiceNetworkEndpointGroup
- type ServiceNetworkEndpointGroupList
- type ServiceNetworkEndpointGroupSpec
- type ServiceNetworkEndpointGroupStatus
Constants ¶
const ( VmIpPortEndpointType = NetworkEndpointType("GCE_VM_IP_PORT") VmIpEndpointType = NetworkEndpointType("GCE_VM_IP") NonGCPPrivateEndpointType = NetworkEndpointType("NON_GCP_PRIVATE_IP_PORT") )
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 ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: svcneg.GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
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 core.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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
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 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 ¶
func (in *ServiceNetworkEndpointGroup) DeepCopy() *ServiceNetworkEndpointGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceNetworkEndpointGroup.
func (*ServiceNetworkEndpointGroup) DeepCopyInto ¶
func (in *ServiceNetworkEndpointGroup) DeepCopyInto(out *ServiceNetworkEndpointGroup)
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 ¶
func (in *ServiceNetworkEndpointGroupList) DeepCopy() *ServiceNetworkEndpointGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceNetworkEndpointGroupList.
func (*ServiceNetworkEndpointGroupList) DeepCopyInto ¶
func (in *ServiceNetworkEndpointGroupList) DeepCopyInto(out *ServiceNetworkEndpointGroupList)
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 ¶
func (in *ServiceNetworkEndpointGroupSpec) DeepCopy() *ServiceNetworkEndpointGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceNetworkEndpointGroupSpec.
func (*ServiceNetworkEndpointGroupSpec) DeepCopyInto ¶
func (in *ServiceNetworkEndpointGroupSpec) DeepCopyInto(out *ServiceNetworkEndpointGroupSpec)
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 ¶
func (in *ServiceNetworkEndpointGroupStatus) DeepCopy() *ServiceNetworkEndpointGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceNetworkEndpointGroupStatus.
func (*ServiceNetworkEndpointGroupStatus) DeepCopyInto ¶
func (in *ServiceNetworkEndpointGroupStatus) DeepCopyInto(out *ServiceNetworkEndpointGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.