v1beta1

package
v1.67.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Generate deepcopy object for networkservices/v1beta1 API group

Package v1beta1 contains API Schema definitions for the networkservices v1beta1 API group. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/GoogleCloudPlatform/k8s-config-connector/pkg/apis/networkservices +k8s:defaulter-gen=TypeMeta +groupName=networkservices.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "networkservices.cnrm.cloud.google.com", Version: "v1beta1"}

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

	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme

	NetworkServicesEndpointPolicyGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    reflect.TypeOf(NetworkServicesEndpointPolicy{}).Name(),
	}
)

Functions

This section is empty.

Types

type EndpointpolicyEndpointMatcher

type EndpointpolicyEndpointMatcher struct {
	/* The matcher is based on node metadata presented by xDS clients. */
	// +optional
	MetadataLabelMatcher *EndpointpolicyMetadataLabelMatcher `json:"metadataLabelMatcher,omitempty"`
}

func (*EndpointpolicyEndpointMatcher) DeepCopy

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

func (*EndpointpolicyEndpointMatcher) DeepCopyInto

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

type EndpointpolicyMetadataLabelMatcher

type EndpointpolicyMetadataLabelMatcher struct {
	/* Specifies how matching should be done. Supported values are: MATCH_ANY: At least one of the Labels specified in the matcher should match the metadata presented by xDS client. MATCH_ALL: The metadata presented by the xDS client should contain all of the labels specified here. The selection is determined based on the best match. For example, suppose there are three EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as MATCH_ANY , P2 has MATCH_ALL , and P3 has MATCH_ALL . If a client with label connects, the config from P1 will be selected. If a client with label connects, the config from P2 will be selected. If a client with label connects, the config from P3 will be selected. If there is more than one best match, (for example, if a config P4 with selector exists and if a client with label connects), an error will be thrown. Possible values: METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED, MATCH_ANY, MATCH_ALL */
	// +optional
	MetadataLabelMatchCriteria *string `json:"metadataLabelMatchCriteria,omitempty"`

	/* The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list can have at most 64 entries. The list can be empty if the match criteria is MATCH_ANY, to specify a wildcard match (i.e this matches any client). */
	// +optional
	MetadataLabels []EndpointpolicyMetadataLabels `json:"metadataLabels,omitempty"`
}

func (*EndpointpolicyMetadataLabelMatcher) DeepCopy

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

func (*EndpointpolicyMetadataLabelMatcher) DeepCopyInto

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

type EndpointpolicyMetadataLabels

type EndpointpolicyMetadataLabels struct {
	/* Required. Label name presented as key in xDS Node Metadata. */
	LabelName string `json:"labelName"`

	/* Required. Label value presented as value corresponding to the above key, in xDS Node Metadata. */
	LabelValue string `json:"labelValue"`
}

func (*EndpointpolicyMetadataLabels) DeepCopy

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

func (*EndpointpolicyMetadataLabels) DeepCopyInto

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

type EndpointpolicyTrafficPortSelector

type EndpointpolicyTrafficPortSelector struct {
	/* Optional. A list of ports. Can be port numbers or port range (example, specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected. */
	// +optional
	Ports []string `json:"ports,omitempty"`
}

func (*EndpointpolicyTrafficPortSelector) DeepCopy

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

func (*EndpointpolicyTrafficPortSelector) DeepCopyInto

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

type NetworkServicesEndpointPolicy

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

	Spec   NetworkServicesEndpointPolicySpec   `json:"spec,omitempty"`
	Status NetworkServicesEndpointPolicyStatus `json:"status,omitempty"`
}

NetworkServicesEndpointPolicy is the Schema for the networkservices API +k8s:openapi-gen=true

func (*NetworkServicesEndpointPolicy) DeepCopy

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

func (*NetworkServicesEndpointPolicy) DeepCopyInto

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

func (*NetworkServicesEndpointPolicy) DeepCopyObject

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

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

type NetworkServicesEndpointPolicyList

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

NetworkServicesEndpointPolicyList contains a list of NetworkServicesEndpointPolicy

func (*NetworkServicesEndpointPolicyList) DeepCopy

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

func (*NetworkServicesEndpointPolicyList) DeepCopyInto

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

func (*NetworkServicesEndpointPolicyList) DeepCopyObject

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

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

type NetworkServicesEndpointPolicySpec

type NetworkServicesEndpointPolicySpec struct {
	/*  */
	// +optional
	AuthorizationPolicyRef *v1alpha1.ResourceRef `json:"authorizationPolicyRef,omitempty"`

	/*  */
	// +optional
	ClientTlsPolicyRef *v1alpha1.ResourceRef `json:"clientTlsPolicyRef,omitempty"`

	/* Optional. A free-text description of the resource. Max length 1024 characters. */
	// +optional
	Description *string `json:"description,omitempty"`

	/* Required. A matcher that selects endpoints to which the policies should be applied. */
	EndpointMatcher EndpointpolicyEndpointMatcher `json:"endpointMatcher"`

	/* The location for the resource */
	Location string `json:"location"`

	/* The Project that this resource belongs to. */
	ProjectRef v1alpha1.ResourceRef `json:"projectRef"`

	/* Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */
	// +optional
	ResourceID *string `json:"resourceID,omitempty"`

	/*  */
	// +optional
	ServerTlsPolicyRef *v1alpha1.ResourceRef `json:"serverTlsPolicyRef,omitempty"`

	/* Optional. Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. */
	// +optional
	TrafficPortSelector *EndpointpolicyTrafficPortSelector `json:"trafficPortSelector,omitempty"`

	/* Required. The type of endpoint config. This is primarily used to validate the configuration. Possible values: ENDPOINT_CONFIG_SELECTOR_TYPE_UNSPECIFIED, SIDECAR_PROXY, GRPC_SERVER */
	Type string `json:"type"`
}

func (*NetworkServicesEndpointPolicySpec) DeepCopy

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

func (*NetworkServicesEndpointPolicySpec) DeepCopyInto

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

type NetworkServicesEndpointPolicyStatus

type NetworkServicesEndpointPolicyStatus struct {
	/* Conditions represent the latest available observations of the
	   NetworkServicesEndpointPolicy's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`
	/* Output only. The timestamp when the resource was created. */
	CreateTime string `json:"createTime,omitempty"`
	/* ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */
	ObservedGeneration int `json:"observedGeneration,omitempty"`
	/* Output only. The timestamp when the resource was updated. */
	UpdateTime string `json:"updateTime,omitempty"`
}

func (*NetworkServicesEndpointPolicyStatus) DeepCopy

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

func (*NetworkServicesEndpointPolicyStatus) 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