Documentation ¶
Index ¶
- Variables
- func RegisterNetworkServicesServer(s *grpc.Server, srv NetworkServicesServer)
- type CreateEndpointPolicyRequest
- func (*CreateEndpointPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEndpointPolicyRequest) GetEndpointPolicy() *EndpointPolicy
- func (x *CreateEndpointPolicyRequest) GetEndpointPolicyId() string
- func (x *CreateEndpointPolicyRequest) GetParent() string
- func (*CreateEndpointPolicyRequest) ProtoMessage()
- func (x *CreateEndpointPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEndpointPolicyRequest) Reset()
- func (x *CreateEndpointPolicyRequest) String() string
- type DeleteEndpointPolicyRequest
- func (*DeleteEndpointPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteEndpointPolicyRequest) GetName() string
- func (*DeleteEndpointPolicyRequest) ProtoMessage()
- func (x *DeleteEndpointPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteEndpointPolicyRequest) Reset()
- func (x *DeleteEndpointPolicyRequest) String() string
- type EndpointMatcher
- func (*EndpointMatcher) Descriptor() ([]byte, []int)deprecated
- func (m *EndpointMatcher) GetMatcherType() isEndpointMatcher_MatcherType
- func (x *EndpointMatcher) GetMetadataLabelMatcher() *EndpointMatcher_MetadataLabelMatcher
- func (*EndpointMatcher) ProtoMessage()
- func (x *EndpointMatcher) ProtoReflect() protoreflect.Message
- func (x *EndpointMatcher) Reset()
- func (x *EndpointMatcher) String() string
- type EndpointMatcher_MetadataLabelMatcher
- func (*EndpointMatcher_MetadataLabelMatcher) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointMatcher_MetadataLabelMatcher) GetMetadataLabelMatchCriteria() EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria
- func (x *EndpointMatcher_MetadataLabelMatcher) GetMetadataLabels() []*EndpointMatcher_MetadataLabelMatcher_MetadataLabels
- func (*EndpointMatcher_MetadataLabelMatcher) ProtoMessage()
- func (x *EndpointMatcher_MetadataLabelMatcher) ProtoReflect() protoreflect.Message
- func (x *EndpointMatcher_MetadataLabelMatcher) Reset()
- func (x *EndpointMatcher_MetadataLabelMatcher) String() string
- type EndpointMatcher_MetadataLabelMatcher_
- type EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria
- func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Descriptor() protoreflect.EnumDescriptor
- func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Enum() *EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria
- func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) EnumDescriptor() ([]byte, []int)deprecated
- func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Number() protoreflect.EnumNumber
- func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) String() string
- func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Type() protoreflect.EnumType
- type EndpointMatcher_MetadataLabelMatcher_MetadataLabels
- func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelName() string
- func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelValue() string
- func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoMessage()
- func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoReflect() protoreflect.Message
- func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Reset()
- func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) String() string
- type EndpointPolicy
- func (*EndpointPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointPolicy) GetAuthorizationPolicy() string
- func (x *EndpointPolicy) GetClientTlsPolicy() string
- func (x *EndpointPolicy) GetCreateTime() *timestamppb.Timestamp
- func (x *EndpointPolicy) GetDescription() string
- func (x *EndpointPolicy) GetEndpointMatcher() *EndpointMatcher
- func (x *EndpointPolicy) GetLabels() map[string]string
- func (x *EndpointPolicy) GetName() string
- func (x *EndpointPolicy) GetServerTlsPolicy() string
- func (x *EndpointPolicy) GetTrafficPortSelector() *TrafficPortSelector
- func (x *EndpointPolicy) GetType() EndpointPolicy_EndpointPolicyType
- func (x *EndpointPolicy) GetUpdateTime() *timestamppb.Timestamp
- func (*EndpointPolicy) ProtoMessage()
- func (x *EndpointPolicy) ProtoReflect() protoreflect.Message
- func (x *EndpointPolicy) Reset()
- func (x *EndpointPolicy) String() string
- type EndpointPolicy_EndpointPolicyType
- func (EndpointPolicy_EndpointPolicyType) Descriptor() protoreflect.EnumDescriptor
- func (x EndpointPolicy_EndpointPolicyType) Enum() *EndpointPolicy_EndpointPolicyType
- func (EndpointPolicy_EndpointPolicyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x EndpointPolicy_EndpointPolicyType) Number() protoreflect.EnumNumber
- func (x EndpointPolicy_EndpointPolicyType) String() string
- func (EndpointPolicy_EndpointPolicyType) Type() protoreflect.EnumType
- type GetEndpointPolicyRequest
- func (*GetEndpointPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetEndpointPolicyRequest) GetName() string
- func (*GetEndpointPolicyRequest) ProtoMessage()
- func (x *GetEndpointPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *GetEndpointPolicyRequest) Reset()
- func (x *GetEndpointPolicyRequest) String() string
- type ListEndpointPoliciesRequest
- func (*ListEndpointPoliciesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListEndpointPoliciesRequest) GetPageSize() int32
- func (x *ListEndpointPoliciesRequest) GetPageToken() string
- func (x *ListEndpointPoliciesRequest) GetParent() string
- func (*ListEndpointPoliciesRequest) ProtoMessage()
- func (x *ListEndpointPoliciesRequest) ProtoReflect() protoreflect.Message
- func (x *ListEndpointPoliciesRequest) Reset()
- func (x *ListEndpointPoliciesRequest) String() string
- type ListEndpointPoliciesResponse
- func (*ListEndpointPoliciesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEndpointPoliciesResponse) GetEndpointPolicies() []*EndpointPolicy
- func (x *ListEndpointPoliciesResponse) GetNextPageToken() string
- func (*ListEndpointPoliciesResponse) ProtoMessage()
- func (x *ListEndpointPoliciesResponse) ProtoReflect() protoreflect.Message
- func (x *ListEndpointPoliciesResponse) Reset()
- func (x *ListEndpointPoliciesResponse) String() string
- type NetworkServicesClient
- type NetworkServicesServer
- type OperationMetadata
- func (*OperationMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *OperationMetadata) GetApiVersion() string
- func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp
- func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp
- func (x *OperationMetadata) GetRequestedCancellation() bool
- func (x *OperationMetadata) GetStatusMessage() string
- func (x *OperationMetadata) GetTarget() string
- func (x *OperationMetadata) GetVerb() string
- func (*OperationMetadata) ProtoMessage()
- func (x *OperationMetadata) ProtoReflect() protoreflect.Message
- func (x *OperationMetadata) Reset()
- func (x *OperationMetadata) String() string
- type TrafficPortSelector
- func (*TrafficPortSelector) Descriptor() ([]byte, []int)deprecated
- func (x *TrafficPortSelector) GetPorts() []string
- func (*TrafficPortSelector) ProtoMessage()
- func (x *TrafficPortSelector) ProtoReflect() protoreflect.Message
- func (x *TrafficPortSelector) Reset()
- func (x *TrafficPortSelector) String() string
- type UnimplementedNetworkServicesServer
- func (*UnimplementedNetworkServicesServer) CreateEndpointPolicy(context.Context, *CreateEndpointPolicyRequest) (*longrunning.Operation, error)
- func (*UnimplementedNetworkServicesServer) DeleteEndpointPolicy(context.Context, *DeleteEndpointPolicyRequest) (*longrunning.Operation, error)
- func (*UnimplementedNetworkServicesServer) GetEndpointPolicy(context.Context, *GetEndpointPolicyRequest) (*EndpointPolicy, error)
- func (*UnimplementedNetworkServicesServer) ListEndpointPolicies(context.Context, *ListEndpointPoliciesRequest) (*ListEndpointPoliciesResponse, error)
- func (*UnimplementedNetworkServicesServer) UpdateEndpointPolicy(context.Context, *UpdateEndpointPolicyRequest) (*longrunning.Operation, error)
- type UpdateEndpointPolicyRequest
- func (*UpdateEndpointPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEndpointPolicyRequest) GetEndpointPolicy() *EndpointPolicy
- func (x *UpdateEndpointPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateEndpointPolicyRequest) ProtoMessage()
- func (x *UpdateEndpointPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateEndpointPolicyRequest) Reset()
- func (x *UpdateEndpointPolicyRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria_name = map[int32]string{ 0: "METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED", 1: "MATCH_ANY", 2: "MATCH_ALL", } EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria_value = map[string]int32{ "METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED": 0, "MATCH_ANY": 1, "MATCH_ALL": 2, } )
Enum value maps for EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria.
var ( EndpointPolicy_EndpointPolicyType_name = map[int32]string{ 0: "ENDPOINT_POLICY_TYPE_UNSPECIFIED", 1: "SIDECAR_PROXY", 2: "GRPC_SERVER", } EndpointPolicy_EndpointPolicyType_value = map[string]int32{ "ENDPOINT_POLICY_TYPE_UNSPECIFIED": 0, "SIDECAR_PROXY": 1, "GRPC_SERVER": 2, } )
Enum value maps for EndpointPolicy_EndpointPolicyType.
var File_google_cloud_networkservices_v1beta1_common_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1beta1_endpoint_policy_proto protoreflect.FileDescriptor
var File_google_cloud_networkservices_v1beta1_network_services_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNetworkServicesServer ¶
func RegisterNetworkServicesServer(s *grpc.Server, srv NetworkServicesServer)
Types ¶
type CreateEndpointPolicyRequest ¶
type CreateEndpointPolicyRequest struct { // Required. The parent resource of the EndpointPolicy. Must be in the // format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. Short name of the EndpointPolicy resource to be created. // E.g. "CustomECS". EndpointPolicyId string `protobuf:"bytes,2,opt,name=endpoint_policy_id,json=endpointPolicyId,proto3" json:"endpoint_policy_id,omitempty"` // Required. EndpointPolicy resource to be created. EndpointPolicy *EndpointPolicy `protobuf:"bytes,3,opt,name=endpoint_policy,json=endpointPolicy,proto3" json:"endpoint_policy,omitempty"` // contains filtered or unexported fields }
Request used with the CreateEndpointPolicy method.
func (*CreateEndpointPolicyRequest) Descriptor
deprecated
func (*CreateEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (*CreateEndpointPolicyRequest) GetEndpointPolicy ¶
func (x *CreateEndpointPolicyRequest) GetEndpointPolicy() *EndpointPolicy
func (*CreateEndpointPolicyRequest) GetEndpointPolicyId ¶
func (x *CreateEndpointPolicyRequest) GetEndpointPolicyId() string
func (*CreateEndpointPolicyRequest) GetParent ¶
func (x *CreateEndpointPolicyRequest) GetParent() string
func (*CreateEndpointPolicyRequest) ProtoMessage ¶
func (*CreateEndpointPolicyRequest) ProtoMessage()
func (*CreateEndpointPolicyRequest) ProtoReflect ¶
func (x *CreateEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (*CreateEndpointPolicyRequest) Reset ¶
func (x *CreateEndpointPolicyRequest) Reset()
func (*CreateEndpointPolicyRequest) String ¶
func (x *CreateEndpointPolicyRequest) String() string
type DeleteEndpointPolicyRequest ¶
type DeleteEndpointPolicyRequest struct { // Required. A name of the EndpointPolicy to delete. Must be in the format // `projects/*/locations/global/endpointPolicies/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request used with the DeleteEndpointPolicy method.
func (*DeleteEndpointPolicyRequest) Descriptor
deprecated
func (*DeleteEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (*DeleteEndpointPolicyRequest) GetName ¶
func (x *DeleteEndpointPolicyRequest) GetName() string
func (*DeleteEndpointPolicyRequest) ProtoMessage ¶
func (*DeleteEndpointPolicyRequest) ProtoMessage()
func (*DeleteEndpointPolicyRequest) ProtoReflect ¶
func (x *DeleteEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (*DeleteEndpointPolicyRequest) Reset ¶
func (x *DeleteEndpointPolicyRequest) Reset()
func (*DeleteEndpointPolicyRequest) String ¶
func (x *DeleteEndpointPolicyRequest) String() string
type EndpointMatcher ¶
type EndpointMatcher struct { // Specifies type of the matcher used for this endpoint matcher. // // Types that are assignable to MatcherType: // // *EndpointMatcher_MetadataLabelMatcher_ MatcherType isEndpointMatcher_MatcherType `protobuf_oneof:"matcher_type"` // contains filtered or unexported fields }
A definition of a matcher that selects endpoints to which the policies should be applied.
func (*EndpointMatcher) Descriptor
deprecated
func (*EndpointMatcher) Descriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher.ProtoReflect.Descriptor instead.
func (*EndpointMatcher) GetMatcherType ¶
func (m *EndpointMatcher) GetMatcherType() isEndpointMatcher_MatcherType
func (*EndpointMatcher) GetMetadataLabelMatcher ¶
func (x *EndpointMatcher) GetMetadataLabelMatcher() *EndpointMatcher_MetadataLabelMatcher
func (*EndpointMatcher) ProtoMessage ¶
func (*EndpointMatcher) ProtoMessage()
func (*EndpointMatcher) ProtoReflect ¶
func (x *EndpointMatcher) ProtoReflect() protoreflect.Message
func (*EndpointMatcher) Reset ¶
func (x *EndpointMatcher) Reset()
func (*EndpointMatcher) String ¶
func (x *EndpointMatcher) String() string
type EndpointMatcher_MetadataLabelMatcher ¶
type EndpointMatcher_MetadataLabelMatcher 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 <A:1, B:1>, P2 has MATCH_ALL <A:1,B:1>, and P3 has // MATCH_ALL <A:1,B:1,C:1>. // // If a client with label <A:1> connects, the config from P1 // will be selected. // // If a client with label <A:1,B:1> connects, the config from P2 // will be selected. // // If a client with label <A:1,B:1,C:1> connects, the config // from P3 will be selected. // // If there is more than one best match, (for example, if a // config P4 with selector <A:1,D:1> exists and if a client with // label <A:1,B:1,D:1> connects), an error will be thrown. MetadataLabelMatchCriteria EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria `` /* 250-byte string literal not displayed */ // 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). MetadataLabels []*EndpointMatcher_MetadataLabelMatcher_MetadataLabels `protobuf:"bytes,2,rep,name=metadata_labels,json=metadataLabels,proto3" json:"metadata_labels,omitempty"` // contains filtered or unexported fields }
The matcher that is based on node metadata presented by xDS clients.
func (*EndpointMatcher_MetadataLabelMatcher) Descriptor
deprecated
func (*EndpointMatcher_MetadataLabelMatcher) Descriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher_MetadataLabelMatcher.ProtoReflect.Descriptor instead.
func (*EndpointMatcher_MetadataLabelMatcher) GetMetadataLabelMatchCriteria ¶
func (x *EndpointMatcher_MetadataLabelMatcher) GetMetadataLabelMatchCriteria() EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria
func (*EndpointMatcher_MetadataLabelMatcher) GetMetadataLabels ¶
func (x *EndpointMatcher_MetadataLabelMatcher) GetMetadataLabels() []*EndpointMatcher_MetadataLabelMatcher_MetadataLabels
func (*EndpointMatcher_MetadataLabelMatcher) ProtoMessage ¶
func (*EndpointMatcher_MetadataLabelMatcher) ProtoMessage()
func (*EndpointMatcher_MetadataLabelMatcher) ProtoReflect ¶
func (x *EndpointMatcher_MetadataLabelMatcher) ProtoReflect() protoreflect.Message
func (*EndpointMatcher_MetadataLabelMatcher) Reset ¶
func (x *EndpointMatcher_MetadataLabelMatcher) Reset()
func (*EndpointMatcher_MetadataLabelMatcher) String ¶
func (x *EndpointMatcher_MetadataLabelMatcher) String() string
type EndpointMatcher_MetadataLabelMatcher_ ¶
type EndpointMatcher_MetadataLabelMatcher_ struct { // The matcher is based on node metadata presented by xDS clients. MetadataLabelMatcher *EndpointMatcher_MetadataLabelMatcher `protobuf:"bytes,1,opt,name=metadata_label_matcher,json=metadataLabelMatcher,proto3,oneof"` }
type EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria ¶
type EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria int32
Possible criteria values that define logic of how matching is made.
const ( // Default value. Should not be used. EndpointMatcher_MetadataLabelMatcher_METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria = 0 // At least one of the Labels specified in the matcher should match the // metadata presented by xDS client. EndpointMatcher_MetadataLabelMatcher_MATCH_ANY EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria = 1 // The metadata presented by the xDS client should contain all of the // labels specified here. EndpointMatcher_MetadataLabelMatcher_MATCH_ALL EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria = 2 )
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Descriptor ¶
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) EnumDescriptor
deprecated
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) EnumDescriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria.Descriptor instead.
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) String ¶
func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) String() string
type EndpointMatcher_MetadataLabelMatcher_MetadataLabels ¶
type EndpointMatcher_MetadataLabelMatcher_MetadataLabels struct { // Required. Label name presented as key in xDS Node Metadata. LabelName string `protobuf:"bytes,1,opt,name=label_name,json=labelName,proto3" json:"label_name,omitempty"` // Required. Label value presented as value corresponding to the above // key, in xDS Node Metadata. LabelValue string `protobuf:"bytes,2,opt,name=label_value,json=labelValue,proto3" json:"label_value,omitempty"` // contains filtered or unexported fields }
Defines a name-pair value for a single label.
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Descriptor
deprecated
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Descriptor() ([]byte, []int)
Deprecated: Use EndpointMatcher_MetadataLabelMatcher_MetadataLabels.ProtoReflect.Descriptor instead.
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelName ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelName() string
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelValue ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) GetLabelValue() string
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoMessage ¶
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoMessage()
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoReflect ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) ProtoReflect() protoreflect.Message
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Reset ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) Reset()
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) String ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) String() string
type EndpointPolicy ¶
type EndpointPolicy struct { // Required. Name of the EndpointPolicy resource. It matches pattern // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The timestamp when the resource was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The timestamp when the resource was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Optional. Set of label tags associated with the EndpointPolicy resource. Labels map[string]string `` /* 153-byte string literal not displayed */ // Required. The type of endpoint policy. This is primarily used to validate // the configuration. Type EndpointPolicy_EndpointPolicyType `` /* 138-byte string literal not displayed */ // Optional. This field specifies the URL of AuthorizationPolicy resource that // applies authorization policies to the inbound traffic at the // matched endpoints. Refer to Authorization. If this field is not // specified, authorization is disabled(no authz checks) for this // endpoint. Applicable only when EndpointPolicyType is // SIDECAR_PROXY. AuthorizationPolicy string `protobuf:"bytes,7,opt,name=authorization_policy,json=authorizationPolicy,proto3" json:"authorization_policy,omitempty"` // Required. A matcher that selects endpoints to which the policies should be applied. EndpointMatcher *EndpointMatcher `protobuf:"bytes,9,opt,name=endpoint_matcher,json=endpointMatcher,proto3" json:"endpoint_matcher,omitempty"` // Optional. Port selector for the (matched) endpoints. If no port selector is // provided, the matched config is applied to all ports. TrafficPortSelector *TrafficPortSelector `protobuf:"bytes,10,opt,name=traffic_port_selector,json=trafficPortSelector,proto3" json:"traffic_port_selector,omitempty"` // Optional. A free-text description of the resource. Max length 1024 characters. Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"` // Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to // determine the authentication policy to be applied to terminate the inbound // traffic at the identified backends. If this field is not set, // authentication is disabled(open) for this endpoint. ServerTlsPolicy string `protobuf:"bytes,12,opt,name=server_tls_policy,json=serverTlsPolicy,proto3" json:"server_tls_policy,omitempty"` // Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set // to specify the authentication for traffic from the proxy to the actual // endpoints. More specifically, it is applied to the outgoing traffic from // the proxy to the endpoint. This is typically used for sidecar model where // the proxy identifies itself as endpoint to the control plane, with the // connection between sidecar and endpoint requiring authentication. If this // field is not set, authentication is disabled(open). Applicable only when // EndpointPolicyType is SIDECAR_PROXY. ClientTlsPolicy string `protobuf:"bytes,13,opt,name=client_tls_policy,json=clientTlsPolicy,proto3" json:"client_tls_policy,omitempty"` // contains filtered or unexported fields }
EndpointPolicy is a resource that helps apply desired configuration on the endpoints that match specific criteria. For example, this resource can be used to apply "authentication config" an all endpoints that serve on port 8080.
func (*EndpointPolicy) Descriptor
deprecated
func (*EndpointPolicy) Descriptor() ([]byte, []int)
Deprecated: Use EndpointPolicy.ProtoReflect.Descriptor instead.
func (*EndpointPolicy) GetAuthorizationPolicy ¶
func (x *EndpointPolicy) GetAuthorizationPolicy() string
func (*EndpointPolicy) GetClientTlsPolicy ¶
func (x *EndpointPolicy) GetClientTlsPolicy() string
func (*EndpointPolicy) GetCreateTime ¶
func (x *EndpointPolicy) GetCreateTime() *timestamppb.Timestamp
func (*EndpointPolicy) GetDescription ¶
func (x *EndpointPolicy) GetDescription() string
func (*EndpointPolicy) GetEndpointMatcher ¶
func (x *EndpointPolicy) GetEndpointMatcher() *EndpointMatcher
func (*EndpointPolicy) GetLabels ¶
func (x *EndpointPolicy) GetLabels() map[string]string
func (*EndpointPolicy) GetName ¶
func (x *EndpointPolicy) GetName() string
func (*EndpointPolicy) GetServerTlsPolicy ¶
func (x *EndpointPolicy) GetServerTlsPolicy() string
func (*EndpointPolicy) GetTrafficPortSelector ¶
func (x *EndpointPolicy) GetTrafficPortSelector() *TrafficPortSelector
func (*EndpointPolicy) GetType ¶
func (x *EndpointPolicy) GetType() EndpointPolicy_EndpointPolicyType
func (*EndpointPolicy) GetUpdateTime ¶
func (x *EndpointPolicy) GetUpdateTime() *timestamppb.Timestamp
func (*EndpointPolicy) ProtoMessage ¶
func (*EndpointPolicy) ProtoMessage()
func (*EndpointPolicy) ProtoReflect ¶
func (x *EndpointPolicy) ProtoReflect() protoreflect.Message
func (*EndpointPolicy) Reset ¶
func (x *EndpointPolicy) Reset()
func (*EndpointPolicy) String ¶
func (x *EndpointPolicy) String() string
type EndpointPolicy_EndpointPolicyType ¶
type EndpointPolicy_EndpointPolicyType int32
The type of endpoint policy.
const ( // Default value. Must not be used. EndpointPolicy_ENDPOINT_POLICY_TYPE_UNSPECIFIED EndpointPolicy_EndpointPolicyType = 0 // Represents a proxy deployed as a sidecar. EndpointPolicy_SIDECAR_PROXY EndpointPolicy_EndpointPolicyType = 1 // Represents a proxyless gRPC backend. EndpointPolicy_GRPC_SERVER EndpointPolicy_EndpointPolicyType = 2 )
func (EndpointPolicy_EndpointPolicyType) Descriptor ¶
func (EndpointPolicy_EndpointPolicyType) Descriptor() protoreflect.EnumDescriptor
func (EndpointPolicy_EndpointPolicyType) Enum ¶
func (x EndpointPolicy_EndpointPolicyType) Enum() *EndpointPolicy_EndpointPolicyType
func (EndpointPolicy_EndpointPolicyType) EnumDescriptor
deprecated
func (EndpointPolicy_EndpointPolicyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EndpointPolicy_EndpointPolicyType.Descriptor instead.
func (EndpointPolicy_EndpointPolicyType) Number ¶
func (x EndpointPolicy_EndpointPolicyType) Number() protoreflect.EnumNumber
func (EndpointPolicy_EndpointPolicyType) String ¶
func (x EndpointPolicy_EndpointPolicyType) String() string
func (EndpointPolicy_EndpointPolicyType) Type ¶
func (EndpointPolicy_EndpointPolicyType) Type() protoreflect.EnumType
type GetEndpointPolicyRequest ¶
type GetEndpointPolicyRequest struct { // Required. A name of the EndpointPolicy to get. Must be in the format // `projects/*/locations/global/endpointPolicies/*`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request used with the GetEndpointPolicy method.
func (*GetEndpointPolicyRequest) Descriptor
deprecated
func (*GetEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetEndpointPolicyRequest) GetName ¶
func (x *GetEndpointPolicyRequest) GetName() string
func (*GetEndpointPolicyRequest) ProtoMessage ¶
func (*GetEndpointPolicyRequest) ProtoMessage()
func (*GetEndpointPolicyRequest) ProtoReflect ¶
func (x *GetEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (*GetEndpointPolicyRequest) Reset ¶
func (x *GetEndpointPolicyRequest) Reset()
func (*GetEndpointPolicyRequest) String ¶
func (x *GetEndpointPolicyRequest) String() string
type ListEndpointPoliciesRequest ¶
type ListEndpointPoliciesRequest struct { // Required. The project and location from which the EndpointPolicies should be // listed, specified in the format `projects/*/locations/global`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Maximum number of EndpointPolicies to return per call. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The value returned by the last `ListEndpointPoliciesResponse` // Indicates that this is a continuation of a prior // `ListEndpointPolicies` call, and that the system should return the // next page of data. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request used with the ListEndpointPolicies method.
func (*ListEndpointPoliciesRequest) Descriptor
deprecated
func (*ListEndpointPoliciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListEndpointPoliciesRequest) GetPageSize ¶
func (x *ListEndpointPoliciesRequest) GetPageSize() int32
func (*ListEndpointPoliciesRequest) GetPageToken ¶
func (x *ListEndpointPoliciesRequest) GetPageToken() string
func (*ListEndpointPoliciesRequest) GetParent ¶
func (x *ListEndpointPoliciesRequest) GetParent() string
func (*ListEndpointPoliciesRequest) ProtoMessage ¶
func (*ListEndpointPoliciesRequest) ProtoMessage()
func (*ListEndpointPoliciesRequest) ProtoReflect ¶
func (x *ListEndpointPoliciesRequest) ProtoReflect() protoreflect.Message
func (*ListEndpointPoliciesRequest) Reset ¶
func (x *ListEndpointPoliciesRequest) Reset()
func (*ListEndpointPoliciesRequest) String ¶
func (x *ListEndpointPoliciesRequest) String() string
type ListEndpointPoliciesResponse ¶
type ListEndpointPoliciesResponse struct { // List of EndpointPolicy resources. EndpointPolicies []*EndpointPolicy `protobuf:"bytes,1,rep,name=endpoint_policies,json=endpointPolicies,proto3" json:"endpoint_policies,omitempty"` // If there might be more results than those appearing in this response, then // `next_page_token` is included. To get the next set of results, call this // method again using the value of `next_page_token` as `page_token`. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response returned by the ListEndpointPolicies method.
func (*ListEndpointPoliciesResponse) Descriptor
deprecated
func (*ListEndpointPoliciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEndpointPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListEndpointPoliciesResponse) GetEndpointPolicies ¶
func (x *ListEndpointPoliciesResponse) GetEndpointPolicies() []*EndpointPolicy
func (*ListEndpointPoliciesResponse) GetNextPageToken ¶
func (x *ListEndpointPoliciesResponse) GetNextPageToken() string
func (*ListEndpointPoliciesResponse) ProtoMessage ¶
func (*ListEndpointPoliciesResponse) ProtoMessage()
func (*ListEndpointPoliciesResponse) ProtoReflect ¶
func (x *ListEndpointPoliciesResponse) ProtoReflect() protoreflect.Message
func (*ListEndpointPoliciesResponse) Reset ¶
func (x *ListEndpointPoliciesResponse) Reset()
func (*ListEndpointPoliciesResponse) String ¶
func (x *ListEndpointPoliciesResponse) String() string
type NetworkServicesClient ¶
type NetworkServicesClient interface { // Lists EndpointPolicies in a given project and location. ListEndpointPolicies(ctx context.Context, in *ListEndpointPoliciesRequest, opts ...grpc.CallOption) (*ListEndpointPoliciesResponse, error) // Gets details of a single EndpointPolicy. GetEndpointPolicy(ctx context.Context, in *GetEndpointPolicyRequest, opts ...grpc.CallOption) (*EndpointPolicy, error) // Creates a new EndpointPolicy in a given project and location. CreateEndpointPolicy(ctx context.Context, in *CreateEndpointPolicyRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Updates the parameters of a single EndpointPolicy. UpdateEndpointPolicy(ctx context.Context, in *UpdateEndpointPolicyRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) // Deletes a single EndpointPolicy. DeleteEndpointPolicy(ctx context.Context, in *DeleteEndpointPolicyRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) }
NetworkServicesClient is the client API for NetworkServices service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNetworkServicesClient ¶
func NewNetworkServicesClient(cc grpc.ClientConnInterface) NetworkServicesClient
type NetworkServicesServer ¶
type NetworkServicesServer interface { // Lists EndpointPolicies in a given project and location. ListEndpointPolicies(context.Context, *ListEndpointPoliciesRequest) (*ListEndpointPoliciesResponse, error) // Gets details of a single EndpointPolicy. GetEndpointPolicy(context.Context, *GetEndpointPolicyRequest) (*EndpointPolicy, error) // Creates a new EndpointPolicy in a given project and location. CreateEndpointPolicy(context.Context, *CreateEndpointPolicyRequest) (*longrunning.Operation, error) // Updates the parameters of a single EndpointPolicy. UpdateEndpointPolicy(context.Context, *UpdateEndpointPolicyRequest) (*longrunning.Operation, error) // Deletes a single EndpointPolicy. DeleteEndpointPolicy(context.Context, *DeleteEndpointPolicyRequest) (*longrunning.Operation, error) }
NetworkServicesServer is the server API for NetworkServices service.
type OperationMetadata ¶
type OperationMetadata struct { // Output only. The time the operation was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time the operation finished running. EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Output only. Server-defined resource path for the target of the operation. Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // Output only. Name of the verb executed by the operation. Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"` // Output only. Human-readable status of the operation, if any. StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, // corresponding to `Code.CANCELLED`. RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"` // Output only. API version used to start the operation. ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // contains filtered or unexported fields }
Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
deprecated
func (*OperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion ¶
func (x *OperationMetadata) GetApiVersion() string
func (*OperationMetadata) GetCreateTime ¶
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp
func (*OperationMetadata) GetEndTime ¶
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp
func (*OperationMetadata) GetRequestedCancellation ¶
func (x *OperationMetadata) GetRequestedCancellation() bool
func (*OperationMetadata) GetStatusMessage ¶
func (x *OperationMetadata) GetStatusMessage() string
func (*OperationMetadata) GetTarget ¶
func (x *OperationMetadata) GetTarget() string
func (*OperationMetadata) GetVerb ¶
func (x *OperationMetadata) GetVerb() string
func (*OperationMetadata) ProtoMessage ¶
func (*OperationMetadata) ProtoMessage()
func (*OperationMetadata) ProtoReflect ¶
func (x *OperationMetadata) ProtoReflect() protoreflect.Message
func (*OperationMetadata) Reset ¶
func (x *OperationMetadata) Reset()
func (*OperationMetadata) String ¶
func (x *OperationMetadata) String() string
type TrafficPortSelector ¶
type TrafficPortSelector struct { // Optional. A list of ports. Can be port numbers or port range // (example, [80-90] 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. Ports []string `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"` // contains filtered or unexported fields }
Specification of a port-based selector.
func (*TrafficPortSelector) Descriptor
deprecated
func (*TrafficPortSelector) Descriptor() ([]byte, []int)
Deprecated: Use TrafficPortSelector.ProtoReflect.Descriptor instead.
func (*TrafficPortSelector) GetPorts ¶
func (x *TrafficPortSelector) GetPorts() []string
func (*TrafficPortSelector) ProtoMessage ¶
func (*TrafficPortSelector) ProtoMessage()
func (*TrafficPortSelector) ProtoReflect ¶
func (x *TrafficPortSelector) ProtoReflect() protoreflect.Message
func (*TrafficPortSelector) Reset ¶
func (x *TrafficPortSelector) Reset()
func (*TrafficPortSelector) String ¶
func (x *TrafficPortSelector) String() string
type UnimplementedNetworkServicesServer ¶
type UnimplementedNetworkServicesServer struct { }
UnimplementedNetworkServicesServer can be embedded to have forward compatible implementations.
func (*UnimplementedNetworkServicesServer) CreateEndpointPolicy ¶
func (*UnimplementedNetworkServicesServer) CreateEndpointPolicy(context.Context, *CreateEndpointPolicyRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) DeleteEndpointPolicy ¶
func (*UnimplementedNetworkServicesServer) DeleteEndpointPolicy(context.Context, *DeleteEndpointPolicyRequest) (*longrunning.Operation, error)
func (*UnimplementedNetworkServicesServer) GetEndpointPolicy ¶
func (*UnimplementedNetworkServicesServer) GetEndpointPolicy(context.Context, *GetEndpointPolicyRequest) (*EndpointPolicy, error)
func (*UnimplementedNetworkServicesServer) ListEndpointPolicies ¶
func (*UnimplementedNetworkServicesServer) ListEndpointPolicies(context.Context, *ListEndpointPoliciesRequest) (*ListEndpointPoliciesResponse, error)
func (*UnimplementedNetworkServicesServer) UpdateEndpointPolicy ¶
func (*UnimplementedNetworkServicesServer) UpdateEndpointPolicy(context.Context, *UpdateEndpointPolicyRequest) (*longrunning.Operation, error)
type UpdateEndpointPolicyRequest ¶
type UpdateEndpointPolicyRequest struct { // Optional. Field mask is used to specify the fields to be overwritten in the // EndpointPolicy resource by the update. // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // Required. Updated EndpointPolicy resource. EndpointPolicy *EndpointPolicy `protobuf:"bytes,2,opt,name=endpoint_policy,json=endpointPolicy,proto3" json:"endpoint_policy,omitempty"` // contains filtered or unexported fields }
Request used with the UpdateEndpointPolicy method.
func (*UpdateEndpointPolicyRequest) Descriptor
deprecated
func (*UpdateEndpointPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEndpointPolicyRequest.ProtoReflect.Descriptor instead.
func (*UpdateEndpointPolicyRequest) GetEndpointPolicy ¶
func (x *UpdateEndpointPolicyRequest) GetEndpointPolicy() *EndpointPolicy
func (*UpdateEndpointPolicyRequest) GetUpdateMask ¶
func (x *UpdateEndpointPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateEndpointPolicyRequest) ProtoMessage ¶
func (*UpdateEndpointPolicyRequest) ProtoMessage()
func (*UpdateEndpointPolicyRequest) ProtoReflect ¶
func (x *UpdateEndpointPolicyRequest) ProtoReflect() protoreflect.Message
func (*UpdateEndpointPolicyRequest) Reset ¶
func (x *UpdateEndpointPolicyRequest) Reset()
func (*UpdateEndpointPolicyRequest) String ¶
func (x *UpdateEndpointPolicyRequest) String() string