Documentation
¶
Index ¶
- Constants
- Variables
- type EndpointMatcher
- func (x *EndpointMatcher) ClearMatcherType()
- func (x *EndpointMatcher) ClearMetadataLabelMatcher()
- func (x *EndpointMatcher) GetMatcherType() isEndpointMatcher_MatcherType
- func (x *EndpointMatcher) GetMetadataLabelMatcher() *EndpointMatcher_MetadataLabelMatcher
- func (x *EndpointMatcher) HasMatcherType() bool
- func (x *EndpointMatcher) HasMetadataLabelMatcher() bool
- func (*EndpointMatcher) ProtoMessage()
- func (x *EndpointMatcher) ProtoReflect() protoreflect.Message
- func (x *EndpointMatcher) Reset()
- func (x *EndpointMatcher) SetMetadataLabelMatcher(v *EndpointMatcher_MetadataLabelMatcher)
- func (x *EndpointMatcher) String() string
- func (x *EndpointMatcher) WhichMatcherType() case_EndpointMatcher_MatcherType
- type EndpointMatcher_MetadataLabelMatcher
- 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) SetMetadataLabelMatchCriteria(v EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria)
- func (x *EndpointMatcher_MetadataLabelMatcher) SetMetadataLabels(v []*EndpointMatcher_MetadataLabelMatcher_MetadataLabels)
- 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 (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 (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) SetLabelName(v string)
- func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) SetLabelValue(v string)
- func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) String() string
- type EndpointMatcher_MetadataLabelMatcher_MetadataLabels_builder
- type EndpointMatcher_MetadataLabelMatcher_builder
- type EndpointMatcher_builder
- type EndpointPolicy
- func (x *EndpointPolicy) ClearCreateTime()
- func (x *EndpointPolicy) ClearEndpointMatcher()
- func (x *EndpointPolicy) ClearTrafficPortSelector()
- func (x *EndpointPolicy) ClearUpdateTime()
- 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 (x *EndpointPolicy) HasCreateTime() bool
- func (x *EndpointPolicy) HasEndpointMatcher() bool
- func (x *EndpointPolicy) HasTrafficPortSelector() bool
- func (x *EndpointPolicy) HasUpdateTime() bool
- func (*EndpointPolicy) ProtoMessage()
- func (x *EndpointPolicy) ProtoReflect() protoreflect.Message
- func (x *EndpointPolicy) Reset()
- func (x *EndpointPolicy) SetAuthorizationPolicy(v string)
- func (x *EndpointPolicy) SetClientTlsPolicy(v string)
- func (x *EndpointPolicy) SetCreateTime(v *timestamppb.Timestamp)
- func (x *EndpointPolicy) SetDescription(v string)
- func (x *EndpointPolicy) SetEndpointMatcher(v *EndpointMatcher)
- func (x *EndpointPolicy) SetLabels(v map[string]string)
- func (x *EndpointPolicy) SetName(v string)
- func (x *EndpointPolicy) SetServerTlsPolicy(v string)
- func (x *EndpointPolicy) SetTrafficPortSelector(v *TrafficPortSelector)
- func (x *EndpointPolicy) SetType(v EndpointPolicy_EndpointPolicyType)
- func (x *EndpointPolicy) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *EndpointPolicy) String() string
- type EndpointPolicyCreatedEvent
- func (x *EndpointPolicyCreatedEvent) ClearData()
- func (x *EndpointPolicyCreatedEvent) GetData() *EndpointPolicyEventData
- func (x *EndpointPolicyCreatedEvent) HasData() bool
- func (*EndpointPolicyCreatedEvent) ProtoMessage()
- func (x *EndpointPolicyCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *EndpointPolicyCreatedEvent) Reset()
- func (x *EndpointPolicyCreatedEvent) SetData(v *EndpointPolicyEventData)
- func (x *EndpointPolicyCreatedEvent) String() string
- type EndpointPolicyCreatedEvent_builder
- type EndpointPolicyDeletedEvent
- func (x *EndpointPolicyDeletedEvent) ClearData()
- func (x *EndpointPolicyDeletedEvent) GetData() *EndpointPolicyEventData
- func (x *EndpointPolicyDeletedEvent) HasData() bool
- func (*EndpointPolicyDeletedEvent) ProtoMessage()
- func (x *EndpointPolicyDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *EndpointPolicyDeletedEvent) Reset()
- func (x *EndpointPolicyDeletedEvent) SetData(v *EndpointPolicyEventData)
- func (x *EndpointPolicyDeletedEvent) String() string
- type EndpointPolicyDeletedEvent_builder
- type EndpointPolicyEventData
- func (x *EndpointPolicyEventData) ClearPayload()
- func (x *EndpointPolicyEventData) GetPayload() *EndpointPolicy
- func (x *EndpointPolicyEventData) HasPayload() bool
- func (*EndpointPolicyEventData) ProtoMessage()
- func (x *EndpointPolicyEventData) ProtoReflect() protoreflect.Message
- func (x *EndpointPolicyEventData) Reset()
- func (x *EndpointPolicyEventData) SetPayload(v *EndpointPolicy)
- func (x *EndpointPolicyEventData) String() string
- type EndpointPolicyEventData_builder
- type EndpointPolicyUpdatedEvent
- func (x *EndpointPolicyUpdatedEvent) ClearData()
- func (x *EndpointPolicyUpdatedEvent) GetData() *EndpointPolicyEventData
- func (x *EndpointPolicyUpdatedEvent) HasData() bool
- func (*EndpointPolicyUpdatedEvent) ProtoMessage()
- func (x *EndpointPolicyUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *EndpointPolicyUpdatedEvent) Reset()
- func (x *EndpointPolicyUpdatedEvent) SetData(v *EndpointPolicyEventData)
- func (x *EndpointPolicyUpdatedEvent) String() string
- type EndpointPolicyUpdatedEvent_builder
- type EndpointPolicy_EndpointPolicyType
- func (EndpointPolicy_EndpointPolicyType) Descriptor() protoreflect.EnumDescriptor
- func (x EndpointPolicy_EndpointPolicyType) Enum() *EndpointPolicy_EndpointPolicyType
- func (x EndpointPolicy_EndpointPolicyType) Number() protoreflect.EnumNumber
- func (x EndpointPolicy_EndpointPolicyType) String() string
- func (EndpointPolicy_EndpointPolicyType) Type() protoreflect.EnumType
- type EndpointPolicy_builder
- type Gateway
- func (x *Gateway) ClearCreateTime()
- func (x *Gateway) ClearUpdateTime()
- func (x *Gateway) GetAddresses() []string
- func (x *Gateway) GetCertificateUrls() []string
- func (x *Gateway) GetCreateTime() *timestamppb.Timestamp
- func (x *Gateway) GetDescription() string
- func (x *Gateway) GetGatewaySecurityPolicy() string
- func (x *Gateway) GetLabels() map[string]string
- func (x *Gateway) GetName() string
- func (x *Gateway) GetNetwork() string
- func (x *Gateway) GetPorts() []int32
- func (x *Gateway) GetScope() string
- func (x *Gateway) GetSelfLink() string
- func (x *Gateway) GetServerTlsPolicy() string
- func (x *Gateway) GetSubnetwork() string
- func (x *Gateway) GetType() Gateway_Type
- func (x *Gateway) GetUpdateTime() *timestamppb.Timestamp
- func (x *Gateway) HasCreateTime() bool
- func (x *Gateway) HasUpdateTime() bool
- func (*Gateway) ProtoMessage()
- func (x *Gateway) ProtoReflect() protoreflect.Message
- func (x *Gateway) Reset()
- func (x *Gateway) SetAddresses(v []string)
- func (x *Gateway) SetCertificateUrls(v []string)
- func (x *Gateway) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Gateway) SetDescription(v string)
- func (x *Gateway) SetGatewaySecurityPolicy(v string)
- func (x *Gateway) SetLabels(v map[string]string)
- func (x *Gateway) SetName(v string)
- func (x *Gateway) SetNetwork(v string)
- func (x *Gateway) SetPorts(v []int32)
- func (x *Gateway) SetScope(v string)
- func (x *Gateway) SetSelfLink(v string)
- func (x *Gateway) SetServerTlsPolicy(v string)
- func (x *Gateway) SetSubnetwork(v string)
- func (x *Gateway) SetType(v Gateway_Type)
- func (x *Gateway) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *Gateway) String() string
- type GatewayCreatedEvent
- func (x *GatewayCreatedEvent) ClearData()
- func (x *GatewayCreatedEvent) GetData() *GatewayEventData
- func (x *GatewayCreatedEvent) HasData() bool
- func (*GatewayCreatedEvent) ProtoMessage()
- func (x *GatewayCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *GatewayCreatedEvent) Reset()
- func (x *GatewayCreatedEvent) SetData(v *GatewayEventData)
- func (x *GatewayCreatedEvent) String() string
- type GatewayCreatedEvent_builder
- type GatewayDeletedEvent
- func (x *GatewayDeletedEvent) ClearData()
- func (x *GatewayDeletedEvent) GetData() *GatewayEventData
- func (x *GatewayDeletedEvent) HasData() bool
- func (*GatewayDeletedEvent) ProtoMessage()
- func (x *GatewayDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *GatewayDeletedEvent) Reset()
- func (x *GatewayDeletedEvent) SetData(v *GatewayEventData)
- func (x *GatewayDeletedEvent) String() string
- type GatewayDeletedEvent_builder
- type GatewayEventData
- func (x *GatewayEventData) ClearPayload()
- func (x *GatewayEventData) GetPayload() *Gateway
- func (x *GatewayEventData) HasPayload() bool
- func (*GatewayEventData) ProtoMessage()
- func (x *GatewayEventData) ProtoReflect() protoreflect.Message
- func (x *GatewayEventData) Reset()
- func (x *GatewayEventData) SetPayload(v *Gateway)
- func (x *GatewayEventData) String() string
- type GatewayEventData_builder
- type GatewayUpdatedEvent
- func (x *GatewayUpdatedEvent) ClearData()
- func (x *GatewayUpdatedEvent) GetData() *GatewayEventData
- func (x *GatewayUpdatedEvent) HasData() bool
- func (*GatewayUpdatedEvent) ProtoMessage()
- func (x *GatewayUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *GatewayUpdatedEvent) Reset()
- func (x *GatewayUpdatedEvent) SetData(v *GatewayEventData)
- func (x *GatewayUpdatedEvent) String() string
- type GatewayUpdatedEvent_builder
- type Gateway_Type
- type Gateway_builder
- type GrpcRoute
- func (x *GrpcRoute) ClearCreateTime()
- func (x *GrpcRoute) ClearUpdateTime()
- func (x *GrpcRoute) GetCreateTime() *timestamppb.Timestamp
- func (x *GrpcRoute) GetDescription() string
- func (x *GrpcRoute) GetGateways() []string
- func (x *GrpcRoute) GetHostnames() []string
- func (x *GrpcRoute) GetLabels() map[string]string
- func (x *GrpcRoute) GetMeshes() []string
- func (x *GrpcRoute) GetName() string
- func (x *GrpcRoute) GetRules() []*GrpcRoute_RouteRule
- func (x *GrpcRoute) GetSelfLink() string
- func (x *GrpcRoute) GetUpdateTime() *timestamppb.Timestamp
- func (x *GrpcRoute) HasCreateTime() bool
- func (x *GrpcRoute) HasUpdateTime() bool
- func (*GrpcRoute) ProtoMessage()
- func (x *GrpcRoute) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute) Reset()
- func (x *GrpcRoute) SetCreateTime(v *timestamppb.Timestamp)
- func (x *GrpcRoute) SetDescription(v string)
- func (x *GrpcRoute) SetGateways(v []string)
- func (x *GrpcRoute) SetHostnames(v []string)
- func (x *GrpcRoute) SetLabels(v map[string]string)
- func (x *GrpcRoute) SetMeshes(v []string)
- func (x *GrpcRoute) SetName(v string)
- func (x *GrpcRoute) SetRules(v []*GrpcRoute_RouteRule)
- func (x *GrpcRoute) SetSelfLink(v string)
- func (x *GrpcRoute) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *GrpcRoute) String() string
- type GrpcRouteCreatedEvent
- func (x *GrpcRouteCreatedEvent) ClearData()
- func (x *GrpcRouteCreatedEvent) GetData() *GrpcRouteEventData
- func (x *GrpcRouteCreatedEvent) HasData() bool
- func (*GrpcRouteCreatedEvent) ProtoMessage()
- func (x *GrpcRouteCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *GrpcRouteCreatedEvent) Reset()
- func (x *GrpcRouteCreatedEvent) SetData(v *GrpcRouteEventData)
- func (x *GrpcRouteCreatedEvent) String() string
- type GrpcRouteCreatedEvent_builder
- type GrpcRouteDeletedEvent
- func (x *GrpcRouteDeletedEvent) ClearData()
- func (x *GrpcRouteDeletedEvent) GetData() *GrpcRouteEventData
- func (x *GrpcRouteDeletedEvent) HasData() bool
- func (*GrpcRouteDeletedEvent) ProtoMessage()
- func (x *GrpcRouteDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *GrpcRouteDeletedEvent) Reset()
- func (x *GrpcRouteDeletedEvent) SetData(v *GrpcRouteEventData)
- func (x *GrpcRouteDeletedEvent) String() string
- type GrpcRouteDeletedEvent_builder
- type GrpcRouteEventData
- func (x *GrpcRouteEventData) ClearPayload()
- func (x *GrpcRouteEventData) GetPayload() *GrpcRoute
- func (x *GrpcRouteEventData) HasPayload() bool
- func (*GrpcRouteEventData) ProtoMessage()
- func (x *GrpcRouteEventData) ProtoReflect() protoreflect.Message
- func (x *GrpcRouteEventData) Reset()
- func (x *GrpcRouteEventData) SetPayload(v *GrpcRoute)
- func (x *GrpcRouteEventData) String() string
- type GrpcRouteEventData_builder
- type GrpcRouteUpdatedEvent
- func (x *GrpcRouteUpdatedEvent) ClearData()
- func (x *GrpcRouteUpdatedEvent) GetData() *GrpcRouteEventData
- func (x *GrpcRouteUpdatedEvent) HasData() bool
- func (*GrpcRouteUpdatedEvent) ProtoMessage()
- func (x *GrpcRouteUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *GrpcRouteUpdatedEvent) Reset()
- func (x *GrpcRouteUpdatedEvent) SetData(v *GrpcRouteEventData)
- func (x *GrpcRouteUpdatedEvent) String() string
- type GrpcRouteUpdatedEvent_builder
- type GrpcRoute_Destination
- func (x *GrpcRoute_Destination) ClearDestinationType()
- func (x *GrpcRoute_Destination) ClearServiceName()
- func (x *GrpcRoute_Destination) ClearWeight()
- func (x *GrpcRoute_Destination) GetDestinationType() isGrpcRoute_Destination_DestinationType
- func (x *GrpcRoute_Destination) GetServiceName() string
- func (x *GrpcRoute_Destination) GetWeight() int32
- func (x *GrpcRoute_Destination) HasDestinationType() bool
- func (x *GrpcRoute_Destination) HasServiceName() bool
- func (x *GrpcRoute_Destination) HasWeight() bool
- func (*GrpcRoute_Destination) ProtoMessage()
- func (x *GrpcRoute_Destination) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_Destination) Reset()
- func (x *GrpcRoute_Destination) SetServiceName(v string)
- func (x *GrpcRoute_Destination) SetWeight(v int32)
- func (x *GrpcRoute_Destination) String() string
- func (x *GrpcRoute_Destination) WhichDestinationType() case_GrpcRoute_Destination_DestinationType
- type GrpcRoute_Destination_ServiceName
- type GrpcRoute_Destination_builder
- type GrpcRoute_FaultInjectionPolicy
- func (x *GrpcRoute_FaultInjectionPolicy) ClearAbort()
- func (x *GrpcRoute_FaultInjectionPolicy) ClearDelay()
- func (x *GrpcRoute_FaultInjectionPolicy) GetAbort() *GrpcRoute_FaultInjectionPolicy_Abort
- func (x *GrpcRoute_FaultInjectionPolicy) GetDelay() *GrpcRoute_FaultInjectionPolicy_Delay
- func (x *GrpcRoute_FaultInjectionPolicy) HasAbort() bool
- func (x *GrpcRoute_FaultInjectionPolicy) HasDelay() bool
- func (*GrpcRoute_FaultInjectionPolicy) ProtoMessage()
- func (x *GrpcRoute_FaultInjectionPolicy) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_FaultInjectionPolicy) Reset()
- func (x *GrpcRoute_FaultInjectionPolicy) SetAbort(v *GrpcRoute_FaultInjectionPolicy_Abort)
- func (x *GrpcRoute_FaultInjectionPolicy) SetDelay(v *GrpcRoute_FaultInjectionPolicy_Delay)
- func (x *GrpcRoute_FaultInjectionPolicy) String() string
- type GrpcRoute_FaultInjectionPolicy_Abort
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) ClearHttpStatus()
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) ClearPercentage()
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) GetHttpStatus() int32
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) GetPercentage() int32
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) HasHttpStatus() bool
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) HasPercentage() bool
- func (*GrpcRoute_FaultInjectionPolicy_Abort) ProtoMessage()
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) Reset()
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) SetHttpStatus(v int32)
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) SetPercentage(v int32)
- func (x *GrpcRoute_FaultInjectionPolicy_Abort) String() string
- type GrpcRoute_FaultInjectionPolicy_Abort_builder
- type GrpcRoute_FaultInjectionPolicy_Delay
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) ClearFixedDelay()
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) ClearPercentage()
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) GetFixedDelay() *durationpb.Duration
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) GetPercentage() int32
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) HasFixedDelay() bool
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) HasPercentage() bool
- func (*GrpcRoute_FaultInjectionPolicy_Delay) ProtoMessage()
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) Reset()
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) SetFixedDelay(v *durationpb.Duration)
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) SetPercentage(v int32)
- func (x *GrpcRoute_FaultInjectionPolicy_Delay) String() string
- type GrpcRoute_FaultInjectionPolicy_Delay_builder
- type GrpcRoute_FaultInjectionPolicy_builder
- type GrpcRoute_HeaderMatch
- func (x *GrpcRoute_HeaderMatch) GetKey() string
- func (x *GrpcRoute_HeaderMatch) GetType() GrpcRoute_HeaderMatch_Type
- func (x *GrpcRoute_HeaderMatch) GetValue() string
- func (*GrpcRoute_HeaderMatch) ProtoMessage()
- func (x *GrpcRoute_HeaderMatch) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_HeaderMatch) Reset()
- func (x *GrpcRoute_HeaderMatch) SetKey(v string)
- func (x *GrpcRoute_HeaderMatch) SetType(v GrpcRoute_HeaderMatch_Type)
- func (x *GrpcRoute_HeaderMatch) SetValue(v string)
- func (x *GrpcRoute_HeaderMatch) String() string
- type GrpcRoute_HeaderMatch_Type
- func (GrpcRoute_HeaderMatch_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GrpcRoute_HeaderMatch_Type) Enum() *GrpcRoute_HeaderMatch_Type
- func (x GrpcRoute_HeaderMatch_Type) Number() protoreflect.EnumNumber
- func (x GrpcRoute_HeaderMatch_Type) String() string
- func (GrpcRoute_HeaderMatch_Type) Type() protoreflect.EnumType
- type GrpcRoute_HeaderMatch_builder
- type GrpcRoute_MethodMatch
- func (x *GrpcRoute_MethodMatch) ClearCaseSensitive()
- func (x *GrpcRoute_MethodMatch) GetCaseSensitive() bool
- func (x *GrpcRoute_MethodMatch) GetGrpcMethod() string
- func (x *GrpcRoute_MethodMatch) GetGrpcService() string
- func (x *GrpcRoute_MethodMatch) GetType() GrpcRoute_MethodMatch_Type
- func (x *GrpcRoute_MethodMatch) HasCaseSensitive() bool
- func (*GrpcRoute_MethodMatch) ProtoMessage()
- func (x *GrpcRoute_MethodMatch) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_MethodMatch) Reset()
- func (x *GrpcRoute_MethodMatch) SetCaseSensitive(v bool)
- func (x *GrpcRoute_MethodMatch) SetGrpcMethod(v string)
- func (x *GrpcRoute_MethodMatch) SetGrpcService(v string)
- func (x *GrpcRoute_MethodMatch) SetType(v GrpcRoute_MethodMatch_Type)
- func (x *GrpcRoute_MethodMatch) String() string
- type GrpcRoute_MethodMatch_Type
- func (GrpcRoute_MethodMatch_Type) Descriptor() protoreflect.EnumDescriptor
- func (x GrpcRoute_MethodMatch_Type) Enum() *GrpcRoute_MethodMatch_Type
- func (x GrpcRoute_MethodMatch_Type) Number() protoreflect.EnumNumber
- func (x GrpcRoute_MethodMatch_Type) String() string
- func (GrpcRoute_MethodMatch_Type) Type() protoreflect.EnumType
- type GrpcRoute_MethodMatch_builder
- type GrpcRoute_RetryPolicy
- func (x *GrpcRoute_RetryPolicy) GetNumRetries() uint32
- func (x *GrpcRoute_RetryPolicy) GetRetryConditions() []string
- func (*GrpcRoute_RetryPolicy) ProtoMessage()
- func (x *GrpcRoute_RetryPolicy) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_RetryPolicy) Reset()
- func (x *GrpcRoute_RetryPolicy) SetNumRetries(v uint32)
- func (x *GrpcRoute_RetryPolicy) SetRetryConditions(v []string)
- func (x *GrpcRoute_RetryPolicy) String() string
- type GrpcRoute_RetryPolicy_builder
- type GrpcRoute_RouteAction
- func (x *GrpcRoute_RouteAction) ClearFaultInjectionPolicy()
- func (x *GrpcRoute_RouteAction) ClearRetryPolicy()
- func (x *GrpcRoute_RouteAction) ClearTimeout()
- func (x *GrpcRoute_RouteAction) GetDestinations() []*GrpcRoute_Destination
- func (x *GrpcRoute_RouteAction) GetFaultInjectionPolicy() *GrpcRoute_FaultInjectionPolicy
- func (x *GrpcRoute_RouteAction) GetRetryPolicy() *GrpcRoute_RetryPolicy
- func (x *GrpcRoute_RouteAction) GetTimeout() *durationpb.Duration
- func (x *GrpcRoute_RouteAction) HasFaultInjectionPolicy() bool
- func (x *GrpcRoute_RouteAction) HasRetryPolicy() bool
- func (x *GrpcRoute_RouteAction) HasTimeout() bool
- func (*GrpcRoute_RouteAction) ProtoMessage()
- func (x *GrpcRoute_RouteAction) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_RouteAction) Reset()
- func (x *GrpcRoute_RouteAction) SetDestinations(v []*GrpcRoute_Destination)
- func (x *GrpcRoute_RouteAction) SetFaultInjectionPolicy(v *GrpcRoute_FaultInjectionPolicy)
- func (x *GrpcRoute_RouteAction) SetRetryPolicy(v *GrpcRoute_RetryPolicy)
- func (x *GrpcRoute_RouteAction) SetTimeout(v *durationpb.Duration)
- func (x *GrpcRoute_RouteAction) String() string
- type GrpcRoute_RouteAction_builder
- type GrpcRoute_RouteMatch
- func (x *GrpcRoute_RouteMatch) ClearMethod()
- func (x *GrpcRoute_RouteMatch) GetHeaders() []*GrpcRoute_HeaderMatch
- func (x *GrpcRoute_RouteMatch) GetMethod() *GrpcRoute_MethodMatch
- func (x *GrpcRoute_RouteMatch) HasMethod() bool
- func (*GrpcRoute_RouteMatch) ProtoMessage()
- func (x *GrpcRoute_RouteMatch) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_RouteMatch) Reset()
- func (x *GrpcRoute_RouteMatch) SetHeaders(v []*GrpcRoute_HeaderMatch)
- func (x *GrpcRoute_RouteMatch) SetMethod(v *GrpcRoute_MethodMatch)
- func (x *GrpcRoute_RouteMatch) String() string
- type GrpcRoute_RouteMatch_builder
- type GrpcRoute_RouteRule
- func (x *GrpcRoute_RouteRule) ClearAction()
- func (x *GrpcRoute_RouteRule) GetAction() *GrpcRoute_RouteAction
- func (x *GrpcRoute_RouteRule) GetMatches() []*GrpcRoute_RouteMatch
- func (x *GrpcRoute_RouteRule) HasAction() bool
- func (*GrpcRoute_RouteRule) ProtoMessage()
- func (x *GrpcRoute_RouteRule) ProtoReflect() protoreflect.Message
- func (x *GrpcRoute_RouteRule) Reset()
- func (x *GrpcRoute_RouteRule) SetAction(v *GrpcRoute_RouteAction)
- func (x *GrpcRoute_RouteRule) SetMatches(v []*GrpcRoute_RouteMatch)
- func (x *GrpcRoute_RouteRule) String() string
- type GrpcRoute_RouteRule_builder
- type GrpcRoute_builder
- type HttpRoute
- func (x *HttpRoute) ClearCreateTime()
- func (x *HttpRoute) ClearUpdateTime()
- func (x *HttpRoute) GetCreateTime() *timestamppb.Timestamp
- func (x *HttpRoute) GetDescription() string
- func (x *HttpRoute) GetGateways() []string
- func (x *HttpRoute) GetHostnames() []string
- func (x *HttpRoute) GetLabels() map[string]string
- func (x *HttpRoute) GetMeshes() []string
- func (x *HttpRoute) GetName() string
- func (x *HttpRoute) GetRules() []*HttpRoute_RouteRule
- func (x *HttpRoute) GetSelfLink() string
- func (x *HttpRoute) GetUpdateTime() *timestamppb.Timestamp
- func (x *HttpRoute) HasCreateTime() bool
- func (x *HttpRoute) HasUpdateTime() bool
- func (*HttpRoute) ProtoMessage()
- func (x *HttpRoute) ProtoReflect() protoreflect.Message
- func (x *HttpRoute) Reset()
- func (x *HttpRoute) SetCreateTime(v *timestamppb.Timestamp)
- func (x *HttpRoute) SetDescription(v string)
- func (x *HttpRoute) SetGateways(v []string)
- func (x *HttpRoute) SetHostnames(v []string)
- func (x *HttpRoute) SetLabels(v map[string]string)
- func (x *HttpRoute) SetMeshes(v []string)
- func (x *HttpRoute) SetName(v string)
- func (x *HttpRoute) SetRules(v []*HttpRoute_RouteRule)
- func (x *HttpRoute) SetSelfLink(v string)
- func (x *HttpRoute) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *HttpRoute) String() string
- type HttpRouteCreatedEvent
- func (x *HttpRouteCreatedEvent) ClearData()
- func (x *HttpRouteCreatedEvent) GetData() *HttpRouteEventData
- func (x *HttpRouteCreatedEvent) HasData() bool
- func (*HttpRouteCreatedEvent) ProtoMessage()
- func (x *HttpRouteCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *HttpRouteCreatedEvent) Reset()
- func (x *HttpRouteCreatedEvent) SetData(v *HttpRouteEventData)
- func (x *HttpRouteCreatedEvent) String() string
- type HttpRouteCreatedEvent_builder
- type HttpRouteDeletedEvent
- func (x *HttpRouteDeletedEvent) ClearData()
- func (x *HttpRouteDeletedEvent) GetData() *HttpRouteEventData
- func (x *HttpRouteDeletedEvent) HasData() bool
- func (*HttpRouteDeletedEvent) ProtoMessage()
- func (x *HttpRouteDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *HttpRouteDeletedEvent) Reset()
- func (x *HttpRouteDeletedEvent) SetData(v *HttpRouteEventData)
- func (x *HttpRouteDeletedEvent) String() string
- type HttpRouteDeletedEvent_builder
- type HttpRouteEventData
- func (x *HttpRouteEventData) ClearPayload()
- func (x *HttpRouteEventData) GetPayload() *HttpRoute
- func (x *HttpRouteEventData) HasPayload() bool
- func (*HttpRouteEventData) ProtoMessage()
- func (x *HttpRouteEventData) ProtoReflect() protoreflect.Message
- func (x *HttpRouteEventData) Reset()
- func (x *HttpRouteEventData) SetPayload(v *HttpRoute)
- func (x *HttpRouteEventData) String() string
- type HttpRouteEventData_builder
- type HttpRouteUpdatedEvent
- func (x *HttpRouteUpdatedEvent) ClearData()
- func (x *HttpRouteUpdatedEvent) GetData() *HttpRouteEventData
- func (x *HttpRouteUpdatedEvent) HasData() bool
- func (*HttpRouteUpdatedEvent) ProtoMessage()
- func (x *HttpRouteUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *HttpRouteUpdatedEvent) Reset()
- func (x *HttpRouteUpdatedEvent) SetData(v *HttpRouteEventData)
- func (x *HttpRouteUpdatedEvent) String() string
- type HttpRouteUpdatedEvent_builder
- type HttpRoute_CorsPolicy
- func (x *HttpRoute_CorsPolicy) GetAllowCredentials() bool
- func (x *HttpRoute_CorsPolicy) GetAllowHeaders() []string
- func (x *HttpRoute_CorsPolicy) GetAllowMethods() []string
- func (x *HttpRoute_CorsPolicy) GetAllowOriginRegexes() []string
- func (x *HttpRoute_CorsPolicy) GetAllowOrigins() []string
- func (x *HttpRoute_CorsPolicy) GetDisabled() bool
- func (x *HttpRoute_CorsPolicy) GetExposeHeaders() []string
- func (x *HttpRoute_CorsPolicy) GetMaxAge() string
- func (*HttpRoute_CorsPolicy) ProtoMessage()
- func (x *HttpRoute_CorsPolicy) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_CorsPolicy) Reset()
- func (x *HttpRoute_CorsPolicy) SetAllowCredentials(v bool)
- func (x *HttpRoute_CorsPolicy) SetAllowHeaders(v []string)
- func (x *HttpRoute_CorsPolicy) SetAllowMethods(v []string)
- func (x *HttpRoute_CorsPolicy) SetAllowOriginRegexes(v []string)
- func (x *HttpRoute_CorsPolicy) SetAllowOrigins(v []string)
- func (x *HttpRoute_CorsPolicy) SetDisabled(v bool)
- func (x *HttpRoute_CorsPolicy) SetExposeHeaders(v []string)
- func (x *HttpRoute_CorsPolicy) SetMaxAge(v string)
- func (x *HttpRoute_CorsPolicy) String() string
- type HttpRoute_CorsPolicy_builder
- type HttpRoute_Destination
- func (x *HttpRoute_Destination) GetServiceName() string
- func (x *HttpRoute_Destination) GetWeight() int32
- func (*HttpRoute_Destination) ProtoMessage()
- func (x *HttpRoute_Destination) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_Destination) Reset()
- func (x *HttpRoute_Destination) SetServiceName(v string)
- func (x *HttpRoute_Destination) SetWeight(v int32)
- func (x *HttpRoute_Destination) String() string
- type HttpRoute_Destination_builder
- type HttpRoute_FaultInjectionPolicy
- func (x *HttpRoute_FaultInjectionPolicy) ClearAbort()
- func (x *HttpRoute_FaultInjectionPolicy) ClearDelay()
- func (x *HttpRoute_FaultInjectionPolicy) GetAbort() *HttpRoute_FaultInjectionPolicy_Abort
- func (x *HttpRoute_FaultInjectionPolicy) GetDelay() *HttpRoute_FaultInjectionPolicy_Delay
- func (x *HttpRoute_FaultInjectionPolicy) HasAbort() bool
- func (x *HttpRoute_FaultInjectionPolicy) HasDelay() bool
- func (*HttpRoute_FaultInjectionPolicy) ProtoMessage()
- func (x *HttpRoute_FaultInjectionPolicy) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_FaultInjectionPolicy) Reset()
- func (x *HttpRoute_FaultInjectionPolicy) SetAbort(v *HttpRoute_FaultInjectionPolicy_Abort)
- func (x *HttpRoute_FaultInjectionPolicy) SetDelay(v *HttpRoute_FaultInjectionPolicy_Delay)
- func (x *HttpRoute_FaultInjectionPolicy) String() string
- type HttpRoute_FaultInjectionPolicy_Abort
- func (x *HttpRoute_FaultInjectionPolicy_Abort) GetHttpStatus() int32
- func (x *HttpRoute_FaultInjectionPolicy_Abort) GetPercentage() int32
- func (*HttpRoute_FaultInjectionPolicy_Abort) ProtoMessage()
- func (x *HttpRoute_FaultInjectionPolicy_Abort) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_FaultInjectionPolicy_Abort) Reset()
- func (x *HttpRoute_FaultInjectionPolicy_Abort) SetHttpStatus(v int32)
- func (x *HttpRoute_FaultInjectionPolicy_Abort) SetPercentage(v int32)
- func (x *HttpRoute_FaultInjectionPolicy_Abort) String() string
- type HttpRoute_FaultInjectionPolicy_Abort_builder
- type HttpRoute_FaultInjectionPolicy_Delay
- func (x *HttpRoute_FaultInjectionPolicy_Delay) ClearFixedDelay()
- func (x *HttpRoute_FaultInjectionPolicy_Delay) GetFixedDelay() *durationpb.Duration
- func (x *HttpRoute_FaultInjectionPolicy_Delay) GetPercentage() int32
- func (x *HttpRoute_FaultInjectionPolicy_Delay) HasFixedDelay() bool
- func (*HttpRoute_FaultInjectionPolicy_Delay) ProtoMessage()
- func (x *HttpRoute_FaultInjectionPolicy_Delay) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_FaultInjectionPolicy_Delay) Reset()
- func (x *HttpRoute_FaultInjectionPolicy_Delay) SetFixedDelay(v *durationpb.Duration)
- func (x *HttpRoute_FaultInjectionPolicy_Delay) SetPercentage(v int32)
- func (x *HttpRoute_FaultInjectionPolicy_Delay) String() string
- type HttpRoute_FaultInjectionPolicy_Delay_builder
- type HttpRoute_FaultInjectionPolicy_builder
- type HttpRoute_HeaderMatch
- func (x *HttpRoute_HeaderMatch) ClearExactMatch()
- func (x *HttpRoute_HeaderMatch) ClearMatchType()
- func (x *HttpRoute_HeaderMatch) ClearPrefixMatch()
- func (x *HttpRoute_HeaderMatch) ClearPresentMatch()
- func (x *HttpRoute_HeaderMatch) ClearRangeMatch()
- func (x *HttpRoute_HeaderMatch) ClearRegexMatch()
- func (x *HttpRoute_HeaderMatch) ClearSuffixMatch()
- func (x *HttpRoute_HeaderMatch) GetExactMatch() string
- func (x *HttpRoute_HeaderMatch) GetHeader() string
- func (x *HttpRoute_HeaderMatch) GetInvertMatch() bool
- func (x *HttpRoute_HeaderMatch) GetMatchType() isHttpRoute_HeaderMatch_MatchType
- func (x *HttpRoute_HeaderMatch) GetPrefixMatch() string
- func (x *HttpRoute_HeaderMatch) GetPresentMatch() bool
- func (x *HttpRoute_HeaderMatch) GetRangeMatch() *HttpRoute_HeaderMatch_IntegerRange
- func (x *HttpRoute_HeaderMatch) GetRegexMatch() string
- func (x *HttpRoute_HeaderMatch) GetSuffixMatch() string
- func (x *HttpRoute_HeaderMatch) HasExactMatch() bool
- func (x *HttpRoute_HeaderMatch) HasMatchType() bool
- func (x *HttpRoute_HeaderMatch) HasPrefixMatch() bool
- func (x *HttpRoute_HeaderMatch) HasPresentMatch() bool
- func (x *HttpRoute_HeaderMatch) HasRangeMatch() bool
- func (x *HttpRoute_HeaderMatch) HasRegexMatch() bool
- func (x *HttpRoute_HeaderMatch) HasSuffixMatch() bool
- func (*HttpRoute_HeaderMatch) ProtoMessage()
- func (x *HttpRoute_HeaderMatch) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_HeaderMatch) Reset()
- func (x *HttpRoute_HeaderMatch) SetExactMatch(v string)
- func (x *HttpRoute_HeaderMatch) SetHeader(v string)
- func (x *HttpRoute_HeaderMatch) SetInvertMatch(v bool)
- func (x *HttpRoute_HeaderMatch) SetPrefixMatch(v string)
- func (x *HttpRoute_HeaderMatch) SetPresentMatch(v bool)
- func (x *HttpRoute_HeaderMatch) SetRangeMatch(v *HttpRoute_HeaderMatch_IntegerRange)
- func (x *HttpRoute_HeaderMatch) SetRegexMatch(v string)
- func (x *HttpRoute_HeaderMatch) SetSuffixMatch(v string)
- func (x *HttpRoute_HeaderMatch) String() string
- func (x *HttpRoute_HeaderMatch) WhichMatchType() case_HttpRoute_HeaderMatch_MatchType
- type HttpRoute_HeaderMatch_ExactMatch
- type HttpRoute_HeaderMatch_IntegerRange
- func (x *HttpRoute_HeaderMatch_IntegerRange) GetEnd() int32
- func (x *HttpRoute_HeaderMatch_IntegerRange) GetStart() int32
- func (*HttpRoute_HeaderMatch_IntegerRange) ProtoMessage()
- func (x *HttpRoute_HeaderMatch_IntegerRange) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_HeaderMatch_IntegerRange) Reset()
- func (x *HttpRoute_HeaderMatch_IntegerRange) SetEnd(v int32)
- func (x *HttpRoute_HeaderMatch_IntegerRange) SetStart(v int32)
- func (x *HttpRoute_HeaderMatch_IntegerRange) String() string
- type HttpRoute_HeaderMatch_IntegerRange_builder
- type HttpRoute_HeaderMatch_PrefixMatch
- type HttpRoute_HeaderMatch_PresentMatch
- type HttpRoute_HeaderMatch_RangeMatch
- type HttpRoute_HeaderMatch_RegexMatch
- type HttpRoute_HeaderMatch_SuffixMatch
- type HttpRoute_HeaderMatch_builder
- type HttpRoute_HeaderModifier
- func (x *HttpRoute_HeaderModifier) GetAdd() map[string]string
- func (x *HttpRoute_HeaderModifier) GetRemove() []string
- func (x *HttpRoute_HeaderModifier) GetSet() map[string]string
- func (*HttpRoute_HeaderModifier) ProtoMessage()
- func (x *HttpRoute_HeaderModifier) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_HeaderModifier) Reset()
- func (x *HttpRoute_HeaderModifier) SetAdd(v map[string]string)
- func (x *HttpRoute_HeaderModifier) SetRemove(v []string)
- func (x *HttpRoute_HeaderModifier) SetSet(v map[string]string)
- func (x *HttpRoute_HeaderModifier) String() string
- type HttpRoute_HeaderModifier_builder
- type HttpRoute_QueryParameterMatch
- func (x *HttpRoute_QueryParameterMatch) ClearExactMatch()
- func (x *HttpRoute_QueryParameterMatch) ClearMatchType()
- func (x *HttpRoute_QueryParameterMatch) ClearPresentMatch()
- func (x *HttpRoute_QueryParameterMatch) ClearRegexMatch()
- func (x *HttpRoute_QueryParameterMatch) GetExactMatch() string
- func (x *HttpRoute_QueryParameterMatch) GetMatchType() isHttpRoute_QueryParameterMatch_MatchType
- func (x *HttpRoute_QueryParameterMatch) GetPresentMatch() bool
- func (x *HttpRoute_QueryParameterMatch) GetQueryParameter() string
- func (x *HttpRoute_QueryParameterMatch) GetRegexMatch() string
- func (x *HttpRoute_QueryParameterMatch) HasExactMatch() bool
- func (x *HttpRoute_QueryParameterMatch) HasMatchType() bool
- func (x *HttpRoute_QueryParameterMatch) HasPresentMatch() bool
- func (x *HttpRoute_QueryParameterMatch) HasRegexMatch() bool
- func (*HttpRoute_QueryParameterMatch) ProtoMessage()
- func (x *HttpRoute_QueryParameterMatch) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_QueryParameterMatch) Reset()
- func (x *HttpRoute_QueryParameterMatch) SetExactMatch(v string)
- func (x *HttpRoute_QueryParameterMatch) SetPresentMatch(v bool)
- func (x *HttpRoute_QueryParameterMatch) SetQueryParameter(v string)
- func (x *HttpRoute_QueryParameterMatch) SetRegexMatch(v string)
- func (x *HttpRoute_QueryParameterMatch) String() string
- func (x *HttpRoute_QueryParameterMatch) WhichMatchType() case_HttpRoute_QueryParameterMatch_MatchType
- type HttpRoute_QueryParameterMatch_ExactMatch
- type HttpRoute_QueryParameterMatch_PresentMatch
- type HttpRoute_QueryParameterMatch_RegexMatch
- type HttpRoute_QueryParameterMatch_builder
- type HttpRoute_Redirect
- func (x *HttpRoute_Redirect) GetHostRedirect() string
- func (x *HttpRoute_Redirect) GetHttpsRedirect() bool
- func (x *HttpRoute_Redirect) GetPathRedirect() string
- func (x *HttpRoute_Redirect) GetPortRedirect() int32
- func (x *HttpRoute_Redirect) GetPrefixRewrite() string
- func (x *HttpRoute_Redirect) GetResponseCode() HttpRoute_Redirect_ResponseCode
- func (x *HttpRoute_Redirect) GetStripQuery() bool
- func (*HttpRoute_Redirect) ProtoMessage()
- func (x *HttpRoute_Redirect) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_Redirect) Reset()
- func (x *HttpRoute_Redirect) SetHostRedirect(v string)
- func (x *HttpRoute_Redirect) SetHttpsRedirect(v bool)
- func (x *HttpRoute_Redirect) SetPathRedirect(v string)
- func (x *HttpRoute_Redirect) SetPortRedirect(v int32)
- func (x *HttpRoute_Redirect) SetPrefixRewrite(v string)
- func (x *HttpRoute_Redirect) SetResponseCode(v HttpRoute_Redirect_ResponseCode)
- func (x *HttpRoute_Redirect) SetStripQuery(v bool)
- func (x *HttpRoute_Redirect) String() string
- type HttpRoute_Redirect_ResponseCode
- func (HttpRoute_Redirect_ResponseCode) Descriptor() protoreflect.EnumDescriptor
- func (x HttpRoute_Redirect_ResponseCode) Enum() *HttpRoute_Redirect_ResponseCode
- func (x HttpRoute_Redirect_ResponseCode) Number() protoreflect.EnumNumber
- func (x HttpRoute_Redirect_ResponseCode) String() string
- func (HttpRoute_Redirect_ResponseCode) Type() protoreflect.EnumType
- type HttpRoute_Redirect_builder
- type HttpRoute_RequestMirrorPolicy
- func (x *HttpRoute_RequestMirrorPolicy) ClearDestination()
- func (x *HttpRoute_RequestMirrorPolicy) GetDestination() *HttpRoute_Destination
- func (x *HttpRoute_RequestMirrorPolicy) HasDestination() bool
- func (*HttpRoute_RequestMirrorPolicy) ProtoMessage()
- func (x *HttpRoute_RequestMirrorPolicy) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_RequestMirrorPolicy) Reset()
- func (x *HttpRoute_RequestMirrorPolicy) SetDestination(v *HttpRoute_Destination)
- func (x *HttpRoute_RequestMirrorPolicy) String() string
- type HttpRoute_RequestMirrorPolicy_builder
- type HttpRoute_RetryPolicy
- func (x *HttpRoute_RetryPolicy) ClearPerTryTimeout()
- func (x *HttpRoute_RetryPolicy) GetNumRetries() int32
- func (x *HttpRoute_RetryPolicy) GetPerTryTimeout() *durationpb.Duration
- func (x *HttpRoute_RetryPolicy) GetRetryConditions() []string
- func (x *HttpRoute_RetryPolicy) HasPerTryTimeout() bool
- func (*HttpRoute_RetryPolicy) ProtoMessage()
- func (x *HttpRoute_RetryPolicy) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_RetryPolicy) Reset()
- func (x *HttpRoute_RetryPolicy) SetNumRetries(v int32)
- func (x *HttpRoute_RetryPolicy) SetPerTryTimeout(v *durationpb.Duration)
- func (x *HttpRoute_RetryPolicy) SetRetryConditions(v []string)
- func (x *HttpRoute_RetryPolicy) String() string
- type HttpRoute_RetryPolicy_builder
- type HttpRoute_RouteAction
- func (x *HttpRoute_RouteAction) ClearCorsPolicy()
- func (x *HttpRoute_RouteAction) ClearFaultInjectionPolicy()
- func (x *HttpRoute_RouteAction) ClearRedirect()
- func (x *HttpRoute_RouteAction) ClearRequestHeaderModifier()
- func (x *HttpRoute_RouteAction) ClearRequestMirrorPolicy()
- func (x *HttpRoute_RouteAction) ClearResponseHeaderModifier()
- func (x *HttpRoute_RouteAction) ClearRetryPolicy()
- func (x *HttpRoute_RouteAction) ClearTimeout()
- func (x *HttpRoute_RouteAction) ClearUrlRewrite()
- func (x *HttpRoute_RouteAction) GetCorsPolicy() *HttpRoute_CorsPolicy
- func (x *HttpRoute_RouteAction) GetDestinations() []*HttpRoute_Destination
- func (x *HttpRoute_RouteAction) GetFaultInjectionPolicy() *HttpRoute_FaultInjectionPolicy
- func (x *HttpRoute_RouteAction) GetRedirect() *HttpRoute_Redirect
- func (x *HttpRoute_RouteAction) GetRequestHeaderModifier() *HttpRoute_HeaderModifier
- func (x *HttpRoute_RouteAction) GetRequestMirrorPolicy() *HttpRoute_RequestMirrorPolicy
- func (x *HttpRoute_RouteAction) GetResponseHeaderModifier() *HttpRoute_HeaderModifier
- func (x *HttpRoute_RouteAction) GetRetryPolicy() *HttpRoute_RetryPolicy
- func (x *HttpRoute_RouteAction) GetTimeout() *durationpb.Duration
- func (x *HttpRoute_RouteAction) GetUrlRewrite() *HttpRoute_URLRewrite
- func (x *HttpRoute_RouteAction) HasCorsPolicy() bool
- func (x *HttpRoute_RouteAction) HasFaultInjectionPolicy() bool
- func (x *HttpRoute_RouteAction) HasRedirect() bool
- func (x *HttpRoute_RouteAction) HasRequestHeaderModifier() bool
- func (x *HttpRoute_RouteAction) HasRequestMirrorPolicy() bool
- func (x *HttpRoute_RouteAction) HasResponseHeaderModifier() bool
- func (x *HttpRoute_RouteAction) HasRetryPolicy() bool
- func (x *HttpRoute_RouteAction) HasTimeout() bool
- func (x *HttpRoute_RouteAction) HasUrlRewrite() bool
- func (*HttpRoute_RouteAction) ProtoMessage()
- func (x *HttpRoute_RouteAction) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_RouteAction) Reset()
- func (x *HttpRoute_RouteAction) SetCorsPolicy(v *HttpRoute_CorsPolicy)
- func (x *HttpRoute_RouteAction) SetDestinations(v []*HttpRoute_Destination)
- func (x *HttpRoute_RouteAction) SetFaultInjectionPolicy(v *HttpRoute_FaultInjectionPolicy)
- func (x *HttpRoute_RouteAction) SetRedirect(v *HttpRoute_Redirect)
- func (x *HttpRoute_RouteAction) SetRequestHeaderModifier(v *HttpRoute_HeaderModifier)
- func (x *HttpRoute_RouteAction) SetRequestMirrorPolicy(v *HttpRoute_RequestMirrorPolicy)
- func (x *HttpRoute_RouteAction) SetResponseHeaderModifier(v *HttpRoute_HeaderModifier)
- func (x *HttpRoute_RouteAction) SetRetryPolicy(v *HttpRoute_RetryPolicy)
- func (x *HttpRoute_RouteAction) SetTimeout(v *durationpb.Duration)
- func (x *HttpRoute_RouteAction) SetUrlRewrite(v *HttpRoute_URLRewrite)
- func (x *HttpRoute_RouteAction) String() string
- type HttpRoute_RouteAction_builder
- type HttpRoute_RouteMatch
- func (x *HttpRoute_RouteMatch) ClearFullPathMatch()
- func (x *HttpRoute_RouteMatch) ClearPathMatch()
- func (x *HttpRoute_RouteMatch) ClearPrefixMatch()
- func (x *HttpRoute_RouteMatch) ClearRegexMatch()
- func (x *HttpRoute_RouteMatch) GetFullPathMatch() string
- func (x *HttpRoute_RouteMatch) GetHeaders() []*HttpRoute_HeaderMatch
- func (x *HttpRoute_RouteMatch) GetIgnoreCase() bool
- func (x *HttpRoute_RouteMatch) GetPathMatch() isHttpRoute_RouteMatch_PathMatch
- func (x *HttpRoute_RouteMatch) GetPrefixMatch() string
- func (x *HttpRoute_RouteMatch) GetQueryParameters() []*HttpRoute_QueryParameterMatch
- func (x *HttpRoute_RouteMatch) GetRegexMatch() string
- func (x *HttpRoute_RouteMatch) HasFullPathMatch() bool
- func (x *HttpRoute_RouteMatch) HasPathMatch() bool
- func (x *HttpRoute_RouteMatch) HasPrefixMatch() bool
- func (x *HttpRoute_RouteMatch) HasRegexMatch() bool
- func (*HttpRoute_RouteMatch) ProtoMessage()
- func (x *HttpRoute_RouteMatch) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_RouteMatch) Reset()
- func (x *HttpRoute_RouteMatch) SetFullPathMatch(v string)
- func (x *HttpRoute_RouteMatch) SetHeaders(v []*HttpRoute_HeaderMatch)
- func (x *HttpRoute_RouteMatch) SetIgnoreCase(v bool)
- func (x *HttpRoute_RouteMatch) SetPrefixMatch(v string)
- func (x *HttpRoute_RouteMatch) SetQueryParameters(v []*HttpRoute_QueryParameterMatch)
- func (x *HttpRoute_RouteMatch) SetRegexMatch(v string)
- func (x *HttpRoute_RouteMatch) String() string
- func (x *HttpRoute_RouteMatch) WhichPathMatch() case_HttpRoute_RouteMatch_PathMatch
- type HttpRoute_RouteMatch_FullPathMatch
- type HttpRoute_RouteMatch_PrefixMatch
- type HttpRoute_RouteMatch_RegexMatch
- type HttpRoute_RouteMatch_builder
- type HttpRoute_RouteRule
- func (x *HttpRoute_RouteRule) ClearAction()
- func (x *HttpRoute_RouteRule) GetAction() *HttpRoute_RouteAction
- func (x *HttpRoute_RouteRule) GetMatches() []*HttpRoute_RouteMatch
- func (x *HttpRoute_RouteRule) HasAction() bool
- func (*HttpRoute_RouteRule) ProtoMessage()
- func (x *HttpRoute_RouteRule) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_RouteRule) Reset()
- func (x *HttpRoute_RouteRule) SetAction(v *HttpRoute_RouteAction)
- func (x *HttpRoute_RouteRule) SetMatches(v []*HttpRoute_RouteMatch)
- func (x *HttpRoute_RouteRule) String() string
- type HttpRoute_RouteRule_builder
- type HttpRoute_URLRewrite
- func (x *HttpRoute_URLRewrite) GetHostRewrite() string
- func (x *HttpRoute_URLRewrite) GetPathPrefixRewrite() string
- func (*HttpRoute_URLRewrite) ProtoMessage()
- func (x *HttpRoute_URLRewrite) ProtoReflect() protoreflect.Message
- func (x *HttpRoute_URLRewrite) Reset()
- func (x *HttpRoute_URLRewrite) SetHostRewrite(v string)
- func (x *HttpRoute_URLRewrite) SetPathPrefixRewrite(v string)
- func (x *HttpRoute_URLRewrite) String() string
- type HttpRoute_URLRewrite_builder
- type HttpRoute_builder
- type Mesh
- func (x *Mesh) ClearCreateTime()
- func (x *Mesh) ClearUpdateTime()
- func (x *Mesh) GetCreateTime() *timestamppb.Timestamp
- func (x *Mesh) GetDescription() string
- func (x *Mesh) GetInterceptionPort() int32
- func (x *Mesh) GetLabels() map[string]string
- func (x *Mesh) GetName() string
- func (x *Mesh) GetSelfLink() string
- func (x *Mesh) GetUpdateTime() *timestamppb.Timestamp
- func (x *Mesh) HasCreateTime() bool
- func (x *Mesh) HasUpdateTime() bool
- func (*Mesh) ProtoMessage()
- func (x *Mesh) ProtoReflect() protoreflect.Message
- func (x *Mesh) Reset()
- func (x *Mesh) SetCreateTime(v *timestamppb.Timestamp)
- func (x *Mesh) SetDescription(v string)
- func (x *Mesh) SetInterceptionPort(v int32)
- func (x *Mesh) SetLabels(v map[string]string)
- func (x *Mesh) SetName(v string)
- func (x *Mesh) SetSelfLink(v string)
- func (x *Mesh) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *Mesh) String() string
- type MeshCreatedEvent
- func (x *MeshCreatedEvent) ClearData()
- func (x *MeshCreatedEvent) GetData() *MeshEventData
- func (x *MeshCreatedEvent) HasData() bool
- func (*MeshCreatedEvent) ProtoMessage()
- func (x *MeshCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *MeshCreatedEvent) Reset()
- func (x *MeshCreatedEvent) SetData(v *MeshEventData)
- func (x *MeshCreatedEvent) String() string
- type MeshCreatedEvent_builder
- type MeshDeletedEvent
- func (x *MeshDeletedEvent) ClearData()
- func (x *MeshDeletedEvent) GetData() *MeshEventData
- func (x *MeshDeletedEvent) HasData() bool
- func (*MeshDeletedEvent) ProtoMessage()
- func (x *MeshDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *MeshDeletedEvent) Reset()
- func (x *MeshDeletedEvent) SetData(v *MeshEventData)
- func (x *MeshDeletedEvent) String() string
- type MeshDeletedEvent_builder
- type MeshEventData
- func (x *MeshEventData) ClearPayload()
- func (x *MeshEventData) GetPayload() *Mesh
- func (x *MeshEventData) HasPayload() bool
- func (*MeshEventData) ProtoMessage()
- func (x *MeshEventData) ProtoReflect() protoreflect.Message
- func (x *MeshEventData) Reset()
- func (x *MeshEventData) SetPayload(v *Mesh)
- func (x *MeshEventData) String() string
- type MeshEventData_builder
- type MeshUpdatedEvent
- func (x *MeshUpdatedEvent) ClearData()
- func (x *MeshUpdatedEvent) GetData() *MeshEventData
- func (x *MeshUpdatedEvent) HasData() bool
- func (*MeshUpdatedEvent) ProtoMessage()
- func (x *MeshUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *MeshUpdatedEvent) Reset()
- func (x *MeshUpdatedEvent) SetData(v *MeshEventData)
- func (x *MeshUpdatedEvent) String() string
- type MeshUpdatedEvent_builder
- type Mesh_builder
- type ServiceBinding
- func (x *ServiceBinding) ClearCreateTime()
- func (x *ServiceBinding) ClearUpdateTime()
- func (x *ServiceBinding) GetCreateTime() *timestamppb.Timestamp
- func (x *ServiceBinding) GetDescription() string
- func (x *ServiceBinding) GetLabels() map[string]string
- func (x *ServiceBinding) GetName() string
- func (x *ServiceBinding) GetService() string
- func (x *ServiceBinding) GetServiceId() string
- func (x *ServiceBinding) GetUpdateTime() *timestamppb.Timestamp
- func (x *ServiceBinding) HasCreateTime() bool
- func (x *ServiceBinding) HasUpdateTime() bool
- func (*ServiceBinding) ProtoMessage()
- func (x *ServiceBinding) ProtoReflect() protoreflect.Message
- func (x *ServiceBinding) Reset()
- func (x *ServiceBinding) SetCreateTime(v *timestamppb.Timestamp)
- func (x *ServiceBinding) SetDescription(v string)
- func (x *ServiceBinding) SetLabels(v map[string]string)
- func (x *ServiceBinding) SetName(v string)
- func (x *ServiceBinding) SetService(v string)
- func (x *ServiceBinding) SetServiceId(v string)
- func (x *ServiceBinding) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *ServiceBinding) String() string
- type ServiceBindingCreatedEvent
- func (x *ServiceBindingCreatedEvent) ClearData()
- func (x *ServiceBindingCreatedEvent) GetData() *ServiceBindingEventData
- func (x *ServiceBindingCreatedEvent) HasData() bool
- func (*ServiceBindingCreatedEvent) ProtoMessage()
- func (x *ServiceBindingCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *ServiceBindingCreatedEvent) Reset()
- func (x *ServiceBindingCreatedEvent) SetData(v *ServiceBindingEventData)
- func (x *ServiceBindingCreatedEvent) String() string
- type ServiceBindingCreatedEvent_builder
- type ServiceBindingDeletedEvent
- func (x *ServiceBindingDeletedEvent) ClearData()
- func (x *ServiceBindingDeletedEvent) GetData() *ServiceBindingEventData
- func (x *ServiceBindingDeletedEvent) HasData() bool
- func (*ServiceBindingDeletedEvent) ProtoMessage()
- func (x *ServiceBindingDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *ServiceBindingDeletedEvent) Reset()
- func (x *ServiceBindingDeletedEvent) SetData(v *ServiceBindingEventData)
- func (x *ServiceBindingDeletedEvent) String() string
- type ServiceBindingDeletedEvent_builder
- type ServiceBindingEventData
- func (x *ServiceBindingEventData) ClearPayload()
- func (x *ServiceBindingEventData) GetPayload() *ServiceBinding
- func (x *ServiceBindingEventData) HasPayload() bool
- func (*ServiceBindingEventData) ProtoMessage()
- func (x *ServiceBindingEventData) ProtoReflect() protoreflect.Message
- func (x *ServiceBindingEventData) Reset()
- func (x *ServiceBindingEventData) SetPayload(v *ServiceBinding)
- func (x *ServiceBindingEventData) String() string
- type ServiceBindingEventData_builder
- type ServiceBinding_builder
- type TcpRoute
- func (x *TcpRoute) ClearCreateTime()
- func (x *TcpRoute) ClearUpdateTime()
- func (x *TcpRoute) GetCreateTime() *timestamppb.Timestamp
- func (x *TcpRoute) GetDescription() string
- func (x *TcpRoute) GetGateways() []string
- func (x *TcpRoute) GetLabels() map[string]string
- func (x *TcpRoute) GetMeshes() []string
- func (x *TcpRoute) GetName() string
- func (x *TcpRoute) GetRules() []*TcpRoute_RouteRule
- func (x *TcpRoute) GetSelfLink() string
- func (x *TcpRoute) GetUpdateTime() *timestamppb.Timestamp
- func (x *TcpRoute) HasCreateTime() bool
- func (x *TcpRoute) HasUpdateTime() bool
- func (*TcpRoute) ProtoMessage()
- func (x *TcpRoute) ProtoReflect() protoreflect.Message
- func (x *TcpRoute) Reset()
- func (x *TcpRoute) SetCreateTime(v *timestamppb.Timestamp)
- func (x *TcpRoute) SetDescription(v string)
- func (x *TcpRoute) SetGateways(v []string)
- func (x *TcpRoute) SetLabels(v map[string]string)
- func (x *TcpRoute) SetMeshes(v []string)
- func (x *TcpRoute) SetName(v string)
- func (x *TcpRoute) SetRules(v []*TcpRoute_RouteRule)
- func (x *TcpRoute) SetSelfLink(v string)
- func (x *TcpRoute) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *TcpRoute) String() string
- type TcpRouteCreatedEvent
- func (x *TcpRouteCreatedEvent) ClearData()
- func (x *TcpRouteCreatedEvent) GetData() *TcpRouteEventData
- func (x *TcpRouteCreatedEvent) HasData() bool
- func (*TcpRouteCreatedEvent) ProtoMessage()
- func (x *TcpRouteCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *TcpRouteCreatedEvent) Reset()
- func (x *TcpRouteCreatedEvent) SetData(v *TcpRouteEventData)
- func (x *TcpRouteCreatedEvent) String() string
- type TcpRouteCreatedEvent_builder
- type TcpRouteDeletedEvent
- func (x *TcpRouteDeletedEvent) ClearData()
- func (x *TcpRouteDeletedEvent) GetData() *TcpRouteEventData
- func (x *TcpRouteDeletedEvent) HasData() bool
- func (*TcpRouteDeletedEvent) ProtoMessage()
- func (x *TcpRouteDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *TcpRouteDeletedEvent) Reset()
- func (x *TcpRouteDeletedEvent) SetData(v *TcpRouteEventData)
- func (x *TcpRouteDeletedEvent) String() string
- type TcpRouteDeletedEvent_builder
- type TcpRouteEventData
- func (x *TcpRouteEventData) ClearPayload()
- func (x *TcpRouteEventData) GetPayload() *TcpRoute
- func (x *TcpRouteEventData) HasPayload() bool
- func (*TcpRouteEventData) ProtoMessage()
- func (x *TcpRouteEventData) ProtoReflect() protoreflect.Message
- func (x *TcpRouteEventData) Reset()
- func (x *TcpRouteEventData) SetPayload(v *TcpRoute)
- func (x *TcpRouteEventData) String() string
- type TcpRouteEventData_builder
- type TcpRouteUpdatedEvent
- func (x *TcpRouteUpdatedEvent) ClearData()
- func (x *TcpRouteUpdatedEvent) GetData() *TcpRouteEventData
- func (x *TcpRouteUpdatedEvent) HasData() bool
- func (*TcpRouteUpdatedEvent) ProtoMessage()
- func (x *TcpRouteUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *TcpRouteUpdatedEvent) Reset()
- func (x *TcpRouteUpdatedEvent) SetData(v *TcpRouteEventData)
- func (x *TcpRouteUpdatedEvent) String() string
- type TcpRouteUpdatedEvent_builder
- type TcpRoute_RouteAction
- func (x *TcpRoute_RouteAction) GetDestinations() []*TcpRoute_RouteDestination
- func (x *TcpRoute_RouteAction) GetOriginalDestination() bool
- func (*TcpRoute_RouteAction) ProtoMessage()
- func (x *TcpRoute_RouteAction) ProtoReflect() protoreflect.Message
- func (x *TcpRoute_RouteAction) Reset()
- func (x *TcpRoute_RouteAction) SetDestinations(v []*TcpRoute_RouteDestination)
- func (x *TcpRoute_RouteAction) SetOriginalDestination(v bool)
- func (x *TcpRoute_RouteAction) String() string
- type TcpRoute_RouteAction_builder
- type TcpRoute_RouteDestination
- func (x *TcpRoute_RouteDestination) GetServiceName() string
- func (x *TcpRoute_RouteDestination) GetWeight() int32
- func (*TcpRoute_RouteDestination) ProtoMessage()
- func (x *TcpRoute_RouteDestination) ProtoReflect() protoreflect.Message
- func (x *TcpRoute_RouteDestination) Reset()
- func (x *TcpRoute_RouteDestination) SetServiceName(v string)
- func (x *TcpRoute_RouteDestination) SetWeight(v int32)
- func (x *TcpRoute_RouteDestination) String() string
- type TcpRoute_RouteDestination_builder
- type TcpRoute_RouteMatch
- func (x *TcpRoute_RouteMatch) GetAddress() string
- func (x *TcpRoute_RouteMatch) GetPort() string
- func (*TcpRoute_RouteMatch) ProtoMessage()
- func (x *TcpRoute_RouteMatch) ProtoReflect() protoreflect.Message
- func (x *TcpRoute_RouteMatch) Reset()
- func (x *TcpRoute_RouteMatch) SetAddress(v string)
- func (x *TcpRoute_RouteMatch) SetPort(v string)
- func (x *TcpRoute_RouteMatch) String() string
- type TcpRoute_RouteMatch_builder
- type TcpRoute_RouteRule
- func (x *TcpRoute_RouteRule) ClearAction()
- func (x *TcpRoute_RouteRule) GetAction() *TcpRoute_RouteAction
- func (x *TcpRoute_RouteRule) GetMatches() []*TcpRoute_RouteMatch
- func (x *TcpRoute_RouteRule) HasAction() bool
- func (*TcpRoute_RouteRule) ProtoMessage()
- func (x *TcpRoute_RouteRule) ProtoReflect() protoreflect.Message
- func (x *TcpRoute_RouteRule) Reset()
- func (x *TcpRoute_RouteRule) SetAction(v *TcpRoute_RouteAction)
- func (x *TcpRoute_RouteRule) SetMatches(v []*TcpRoute_RouteMatch)
- func (x *TcpRoute_RouteRule) String() string
- type TcpRoute_RouteRule_builder
- type TcpRoute_builder
- type TlsRoute
- func (x *TlsRoute) ClearCreateTime()
- func (x *TlsRoute) ClearUpdateTime()
- func (x *TlsRoute) GetCreateTime() *timestamppb.Timestamp
- func (x *TlsRoute) GetDescription() string
- func (x *TlsRoute) GetGateways() []string
- func (x *TlsRoute) GetMeshes() []string
- func (x *TlsRoute) GetName() string
- func (x *TlsRoute) GetRules() []*TlsRoute_RouteRule
- func (x *TlsRoute) GetSelfLink() string
- func (x *TlsRoute) GetUpdateTime() *timestamppb.Timestamp
- func (x *TlsRoute) HasCreateTime() bool
- func (x *TlsRoute) HasUpdateTime() bool
- func (*TlsRoute) ProtoMessage()
- func (x *TlsRoute) ProtoReflect() protoreflect.Message
- func (x *TlsRoute) Reset()
- func (x *TlsRoute) SetCreateTime(v *timestamppb.Timestamp)
- func (x *TlsRoute) SetDescription(v string)
- func (x *TlsRoute) SetGateways(v []string)
- func (x *TlsRoute) SetMeshes(v []string)
- func (x *TlsRoute) SetName(v string)
- func (x *TlsRoute) SetRules(v []*TlsRoute_RouteRule)
- func (x *TlsRoute) SetSelfLink(v string)
- func (x *TlsRoute) SetUpdateTime(v *timestamppb.Timestamp)
- func (x *TlsRoute) String() string
- type TlsRouteCreatedEvent
- func (x *TlsRouteCreatedEvent) ClearData()
- func (x *TlsRouteCreatedEvent) GetData() *TlsRouteEventData
- func (x *TlsRouteCreatedEvent) HasData() bool
- func (*TlsRouteCreatedEvent) ProtoMessage()
- func (x *TlsRouteCreatedEvent) ProtoReflect() protoreflect.Message
- func (x *TlsRouteCreatedEvent) Reset()
- func (x *TlsRouteCreatedEvent) SetData(v *TlsRouteEventData)
- func (x *TlsRouteCreatedEvent) String() string
- type TlsRouteCreatedEvent_builder
- type TlsRouteDeletedEvent
- func (x *TlsRouteDeletedEvent) ClearData()
- func (x *TlsRouteDeletedEvent) GetData() *TlsRouteEventData
- func (x *TlsRouteDeletedEvent) HasData() bool
- func (*TlsRouteDeletedEvent) ProtoMessage()
- func (x *TlsRouteDeletedEvent) ProtoReflect() protoreflect.Message
- func (x *TlsRouteDeletedEvent) Reset()
- func (x *TlsRouteDeletedEvent) SetData(v *TlsRouteEventData)
- func (x *TlsRouteDeletedEvent) String() string
- type TlsRouteDeletedEvent_builder
- type TlsRouteEventData
- func (x *TlsRouteEventData) ClearPayload()
- func (x *TlsRouteEventData) GetPayload() *TlsRoute
- func (x *TlsRouteEventData) HasPayload() bool
- func (*TlsRouteEventData) ProtoMessage()
- func (x *TlsRouteEventData) ProtoReflect() protoreflect.Message
- func (x *TlsRouteEventData) Reset()
- func (x *TlsRouteEventData) SetPayload(v *TlsRoute)
- func (x *TlsRouteEventData) String() string
- type TlsRouteEventData_builder
- type TlsRouteUpdatedEvent
- func (x *TlsRouteUpdatedEvent) ClearData()
- func (x *TlsRouteUpdatedEvent) GetData() *TlsRouteEventData
- func (x *TlsRouteUpdatedEvent) HasData() bool
- func (*TlsRouteUpdatedEvent) ProtoMessage()
- func (x *TlsRouteUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *TlsRouteUpdatedEvent) Reset()
- func (x *TlsRouteUpdatedEvent) SetData(v *TlsRouteEventData)
- func (x *TlsRouteUpdatedEvent) String() string
- type TlsRouteUpdatedEvent_builder
- type TlsRoute_RouteAction
- func (x *TlsRoute_RouteAction) GetDestinations() []*TlsRoute_RouteDestination
- func (*TlsRoute_RouteAction) ProtoMessage()
- func (x *TlsRoute_RouteAction) ProtoReflect() protoreflect.Message
- func (x *TlsRoute_RouteAction) Reset()
- func (x *TlsRoute_RouteAction) SetDestinations(v []*TlsRoute_RouteDestination)
- func (x *TlsRoute_RouteAction) String() string
- type TlsRoute_RouteAction_builder
- type TlsRoute_RouteDestination
- func (x *TlsRoute_RouteDestination) GetServiceName() string
- func (x *TlsRoute_RouteDestination) GetWeight() int32
- func (*TlsRoute_RouteDestination) ProtoMessage()
- func (x *TlsRoute_RouteDestination) ProtoReflect() protoreflect.Message
- func (x *TlsRoute_RouteDestination) Reset()
- func (x *TlsRoute_RouteDestination) SetServiceName(v string)
- func (x *TlsRoute_RouteDestination) SetWeight(v int32)
- func (x *TlsRoute_RouteDestination) String() string
- type TlsRoute_RouteDestination_builder
- type TlsRoute_RouteMatch
- func (x *TlsRoute_RouteMatch) GetAlpn() []string
- func (x *TlsRoute_RouteMatch) GetSniHost() []string
- func (*TlsRoute_RouteMatch) ProtoMessage()
- func (x *TlsRoute_RouteMatch) ProtoReflect() protoreflect.Message
- func (x *TlsRoute_RouteMatch) Reset()
- func (x *TlsRoute_RouteMatch) SetAlpn(v []string)
- func (x *TlsRoute_RouteMatch) SetSniHost(v []string)
- func (x *TlsRoute_RouteMatch) String() string
- type TlsRoute_RouteMatch_builder
- type TlsRoute_RouteRule
- func (x *TlsRoute_RouteRule) ClearAction()
- func (x *TlsRoute_RouteRule) GetAction() *TlsRoute_RouteAction
- func (x *TlsRoute_RouteRule) GetMatches() []*TlsRoute_RouteMatch
- func (x *TlsRoute_RouteRule) HasAction() bool
- func (*TlsRoute_RouteRule) ProtoMessage()
- func (x *TlsRoute_RouteRule) ProtoReflect() protoreflect.Message
- func (x *TlsRoute_RouteRule) Reset()
- func (x *TlsRoute_RouteRule) SetAction(v *TlsRoute_RouteAction)
- func (x *TlsRoute_RouteRule) SetMatches(v []*TlsRoute_RouteMatch)
- func (x *TlsRoute_RouteRule) String() string
- type TlsRoute_RouteRule_builder
- type TlsRoute_builder
- type TrafficPortSelector
- type TrafficPortSelector_builder
Constants ¶
const EndpointMatcher_MatcherType_not_set_case case_EndpointMatcher_MatcherType = 0
const EndpointMatcher_MetadataLabelMatcher_case case_EndpointMatcher_MatcherType = 1
const GrpcRoute_Destination_DestinationType_not_set_case case_GrpcRoute_Destination_DestinationType = 0
const GrpcRoute_Destination_ServiceName_case case_GrpcRoute_Destination_DestinationType = 1
const HttpRoute_HeaderMatch_ExactMatch_case case_HttpRoute_HeaderMatch_MatchType = 2
const HttpRoute_HeaderMatch_MatchType_not_set_case case_HttpRoute_HeaderMatch_MatchType = 0
const HttpRoute_HeaderMatch_PrefixMatch_case case_HttpRoute_HeaderMatch_MatchType = 4
const HttpRoute_HeaderMatch_PresentMatch_case case_HttpRoute_HeaderMatch_MatchType = 5
const HttpRoute_HeaderMatch_RangeMatch_case case_HttpRoute_HeaderMatch_MatchType = 7
const HttpRoute_HeaderMatch_RegexMatch_case case_HttpRoute_HeaderMatch_MatchType = 3
const HttpRoute_HeaderMatch_SuffixMatch_case case_HttpRoute_HeaderMatch_MatchType = 6
const HttpRoute_QueryParameterMatch_ExactMatch_case case_HttpRoute_QueryParameterMatch_MatchType = 2
const HttpRoute_QueryParameterMatch_MatchType_not_set_case case_HttpRoute_QueryParameterMatch_MatchType = 0
const HttpRoute_QueryParameterMatch_PresentMatch_case case_HttpRoute_QueryParameterMatch_MatchType = 4
const HttpRoute_QueryParameterMatch_RegexMatch_case case_HttpRoute_QueryParameterMatch_MatchType = 3
const HttpRoute_RouteMatch_FullPathMatch_case case_HttpRoute_RouteMatch_PathMatch = 1
const HttpRoute_RouteMatch_PathMatch_not_set_case case_HttpRoute_RouteMatch_PathMatch = 0
const HttpRoute_RouteMatch_PrefixMatch_case case_HttpRoute_RouteMatch_PathMatch = 2
const HttpRoute_RouteMatch_RegexMatch_case case_HttpRoute_RouteMatch_PathMatch = 3
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 ( Gateway_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "OPEN_MESH", 2: "SECURE_WEB_GATEWAY", } Gateway_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "OPEN_MESH": 1, "SECURE_WEB_GATEWAY": 2, } )
Enum value maps for Gateway_Type.
var ( GrpcRoute_MethodMatch_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "EXACT", 2: "REGULAR_EXPRESSION", } GrpcRoute_MethodMatch_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "EXACT": 1, "REGULAR_EXPRESSION": 2, } )
Enum value maps for GrpcRoute_MethodMatch_Type.
var ( GrpcRoute_HeaderMatch_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "EXACT", 2: "REGULAR_EXPRESSION", } GrpcRoute_HeaderMatch_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "EXACT": 1, "REGULAR_EXPRESSION": 2, } )
Enum value maps for GrpcRoute_HeaderMatch_Type.
var ( HttpRoute_Redirect_ResponseCode_name = map[int32]string{ 0: "RESPONSE_CODE_UNSPECIFIED", 1: "MOVED_PERMANENTLY_DEFAULT", 2: "FOUND", 3: "SEE_OTHER", 4: "TEMPORARY_REDIRECT", 5: "PERMANENT_REDIRECT", } HttpRoute_Redirect_ResponseCode_value = map[string]int32{ "RESPONSE_CODE_UNSPECIFIED": 0, "MOVED_PERMANENTLY_DEFAULT": 1, "FOUND": 2, "SEE_OTHER": 3, "TEMPORARY_REDIRECT": 4, "PERMANENT_REDIRECT": 5, } )
Enum value maps for HttpRoute_Redirect_ResponseCode.
var File_google_events_cloud_networkservices_v1_data_proto protoreflect.FileDescriptor
var File_google_events_cloud_networkservices_v1_events_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EndpointMatcher ¶
type EndpointMatcher struct {
// Specifies type of the matcher used for this endpoint matcher.
//
// Types that are valid to be assigned 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) ClearMatcherType ¶
func (x *EndpointMatcher) ClearMatcherType()
func (*EndpointMatcher) ClearMetadataLabelMatcher ¶
func (x *EndpointMatcher) ClearMetadataLabelMatcher()
func (*EndpointMatcher) GetMatcherType ¶
func (x *EndpointMatcher) GetMatcherType() isEndpointMatcher_MatcherType
func (*EndpointMatcher) GetMetadataLabelMatcher ¶
func (x *EndpointMatcher) GetMetadataLabelMatcher() *EndpointMatcher_MetadataLabelMatcher
func (*EndpointMatcher) HasMatcherType ¶
func (x *EndpointMatcher) HasMatcherType() bool
func (*EndpointMatcher) HasMetadataLabelMatcher ¶
func (x *EndpointMatcher) HasMetadataLabelMatcher() bool
func (*EndpointMatcher) ProtoMessage ¶
func (*EndpointMatcher) ProtoMessage()
func (*EndpointMatcher) ProtoReflect ¶
func (x *EndpointMatcher) ProtoReflect() protoreflect.Message
func (*EndpointMatcher) Reset ¶
func (x *EndpointMatcher) Reset()
func (*EndpointMatcher) SetMetadataLabelMatcher ¶
func (x *EndpointMatcher) SetMetadataLabelMatcher(v *EndpointMatcher_MetadataLabelMatcher)
func (*EndpointMatcher) String ¶
func (x *EndpointMatcher) String() string
func (*EndpointMatcher) WhichMatcherType ¶
func (x *EndpointMatcher) WhichMatcherType() case_EndpointMatcher_MatcherType
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 `` /* 252-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) 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) SetMetadataLabelMatchCriteria ¶
func (x *EndpointMatcher_MetadataLabelMatcher) SetMetadataLabelMatchCriteria(v EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria)
func (*EndpointMatcher_MetadataLabelMatcher) SetMetadataLabels ¶
func (x *EndpointMatcher_MetadataLabelMatcher) SetMetadataLabels(v []*EndpointMatcher_MetadataLabelMatcher_MetadataLabels)
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) Enum ¶
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Number ¶
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) String ¶
func (x EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) String() string
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabelMatchCriteria) Type ¶
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) 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) SetLabelName ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) SetLabelName(v string)
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) SetLabelValue ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) SetLabelValue(v string)
func (*EndpointMatcher_MetadataLabelMatcher_MetadataLabels) String ¶
func (x *EndpointMatcher_MetadataLabelMatcher_MetadataLabels) String() string
type EndpointMatcher_MetadataLabelMatcher_MetadataLabels_builder ¶
type EndpointMatcher_MetadataLabelMatcher_MetadataLabels_builder struct {
// Required. Label name presented as key in xDS Node Metadata.
LabelName string
// Required. Label value presented as value corresponding to the above
// key, in xDS Node Metadata.
LabelValue string
// contains filtered or unexported fields
}
func (EndpointMatcher_MetadataLabelMatcher_MetadataLabels_builder) Build ¶
type EndpointMatcher_MetadataLabelMatcher_builder ¶
type EndpointMatcher_MetadataLabelMatcher_builder 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
// 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
// contains filtered or unexported fields
}
func (EndpointMatcher_MetadataLabelMatcher_builder) Build ¶
func (b0 EndpointMatcher_MetadataLabelMatcher_builder) Build() *EndpointMatcher_MetadataLabelMatcher
type EndpointMatcher_builder ¶
type EndpointMatcher_builder struct {
// Fields of oneof MatcherType:
// The matcher is based on node metadata presented by xDS clients.
MetadataLabelMatcher *EndpointMatcher_MetadataLabelMatcher
// contains filtered or unexported fields
}
func (EndpointMatcher_builder) Build ¶
func (b0 EndpointMatcher_builder) Build() *EndpointMatcher
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 `` /* 139-byte string literal not displayed */
// Required. The type of endpoint policy. This is primarily used to validate
// the configuration.
Type EndpointPolicy_EndpointPolicyType `` /* 140-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.
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) ClearCreateTime ¶
func (x *EndpointPolicy) ClearCreateTime()
func (*EndpointPolicy) ClearEndpointMatcher ¶
func (x *EndpointPolicy) ClearEndpointMatcher()
func (*EndpointPolicy) ClearTrafficPortSelector ¶
func (x *EndpointPolicy) ClearTrafficPortSelector()
func (*EndpointPolicy) ClearUpdateTime ¶
func (x *EndpointPolicy) ClearUpdateTime()
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) HasCreateTime ¶
func (x *EndpointPolicy) HasCreateTime() bool
func (*EndpointPolicy) HasEndpointMatcher ¶
func (x *EndpointPolicy) HasEndpointMatcher() bool
func (*EndpointPolicy) HasTrafficPortSelector ¶
func (x *EndpointPolicy) HasTrafficPortSelector() bool
func (*EndpointPolicy) HasUpdateTime ¶
func (x *EndpointPolicy) HasUpdateTime() bool
func (*EndpointPolicy) ProtoMessage ¶
func (*EndpointPolicy) ProtoMessage()
func (*EndpointPolicy) ProtoReflect ¶
func (x *EndpointPolicy) ProtoReflect() protoreflect.Message
func (*EndpointPolicy) Reset ¶
func (x *EndpointPolicy) Reset()
func (*EndpointPolicy) SetAuthorizationPolicy ¶
func (x *EndpointPolicy) SetAuthorizationPolicy(v string)
func (*EndpointPolicy) SetClientTlsPolicy ¶
func (x *EndpointPolicy) SetClientTlsPolicy(v string)
func (*EndpointPolicy) SetCreateTime ¶
func (x *EndpointPolicy) SetCreateTime(v *timestamppb.Timestamp)
func (*EndpointPolicy) SetDescription ¶
func (x *EndpointPolicy) SetDescription(v string)
func (*EndpointPolicy) SetEndpointMatcher ¶
func (x *EndpointPolicy) SetEndpointMatcher(v *EndpointMatcher)
func (*EndpointPolicy) SetLabels ¶
func (x *EndpointPolicy) SetLabels(v map[string]string)
func (*EndpointPolicy) SetName ¶
func (x *EndpointPolicy) SetName(v string)
func (*EndpointPolicy) SetServerTlsPolicy ¶
func (x *EndpointPolicy) SetServerTlsPolicy(v string)
func (*EndpointPolicy) SetTrafficPortSelector ¶
func (x *EndpointPolicy) SetTrafficPortSelector(v *TrafficPortSelector)
func (*EndpointPolicy) SetType ¶
func (x *EndpointPolicy) SetType(v EndpointPolicy_EndpointPolicyType)
func (*EndpointPolicy) SetUpdateTime ¶
func (x *EndpointPolicy) SetUpdateTime(v *timestamppb.Timestamp)
func (*EndpointPolicy) String ¶
func (x *EndpointPolicy) String() string
type EndpointPolicyCreatedEvent ¶
type EndpointPolicyCreatedEvent struct {
// The data associated with the event.
Data *EndpointPolicyEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when an EndpointPolicy is created.
func (*EndpointPolicyCreatedEvent) ClearData ¶
func (x *EndpointPolicyCreatedEvent) ClearData()
func (*EndpointPolicyCreatedEvent) GetData ¶
func (x *EndpointPolicyCreatedEvent) GetData() *EndpointPolicyEventData
func (*EndpointPolicyCreatedEvent) HasData ¶
func (x *EndpointPolicyCreatedEvent) HasData() bool
func (*EndpointPolicyCreatedEvent) ProtoMessage ¶
func (*EndpointPolicyCreatedEvent) ProtoMessage()
func (*EndpointPolicyCreatedEvent) ProtoReflect ¶
func (x *EndpointPolicyCreatedEvent) ProtoReflect() protoreflect.Message
func (*EndpointPolicyCreatedEvent) Reset ¶
func (x *EndpointPolicyCreatedEvent) Reset()
func (*EndpointPolicyCreatedEvent) SetData ¶
func (x *EndpointPolicyCreatedEvent) SetData(v *EndpointPolicyEventData)
func (*EndpointPolicyCreatedEvent) String ¶
func (x *EndpointPolicyCreatedEvent) String() string
type EndpointPolicyCreatedEvent_builder ¶
type EndpointPolicyCreatedEvent_builder struct {
// The data associated with the event.
Data *EndpointPolicyEventData
// contains filtered or unexported fields
}
func (EndpointPolicyCreatedEvent_builder) Build ¶
func (b0 EndpointPolicyCreatedEvent_builder) Build() *EndpointPolicyCreatedEvent
type EndpointPolicyDeletedEvent ¶
type EndpointPolicyDeletedEvent struct {
// The data associated with the event.
Data *EndpointPolicyEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when an EndpointPolicy is deleted.
func (*EndpointPolicyDeletedEvent) ClearData ¶
func (x *EndpointPolicyDeletedEvent) ClearData()
func (*EndpointPolicyDeletedEvent) GetData ¶
func (x *EndpointPolicyDeletedEvent) GetData() *EndpointPolicyEventData
func (*EndpointPolicyDeletedEvent) HasData ¶
func (x *EndpointPolicyDeletedEvent) HasData() bool
func (*EndpointPolicyDeletedEvent) ProtoMessage ¶
func (*EndpointPolicyDeletedEvent) ProtoMessage()
func (*EndpointPolicyDeletedEvent) ProtoReflect ¶
func (x *EndpointPolicyDeletedEvent) ProtoReflect() protoreflect.Message
func (*EndpointPolicyDeletedEvent) Reset ¶
func (x *EndpointPolicyDeletedEvent) Reset()
func (*EndpointPolicyDeletedEvent) SetData ¶
func (x *EndpointPolicyDeletedEvent) SetData(v *EndpointPolicyEventData)
func (*EndpointPolicyDeletedEvent) String ¶
func (x *EndpointPolicyDeletedEvent) String() string
type EndpointPolicyDeletedEvent_builder ¶
type EndpointPolicyDeletedEvent_builder struct {
// The data associated with the event.
Data *EndpointPolicyEventData
// contains filtered or unexported fields
}
func (EndpointPolicyDeletedEvent_builder) Build ¶
func (b0 EndpointPolicyDeletedEvent_builder) Build() *EndpointPolicyDeletedEvent
type EndpointPolicyEventData ¶
type EndpointPolicyEventData struct {
// Optional. The EndpointPolicy event payload. Unset for deletion events.
Payload *EndpointPolicy `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all EndpointPolicy events.
func (*EndpointPolicyEventData) ClearPayload ¶
func (x *EndpointPolicyEventData) ClearPayload()
func (*EndpointPolicyEventData) GetPayload ¶
func (x *EndpointPolicyEventData) GetPayload() *EndpointPolicy
func (*EndpointPolicyEventData) HasPayload ¶
func (x *EndpointPolicyEventData) HasPayload() bool
func (*EndpointPolicyEventData) ProtoMessage ¶
func (*EndpointPolicyEventData) ProtoMessage()
func (*EndpointPolicyEventData) ProtoReflect ¶
func (x *EndpointPolicyEventData) ProtoReflect() protoreflect.Message
func (*EndpointPolicyEventData) Reset ¶
func (x *EndpointPolicyEventData) Reset()
func (*EndpointPolicyEventData) SetPayload ¶
func (x *EndpointPolicyEventData) SetPayload(v *EndpointPolicy)
func (*EndpointPolicyEventData) String ¶
func (x *EndpointPolicyEventData) String() string
type EndpointPolicyEventData_builder ¶
type EndpointPolicyEventData_builder struct {
// Optional. The EndpointPolicy event payload. Unset for deletion events.
Payload *EndpointPolicy
// contains filtered or unexported fields
}
func (EndpointPolicyEventData_builder) Build ¶
func (b0 EndpointPolicyEventData_builder) Build() *EndpointPolicyEventData
type EndpointPolicyUpdatedEvent ¶
type EndpointPolicyUpdatedEvent struct {
// The data associated with the event.
Data *EndpointPolicyEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when an EndpointPolicy is updated.
func (*EndpointPolicyUpdatedEvent) ClearData ¶
func (x *EndpointPolicyUpdatedEvent) ClearData()
func (*EndpointPolicyUpdatedEvent) GetData ¶
func (x *EndpointPolicyUpdatedEvent) GetData() *EndpointPolicyEventData
func (*EndpointPolicyUpdatedEvent) HasData ¶
func (x *EndpointPolicyUpdatedEvent) HasData() bool
func (*EndpointPolicyUpdatedEvent) ProtoMessage ¶
func (*EndpointPolicyUpdatedEvent) ProtoMessage()
func (*EndpointPolicyUpdatedEvent) ProtoReflect ¶
func (x *EndpointPolicyUpdatedEvent) ProtoReflect() protoreflect.Message
func (*EndpointPolicyUpdatedEvent) Reset ¶
func (x *EndpointPolicyUpdatedEvent) Reset()
func (*EndpointPolicyUpdatedEvent) SetData ¶
func (x *EndpointPolicyUpdatedEvent) SetData(v *EndpointPolicyEventData)
func (*EndpointPolicyUpdatedEvent) String ¶
func (x *EndpointPolicyUpdatedEvent) String() string
type EndpointPolicyUpdatedEvent_builder ¶
type EndpointPolicyUpdatedEvent_builder struct {
// The data associated with the event.
Data *EndpointPolicyEventData
// contains filtered or unexported fields
}
func (EndpointPolicyUpdatedEvent_builder) Build ¶
func (b0 EndpointPolicyUpdatedEvent_builder) Build() *EndpointPolicyUpdatedEvent
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) 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 EndpointPolicy_builder ¶
type EndpointPolicy_builder struct {
// Required. Name of the EndpointPolicy resource. It matches pattern
// `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
Name string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Optional. Set of label tags associated with the EndpointPolicy resource.
Labels map[string]string
// Required. The type of endpoint policy. This is primarily used to validate
// the configuration.
Type EndpointPolicy_EndpointPolicyType
// 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.
AuthorizationPolicy string
// Required. A matcher that selects endpoints to which the policies should be
// applied.
EndpointMatcher *EndpointMatcher
// Optional. Port selector for the (matched) endpoints. If no port selector is
// provided, the matched config is applied to all ports.
TrafficPortSelector *TrafficPortSelector
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// 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
// 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
// contains filtered or unexported fields
}
func (EndpointPolicy_builder) Build ¶
func (b0 EndpointPolicy_builder) Build() *EndpointPolicy
type Gateway ¶
type Gateway struct {
// Required. Name of the Gateway resource. It matches pattern
// `projects/*/locations/*/gateways/<gateway_name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server-defined URL of this resource
SelfLink string `protobuf:"bytes,13,opt,name=self_link,json=selfLink,proto3" json:"self_link,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 Gateway resource.
Labels map[string]string `` /* 139-byte string literal not displayed */
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Immutable. The type of the customer managed gateway.
// This field is required. If unspecified, an error is returned.
Type Gateway_Type `protobuf:"varint,6,opt,name=type,proto3,enum=google.events.cloud.networkservices.v1.Gateway_Type" json:"type,omitempty"`
// Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
// receive the traffic. When no address is provided, an IP from the subnetwork
// is allocated
//
// This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
// Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
Addresses []string `protobuf:"bytes,7,rep,name=addresses,proto3" json:"addresses,omitempty"`
// Required. One or more port numbers (1-65535), on which the Gateway will
// receive traffic. The proxy binds to the specified ports.
// Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
// Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
// support multiple ports.
Ports []int32 `protobuf:"varint,11,rep,packed,name=ports,proto3" json:"ports,omitempty"`
// Optional. Scope determines how configuration across multiple Gateway
// instances are merged. The configuration for multiple Gateway instances with
// the same scope will be merged as presented as a single coniguration to the
// proxy/load balancer.
//
// Max length 64 characters.
// Scope should start with a letter and can only have letters, numbers,
// hyphens.
Scope string `protobuf:"bytes,8,opt,name=scope,proto3" json:"scope,omitempty"`
// Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
// TLS traffic is terminated. If empty, TLS termination is disabled.
ServerTlsPolicy string `protobuf:"bytes,9,opt,name=server_tls_policy,json=serverTlsPolicy,proto3" json:"server_tls_policy,omitempty"`
// Optional. A fully-qualified Certificates URL reference. The proxy presents
// a Certificate (selected based on SNI) when establishing a TLS connection.
// This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
CertificateUrls []string `protobuf:"bytes,14,rep,name=certificate_urls,json=certificateUrls,proto3" json:"certificate_urls,omitempty"`
// Optional. A fully-qualified GatewaySecurityPolicy URL reference.
// Defines how a server should apply security policy to inbound
// (VM to Proxy) initiated connections.
//
// For example:
// `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
//
// This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
GatewaySecurityPolicy string `` /* 127-byte string literal not displayed */
// Optional. The relative resource name identifying the VPC network that is
// using this configuration. For example:
// `projects/*/global/networks/network-1`.
//
// Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
Network string `protobuf:"bytes,16,opt,name=network,proto3" json:"network,omitempty"`
// Optional. The relative resource name identifying the subnetwork in which
// this SWG is allocated. For example:
// `projects/*/regions/us-central1/subnetworks/network-1`
//
// Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".
Subnetwork string `protobuf:"bytes,17,opt,name=subnetwork,proto3" json:"subnetwork,omitempty"`
// contains filtered or unexported fields
}
Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.
func (*Gateway) GetCreateTime ¶
func (x *Gateway) GetCreateTime() *timestamppb.Timestamp
func (*Gateway) GetType ¶
func (x *Gateway) GetType() Gateway_Type
func (*Gateway) GetUpdateTime ¶
func (x *Gateway) GetUpdateTime() *timestamppb.Timestamp
func (*Gateway) ProtoReflect ¶
func (x *Gateway) ProtoReflect() protoreflect.Message
func (*Gateway) SetCreateTime ¶
func (x *Gateway) SetCreateTime(v *timestamppb.Timestamp)
func (*Gateway) SetType ¶
func (x *Gateway) SetType(v Gateway_Type)
func (*Gateway) SetUpdateTime ¶
func (x *Gateway) SetUpdateTime(v *timestamppb.Timestamp)
type GatewayCreatedEvent ¶
type GatewayCreatedEvent struct {
// The data associated with the event.
Data *GatewayEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a Gateway is created.
func (*GatewayCreatedEvent) ClearData ¶
func (x *GatewayCreatedEvent) ClearData()
func (*GatewayCreatedEvent) GetData ¶
func (x *GatewayCreatedEvent) GetData() *GatewayEventData
func (*GatewayCreatedEvent) HasData ¶
func (x *GatewayCreatedEvent) HasData() bool
func (*GatewayCreatedEvent) ProtoMessage ¶
func (*GatewayCreatedEvent) ProtoMessage()
func (*GatewayCreatedEvent) ProtoReflect ¶
func (x *GatewayCreatedEvent) ProtoReflect() protoreflect.Message
func (*GatewayCreatedEvent) Reset ¶
func (x *GatewayCreatedEvent) Reset()
func (*GatewayCreatedEvent) SetData ¶
func (x *GatewayCreatedEvent) SetData(v *GatewayEventData)
func (*GatewayCreatedEvent) String ¶
func (x *GatewayCreatedEvent) String() string
type GatewayCreatedEvent_builder ¶
type GatewayCreatedEvent_builder struct {
// The data associated with the event.
Data *GatewayEventData
// contains filtered or unexported fields
}
func (GatewayCreatedEvent_builder) Build ¶
func (b0 GatewayCreatedEvent_builder) Build() *GatewayCreatedEvent
type GatewayDeletedEvent ¶
type GatewayDeletedEvent struct {
// The data associated with the event.
Data *GatewayEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a Gateway is deleted.
func (*GatewayDeletedEvent) ClearData ¶
func (x *GatewayDeletedEvent) ClearData()
func (*GatewayDeletedEvent) GetData ¶
func (x *GatewayDeletedEvent) GetData() *GatewayEventData
func (*GatewayDeletedEvent) HasData ¶
func (x *GatewayDeletedEvent) HasData() bool
func (*GatewayDeletedEvent) ProtoMessage ¶
func (*GatewayDeletedEvent) ProtoMessage()
func (*GatewayDeletedEvent) ProtoReflect ¶
func (x *GatewayDeletedEvent) ProtoReflect() protoreflect.Message
func (*GatewayDeletedEvent) Reset ¶
func (x *GatewayDeletedEvent) Reset()
func (*GatewayDeletedEvent) SetData ¶
func (x *GatewayDeletedEvent) SetData(v *GatewayEventData)
func (*GatewayDeletedEvent) String ¶
func (x *GatewayDeletedEvent) String() string
type GatewayDeletedEvent_builder ¶
type GatewayDeletedEvent_builder struct {
// The data associated with the event.
Data *GatewayEventData
// contains filtered or unexported fields
}
func (GatewayDeletedEvent_builder) Build ¶
func (b0 GatewayDeletedEvent_builder) Build() *GatewayDeletedEvent
type GatewayEventData ¶
type GatewayEventData struct {
// Optional. The Gateway event payload. Unset for deletion events.
Payload *Gateway `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all Gateway events.
func (*GatewayEventData) ClearPayload ¶
func (x *GatewayEventData) ClearPayload()
func (*GatewayEventData) GetPayload ¶
func (x *GatewayEventData) GetPayload() *Gateway
func (*GatewayEventData) HasPayload ¶
func (x *GatewayEventData) HasPayload() bool
func (*GatewayEventData) ProtoMessage ¶
func (*GatewayEventData) ProtoMessage()
func (*GatewayEventData) ProtoReflect ¶
func (x *GatewayEventData) ProtoReflect() protoreflect.Message
func (*GatewayEventData) Reset ¶
func (x *GatewayEventData) Reset()
func (*GatewayEventData) SetPayload ¶
func (x *GatewayEventData) SetPayload(v *Gateway)
func (*GatewayEventData) String ¶
func (x *GatewayEventData) String() string
type GatewayEventData_builder ¶
type GatewayEventData_builder struct {
// Optional. The Gateway event payload. Unset for deletion events.
Payload *Gateway
// contains filtered or unexported fields
}
func (GatewayEventData_builder) Build ¶
func (b0 GatewayEventData_builder) Build() *GatewayEventData
type GatewayUpdatedEvent ¶
type GatewayUpdatedEvent struct {
// The data associated with the event.
Data *GatewayEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a Gateway is updated.
func (*GatewayUpdatedEvent) ClearData ¶
func (x *GatewayUpdatedEvent) ClearData()
func (*GatewayUpdatedEvent) GetData ¶
func (x *GatewayUpdatedEvent) GetData() *GatewayEventData
func (*GatewayUpdatedEvent) HasData ¶
func (x *GatewayUpdatedEvent) HasData() bool
func (*GatewayUpdatedEvent) ProtoMessage ¶
func (*GatewayUpdatedEvent) ProtoMessage()
func (*GatewayUpdatedEvent) ProtoReflect ¶
func (x *GatewayUpdatedEvent) ProtoReflect() protoreflect.Message
func (*GatewayUpdatedEvent) Reset ¶
func (x *GatewayUpdatedEvent) Reset()
func (*GatewayUpdatedEvent) SetData ¶
func (x *GatewayUpdatedEvent) SetData(v *GatewayEventData)
func (*GatewayUpdatedEvent) String ¶
func (x *GatewayUpdatedEvent) String() string
type GatewayUpdatedEvent_builder ¶
type GatewayUpdatedEvent_builder struct {
// The data associated with the event.
Data *GatewayEventData
// contains filtered or unexported fields
}
func (GatewayUpdatedEvent_builder) Build ¶
func (b0 GatewayUpdatedEvent_builder) Build() *GatewayUpdatedEvent
type Gateway_Type ¶
type Gateway_Type int32
The type of the customer-managed gateway. Possible values are: * OPEN_MESH * SECURE_WEB_GATEWAY
const ( // The type of the customer managed gateway is unspecified. Gateway_TYPE_UNSPECIFIED Gateway_Type = 0 // The type of the customer managed gateway is TrafficDirector Open // Mesh. Gateway_OPEN_MESH Gateway_Type = 1 // The type of the customer managed gateway is SecureWebGateway (SWG). Gateway_SECURE_WEB_GATEWAY Gateway_Type = 2 )
func (Gateway_Type) Descriptor ¶
func (Gateway_Type) Descriptor() protoreflect.EnumDescriptor
func (Gateway_Type) Enum ¶
func (x Gateway_Type) Enum() *Gateway_Type
func (Gateway_Type) Number ¶
func (x Gateway_Type) Number() protoreflect.EnumNumber
func (Gateway_Type) String ¶
func (x Gateway_Type) String() string
func (Gateway_Type) Type ¶
func (Gateway_Type) Type() protoreflect.EnumType
type Gateway_builder ¶
type Gateway_builder struct {
// Required. Name of the Gateway resource. It matches pattern
// `projects/*/locations/*/gateways/<gateway_name>`.
Name string
// Output only. Server-defined URL of this resource
SelfLink string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Optional. Set of label tags associated with the Gateway resource.
Labels map[string]string
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// Immutable. The type of the customer managed gateway.
// This field is required. If unspecified, an error is returned.
Type Gateway_Type
// Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
// receive the traffic. When no address is provided, an IP from the subnetwork
// is allocated
//
// This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
// Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
Addresses []string
// Required. One or more port numbers (1-65535), on which the Gateway will
// receive traffic. The proxy binds to the specified ports.
// Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
// Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
// support multiple ports.
Ports []int32
// Optional. Scope determines how configuration across multiple Gateway
// instances are merged. The configuration for multiple Gateway instances with
// the same scope will be merged as presented as a single coniguration to the
// proxy/load balancer.
//
// Max length 64 characters.
// Scope should start with a letter and can only have letters, numbers,
// hyphens.
Scope string
// Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
// TLS traffic is terminated. If empty, TLS termination is disabled.
ServerTlsPolicy string
// Optional. A fully-qualified Certificates URL reference. The proxy presents
// a Certificate (selected based on SNI) when establishing a TLS connection.
// This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
CertificateUrls []string
// Optional. A fully-qualified GatewaySecurityPolicy URL reference.
// Defines how a server should apply security policy to inbound
// (VM to Proxy) initiated connections.
//
// For example:
// `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
//
// This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
GatewaySecurityPolicy string
// Optional. The relative resource name identifying the VPC network that is
// using this configuration. For example:
// `projects/*/global/networks/network-1`.
//
// Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
Network string
// Optional. The relative resource name identifying the subnetwork in which
// this SWG is allocated. For example:
// `projects/*/regions/us-central1/subnetworks/network-1`
//
// Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".
Subnetwork string
// contains filtered or unexported fields
}
func (Gateway_builder) Build ¶
func (b0 Gateway_builder) Build() *Gateway
type GrpcRoute ¶
type GrpcRoute struct {
// Required. Name of the GrpcRoute resource. It matches pattern
// `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server-defined URL of this resource
SelfLink string `protobuf:"bytes,12,opt,name=self_link,json=selfLink,proto3" json:"self_link,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 GrpcRoute resource.
Labels map[string]string `` /* 139-byte string literal not displayed */
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Required. Service hostnames with an optional port for which this route
// describes traffic.
//
// Format: <hostname>[:<port>]
//
// Hostname is the fully qualified domain name of a network host. This matches
// the RFC 1123 definition of a hostname with 2 notable exceptions:
// - IPs are not allowed.
// - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
// label must appear by itself as the first label.
//
// Hostname can be "precise" which is a domain name without the terminating
// dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
// domain name prefixed with a single wildcard label (e.g. `*.example.com`).
//
// Note that as per RFC1035 and RFC1123, a label must consist of lower case
// alphanumeric characters or '-', and must start and end with an alphanumeric
// character. No other punctuation is allowed.
//
// The routes associated with a Mesh or Gateway must have unique hostnames. If
// you attempt to attach multiple routes with conflicting hostnames, the
// configuration will be rejected.
//
// For example, while it is acceptable for routes for the hostnames
// `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
// not possible to associate two routes both with `*.bar.com` or both with
// `bar.com`.
//
// If a port is specified, then gRPC clients must use the channel URI with the
// port to match this rule (i.e. "xds:///service:123"), otherwise they must
// supply the URI without a port (i.e. "xds:///service").
Hostnames []string `protobuf:"bytes,6,rep,name=hostnames,proto3" json:"hostnames,omitempty"`
// Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
Meshes []string `protobuf:"bytes,9,rep,name=meshes,proto3" json:"meshes,omitempty"`
// Optional. Gateways defines a list of gateways this GrpcRoute is attached
// to, as one of the routing rules to route the requests served by the
// gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string `protobuf:"bytes,10,rep,name=gateways,proto3" json:"gateways,omitempty"`
// Required. A list of detailed rules defining how to route traffic.
//
// Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
// first matching GrpcRoute.RouteRule will be executed. At least one rule
// must be supplied.
Rules []*GrpcRoute_RouteRule `protobuf:"bytes,7,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.
func (*GrpcRoute) GetCreateTime ¶
func (x *GrpcRoute) GetCreateTime() *timestamppb.Timestamp
func (*GrpcRoute) GetRules ¶
func (x *GrpcRoute) GetRules() []*GrpcRoute_RouteRule
func (*GrpcRoute) GetUpdateTime ¶
func (x *GrpcRoute) GetUpdateTime() *timestamppb.Timestamp
func (*GrpcRoute) ProtoReflect ¶
func (x *GrpcRoute) ProtoReflect() protoreflect.Message
func (*GrpcRoute) SetCreateTime ¶
func (x *GrpcRoute) SetCreateTime(v *timestamppb.Timestamp)
func (*GrpcRoute) SetRules ¶
func (x *GrpcRoute) SetRules(v []*GrpcRoute_RouteRule)
func (*GrpcRoute) SetUpdateTime ¶
func (x *GrpcRoute) SetUpdateTime(v *timestamppb.Timestamp)
type GrpcRouteCreatedEvent ¶
type GrpcRouteCreatedEvent struct {
// The data associated with the event.
Data *GrpcRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a GrpcRoute is created.
func (*GrpcRouteCreatedEvent) ClearData ¶
func (x *GrpcRouteCreatedEvent) ClearData()
func (*GrpcRouteCreatedEvent) GetData ¶
func (x *GrpcRouteCreatedEvent) GetData() *GrpcRouteEventData
func (*GrpcRouteCreatedEvent) HasData ¶
func (x *GrpcRouteCreatedEvent) HasData() bool
func (*GrpcRouteCreatedEvent) ProtoMessage ¶
func (*GrpcRouteCreatedEvent) ProtoMessage()
func (*GrpcRouteCreatedEvent) ProtoReflect ¶
func (x *GrpcRouteCreatedEvent) ProtoReflect() protoreflect.Message
func (*GrpcRouteCreatedEvent) Reset ¶
func (x *GrpcRouteCreatedEvent) Reset()
func (*GrpcRouteCreatedEvent) SetData ¶
func (x *GrpcRouteCreatedEvent) SetData(v *GrpcRouteEventData)
func (*GrpcRouteCreatedEvent) String ¶
func (x *GrpcRouteCreatedEvent) String() string
type GrpcRouteCreatedEvent_builder ¶
type GrpcRouteCreatedEvent_builder struct {
// The data associated with the event.
Data *GrpcRouteEventData
// contains filtered or unexported fields
}
func (GrpcRouteCreatedEvent_builder) Build ¶
func (b0 GrpcRouteCreatedEvent_builder) Build() *GrpcRouteCreatedEvent
type GrpcRouteDeletedEvent ¶
type GrpcRouteDeletedEvent struct {
// The data associated with the event.
Data *GrpcRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a GrpcRoute is deleted.
func (*GrpcRouteDeletedEvent) ClearData ¶
func (x *GrpcRouteDeletedEvent) ClearData()
func (*GrpcRouteDeletedEvent) GetData ¶
func (x *GrpcRouteDeletedEvent) GetData() *GrpcRouteEventData
func (*GrpcRouteDeletedEvent) HasData ¶
func (x *GrpcRouteDeletedEvent) HasData() bool
func (*GrpcRouteDeletedEvent) ProtoMessage ¶
func (*GrpcRouteDeletedEvent) ProtoMessage()
func (*GrpcRouteDeletedEvent) ProtoReflect ¶
func (x *GrpcRouteDeletedEvent) ProtoReflect() protoreflect.Message
func (*GrpcRouteDeletedEvent) Reset ¶
func (x *GrpcRouteDeletedEvent) Reset()
func (*GrpcRouteDeletedEvent) SetData ¶
func (x *GrpcRouteDeletedEvent) SetData(v *GrpcRouteEventData)
func (*GrpcRouteDeletedEvent) String ¶
func (x *GrpcRouteDeletedEvent) String() string
type GrpcRouteDeletedEvent_builder ¶
type GrpcRouteDeletedEvent_builder struct {
// The data associated with the event.
Data *GrpcRouteEventData
// contains filtered or unexported fields
}
func (GrpcRouteDeletedEvent_builder) Build ¶
func (b0 GrpcRouteDeletedEvent_builder) Build() *GrpcRouteDeletedEvent
type GrpcRouteEventData ¶
type GrpcRouteEventData struct {
// Optional. The GrpcRoute event payload. Unset for deletion events.
Payload *GrpcRoute `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all GrpcRoute events.
func (*GrpcRouteEventData) ClearPayload ¶
func (x *GrpcRouteEventData) ClearPayload()
func (*GrpcRouteEventData) GetPayload ¶
func (x *GrpcRouteEventData) GetPayload() *GrpcRoute
func (*GrpcRouteEventData) HasPayload ¶
func (x *GrpcRouteEventData) HasPayload() bool
func (*GrpcRouteEventData) ProtoMessage ¶
func (*GrpcRouteEventData) ProtoMessage()
func (*GrpcRouteEventData) ProtoReflect ¶
func (x *GrpcRouteEventData) ProtoReflect() protoreflect.Message
func (*GrpcRouteEventData) Reset ¶
func (x *GrpcRouteEventData) Reset()
func (*GrpcRouteEventData) SetPayload ¶
func (x *GrpcRouteEventData) SetPayload(v *GrpcRoute)
func (*GrpcRouteEventData) String ¶
func (x *GrpcRouteEventData) String() string
type GrpcRouteEventData_builder ¶
type GrpcRouteEventData_builder struct {
// Optional. The GrpcRoute event payload. Unset for deletion events.
Payload *GrpcRoute
// contains filtered or unexported fields
}
func (GrpcRouteEventData_builder) Build ¶
func (b0 GrpcRouteEventData_builder) Build() *GrpcRouteEventData
type GrpcRouteUpdatedEvent ¶
type GrpcRouteUpdatedEvent struct {
// The data associated with the event.
Data *GrpcRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a GrpcRoute is updated.
func (*GrpcRouteUpdatedEvent) ClearData ¶
func (x *GrpcRouteUpdatedEvent) ClearData()
func (*GrpcRouteUpdatedEvent) GetData ¶
func (x *GrpcRouteUpdatedEvent) GetData() *GrpcRouteEventData
func (*GrpcRouteUpdatedEvent) HasData ¶
func (x *GrpcRouteUpdatedEvent) HasData() bool
func (*GrpcRouteUpdatedEvent) ProtoMessage ¶
func (*GrpcRouteUpdatedEvent) ProtoMessage()
func (*GrpcRouteUpdatedEvent) ProtoReflect ¶
func (x *GrpcRouteUpdatedEvent) ProtoReflect() protoreflect.Message
func (*GrpcRouteUpdatedEvent) Reset ¶
func (x *GrpcRouteUpdatedEvent) Reset()
func (*GrpcRouteUpdatedEvent) SetData ¶
func (x *GrpcRouteUpdatedEvent) SetData(v *GrpcRouteEventData)
func (*GrpcRouteUpdatedEvent) String ¶
func (x *GrpcRouteUpdatedEvent) String() string
type GrpcRouteUpdatedEvent_builder ¶
type GrpcRouteUpdatedEvent_builder struct {
// The data associated with the event.
Data *GrpcRouteEventData
// contains filtered or unexported fields
}
func (GrpcRouteUpdatedEvent_builder) Build ¶
func (b0 GrpcRouteUpdatedEvent_builder) Build() *GrpcRouteUpdatedEvent
type GrpcRoute_Destination ¶
type GrpcRoute_Destination struct {
// Specifies the kind of destination to which traffic will be routed.
//
// Types that are valid to be assigned to DestinationType:
//
// *GrpcRoute_Destination_ServiceName
DestinationType isGrpcRoute_Destination_DestinationType `protobuf_oneof:"destination_type"`
// Optional. Specifies the proportion of requests forwarded to the backend
// referenced by the serviceName field. This is computed as:
//
// weight/Sum(weights in this destination list).
//
// For non-zero values, there may be some epsilon from the exact proportion
// defined here depending on the precision an implementation supports.
//
// If only one serviceName is specified and it has a weight greater than 0,
// 100% of the traffic is forwarded to that backend.
//
// If weights are specified for any one service name, they need to be
// specified for all of them.
//
// If weights are unspecified for all services, then, traffic is distributed
// in equal proportions to all of them.
Weight *int32 `protobuf:"varint,2,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
// contains filtered or unexported fields
}
The destination to which traffic will be routed.
func (*GrpcRoute_Destination) ClearDestinationType ¶
func (x *GrpcRoute_Destination) ClearDestinationType()
func (*GrpcRoute_Destination) ClearServiceName ¶
func (x *GrpcRoute_Destination) ClearServiceName()
func (*GrpcRoute_Destination) ClearWeight ¶
func (x *GrpcRoute_Destination) ClearWeight()
func (*GrpcRoute_Destination) GetDestinationType ¶
func (x *GrpcRoute_Destination) GetDestinationType() isGrpcRoute_Destination_DestinationType
func (*GrpcRoute_Destination) GetServiceName ¶
func (x *GrpcRoute_Destination) GetServiceName() string
func (*GrpcRoute_Destination) GetWeight ¶
func (x *GrpcRoute_Destination) GetWeight() int32
func (*GrpcRoute_Destination) HasDestinationType ¶
func (x *GrpcRoute_Destination) HasDestinationType() bool
func (*GrpcRoute_Destination) HasServiceName ¶
func (x *GrpcRoute_Destination) HasServiceName() bool
func (*GrpcRoute_Destination) HasWeight ¶
func (x *GrpcRoute_Destination) HasWeight() bool
func (*GrpcRoute_Destination) ProtoMessage ¶
func (*GrpcRoute_Destination) ProtoMessage()
func (*GrpcRoute_Destination) ProtoReflect ¶
func (x *GrpcRoute_Destination) ProtoReflect() protoreflect.Message
func (*GrpcRoute_Destination) Reset ¶
func (x *GrpcRoute_Destination) Reset()
func (*GrpcRoute_Destination) SetServiceName ¶
func (x *GrpcRoute_Destination) SetServiceName(v string)
func (*GrpcRoute_Destination) SetWeight ¶
func (x *GrpcRoute_Destination) SetWeight(v int32)
func (*GrpcRoute_Destination) String ¶
func (x *GrpcRoute_Destination) String() string
func (*GrpcRoute_Destination) WhichDestinationType ¶
func (x *GrpcRoute_Destination) WhichDestinationType() case_GrpcRoute_Destination_DestinationType
type GrpcRoute_Destination_ServiceName ¶
type GrpcRoute_Destination_ServiceName struct {
// Required. The URL of a destination service to which to route traffic.
// Must refer to either a BackendService or ServiceDirectoryService.
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3,oneof"`
}
type GrpcRoute_Destination_builder ¶
type GrpcRoute_Destination_builder struct {
// Fields of oneof DestinationType:
// Required. The URL of a destination service to which to route traffic.
// Must refer to either a BackendService or ServiceDirectoryService.
ServiceName *string
// -- end of DestinationType
// Optional. Specifies the proportion of requests forwarded to the backend
// referenced by the serviceName field. This is computed as:
//
// weight/Sum(weights in this destination list).
//
// For non-zero values, there may be some epsilon from the exact proportion
// defined here depending on the precision an implementation supports.
//
// If only one serviceName is specified and it has a weight greater than 0,
// 100% of the traffic is forwarded to that backend.
//
// If weights are specified for any one service name, they need to be
// specified for all of them.
//
// If weights are unspecified for all services, then, traffic is distributed
// in equal proportions to all of them.
Weight *int32
// contains filtered or unexported fields
}
func (GrpcRoute_Destination_builder) Build ¶
func (b0 GrpcRoute_Destination_builder) Build() *GrpcRoute_Destination
type GrpcRoute_FaultInjectionPolicy ¶
type GrpcRoute_FaultInjectionPolicy struct {
// The specification for injecting delay to client requests.
Delay *GrpcRoute_FaultInjectionPolicy_Delay `protobuf:"bytes,1,opt,name=delay,proto3,oneof" json:"delay,omitempty"`
// The specification for aborting to client requests.
Abort *GrpcRoute_FaultInjectionPolicy_Abort `protobuf:"bytes,2,opt,name=abort,proto3,oneof" json:"abort,omitempty"`
// contains filtered or unexported fields
}
The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced on a percentage of requests before sending those requests to the destination service. Similarly requests from clients can be aborted by for a percentage of requests.
func (*GrpcRoute_FaultInjectionPolicy) ClearAbort ¶
func (x *GrpcRoute_FaultInjectionPolicy) ClearAbort()
func (*GrpcRoute_FaultInjectionPolicy) ClearDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy) ClearDelay()
func (*GrpcRoute_FaultInjectionPolicy) GetAbort ¶
func (x *GrpcRoute_FaultInjectionPolicy) GetAbort() *GrpcRoute_FaultInjectionPolicy_Abort
func (*GrpcRoute_FaultInjectionPolicy) GetDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy) GetDelay() *GrpcRoute_FaultInjectionPolicy_Delay
func (*GrpcRoute_FaultInjectionPolicy) HasAbort ¶
func (x *GrpcRoute_FaultInjectionPolicy) HasAbort() bool
func (*GrpcRoute_FaultInjectionPolicy) HasDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy) HasDelay() bool
func (*GrpcRoute_FaultInjectionPolicy) ProtoMessage ¶
func (*GrpcRoute_FaultInjectionPolicy) ProtoMessage()
func (*GrpcRoute_FaultInjectionPolicy) ProtoReflect ¶
func (x *GrpcRoute_FaultInjectionPolicy) ProtoReflect() protoreflect.Message
func (*GrpcRoute_FaultInjectionPolicy) Reset ¶
func (x *GrpcRoute_FaultInjectionPolicy) Reset()
func (*GrpcRoute_FaultInjectionPolicy) SetAbort ¶
func (x *GrpcRoute_FaultInjectionPolicy) SetAbort(v *GrpcRoute_FaultInjectionPolicy_Abort)
func (*GrpcRoute_FaultInjectionPolicy) SetDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy) SetDelay(v *GrpcRoute_FaultInjectionPolicy_Delay)
func (*GrpcRoute_FaultInjectionPolicy) String ¶
func (x *GrpcRoute_FaultInjectionPolicy) String() string
type GrpcRoute_FaultInjectionPolicy_Abort ¶
type GrpcRoute_FaultInjectionPolicy_Abort struct {
// The HTTP status code used to abort the request.
//
// The value must be between 200 and 599 inclusive.
HttpStatus *int32 `protobuf:"varint,1,opt,name=http_status,json=httpStatus,proto3,oneof" json:"http_status,omitempty"`
// The percentage of traffic which will be aborted.
//
// The value must be between [0, 100]
Percentage *int32 `protobuf:"varint,2,opt,name=percentage,proto3,oneof" json:"percentage,omitempty"`
// contains filtered or unexported fields
}
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
func (*GrpcRoute_FaultInjectionPolicy_Abort) ClearHttpStatus ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) ClearHttpStatus()
func (*GrpcRoute_FaultInjectionPolicy_Abort) ClearPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) ClearPercentage()
func (*GrpcRoute_FaultInjectionPolicy_Abort) GetHttpStatus ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) GetHttpStatus() int32
func (*GrpcRoute_FaultInjectionPolicy_Abort) GetPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) GetPercentage() int32
func (*GrpcRoute_FaultInjectionPolicy_Abort) HasHttpStatus ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) HasHttpStatus() bool
func (*GrpcRoute_FaultInjectionPolicy_Abort) HasPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) HasPercentage() bool
func (*GrpcRoute_FaultInjectionPolicy_Abort) ProtoMessage ¶
func (*GrpcRoute_FaultInjectionPolicy_Abort) ProtoMessage()
func (*GrpcRoute_FaultInjectionPolicy_Abort) ProtoReflect ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) ProtoReflect() protoreflect.Message
func (*GrpcRoute_FaultInjectionPolicy_Abort) Reset ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) Reset()
func (*GrpcRoute_FaultInjectionPolicy_Abort) SetHttpStatus ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) SetHttpStatus(v int32)
func (*GrpcRoute_FaultInjectionPolicy_Abort) SetPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) SetPercentage(v int32)
func (*GrpcRoute_FaultInjectionPolicy_Abort) String ¶
func (x *GrpcRoute_FaultInjectionPolicy_Abort) String() string
type GrpcRoute_FaultInjectionPolicy_Abort_builder ¶
type GrpcRoute_FaultInjectionPolicy_Abort_builder struct {
// The HTTP status code used to abort the request.
//
// The value must be between 200 and 599 inclusive.
HttpStatus *int32
// The percentage of traffic which will be aborted.
//
// The value must be between [0, 100]
Percentage *int32
// contains filtered or unexported fields
}
func (GrpcRoute_FaultInjectionPolicy_Abort_builder) Build ¶
func (b0 GrpcRoute_FaultInjectionPolicy_Abort_builder) Build() *GrpcRoute_FaultInjectionPolicy_Abort
type GrpcRoute_FaultInjectionPolicy_Delay ¶
type GrpcRoute_FaultInjectionPolicy_Delay struct {
// Specify a fixed delay before forwarding the request.
FixedDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=fixed_delay,json=fixedDelay,proto3,oneof" json:"fixed_delay,omitempty"`
// The percentage of traffic on which delay will be injected.
//
// The value must be between [0, 100]
Percentage *int32 `protobuf:"varint,2,opt,name=percentage,proto3,oneof" json:"percentage,omitempty"`
// contains filtered or unexported fields
}
Specification of how client requests are delayed as part of fault injection before being sent to a destination.
func (*GrpcRoute_FaultInjectionPolicy_Delay) ClearFixedDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) ClearFixedDelay()
func (*GrpcRoute_FaultInjectionPolicy_Delay) ClearPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) ClearPercentage()
func (*GrpcRoute_FaultInjectionPolicy_Delay) GetFixedDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) GetFixedDelay() *durationpb.Duration
func (*GrpcRoute_FaultInjectionPolicy_Delay) GetPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) GetPercentage() int32
func (*GrpcRoute_FaultInjectionPolicy_Delay) HasFixedDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) HasFixedDelay() bool
func (*GrpcRoute_FaultInjectionPolicy_Delay) HasPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) HasPercentage() bool
func (*GrpcRoute_FaultInjectionPolicy_Delay) ProtoMessage ¶
func (*GrpcRoute_FaultInjectionPolicy_Delay) ProtoMessage()
func (*GrpcRoute_FaultInjectionPolicy_Delay) ProtoReflect ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) ProtoReflect() protoreflect.Message
func (*GrpcRoute_FaultInjectionPolicy_Delay) Reset ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) Reset()
func (*GrpcRoute_FaultInjectionPolicy_Delay) SetFixedDelay ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) SetFixedDelay(v *durationpb.Duration)
func (*GrpcRoute_FaultInjectionPolicy_Delay) SetPercentage ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) SetPercentage(v int32)
func (*GrpcRoute_FaultInjectionPolicy_Delay) String ¶
func (x *GrpcRoute_FaultInjectionPolicy_Delay) String() string
type GrpcRoute_FaultInjectionPolicy_Delay_builder ¶
type GrpcRoute_FaultInjectionPolicy_Delay_builder struct {
// Specify a fixed delay before forwarding the request.
FixedDelay *durationpb.Duration
// The percentage of traffic on which delay will be injected.
//
// The value must be between [0, 100]
Percentage *int32
// contains filtered or unexported fields
}
func (GrpcRoute_FaultInjectionPolicy_Delay_builder) Build ¶
func (b0 GrpcRoute_FaultInjectionPolicy_Delay_builder) Build() *GrpcRoute_FaultInjectionPolicy_Delay
type GrpcRoute_FaultInjectionPolicy_builder ¶
type GrpcRoute_FaultInjectionPolicy_builder struct {
// The specification for injecting delay to client requests.
Delay *GrpcRoute_FaultInjectionPolicy_Delay
// The specification for aborting to client requests.
Abort *GrpcRoute_FaultInjectionPolicy_Abort
// contains filtered or unexported fields
}
func (GrpcRoute_FaultInjectionPolicy_builder) Build ¶
func (b0 GrpcRoute_FaultInjectionPolicy_builder) Build() *GrpcRoute_FaultInjectionPolicy
type GrpcRoute_HeaderMatch ¶
type GrpcRoute_HeaderMatch struct {
// Optional. Specifies how to match against the value of the header. If not
// specified, a default value of EXACT is used.
Type GrpcRoute_HeaderMatch_Type `` /* 133-byte string literal not displayed */
// Required. The key of the header.
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Required. The value of the header.
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
A match against a collection of headers.
func (*GrpcRoute_HeaderMatch) GetKey ¶
func (x *GrpcRoute_HeaderMatch) GetKey() string
func (*GrpcRoute_HeaderMatch) GetType ¶
func (x *GrpcRoute_HeaderMatch) GetType() GrpcRoute_HeaderMatch_Type
func (*GrpcRoute_HeaderMatch) GetValue ¶
func (x *GrpcRoute_HeaderMatch) GetValue() string
func (*GrpcRoute_HeaderMatch) ProtoMessage ¶
func (*GrpcRoute_HeaderMatch) ProtoMessage()
func (*GrpcRoute_HeaderMatch) ProtoReflect ¶
func (x *GrpcRoute_HeaderMatch) ProtoReflect() protoreflect.Message
func (*GrpcRoute_HeaderMatch) Reset ¶
func (x *GrpcRoute_HeaderMatch) Reset()
func (*GrpcRoute_HeaderMatch) SetKey ¶
func (x *GrpcRoute_HeaderMatch) SetKey(v string)
func (*GrpcRoute_HeaderMatch) SetType ¶
func (x *GrpcRoute_HeaderMatch) SetType(v GrpcRoute_HeaderMatch_Type)
func (*GrpcRoute_HeaderMatch) SetValue ¶
func (x *GrpcRoute_HeaderMatch) SetValue(v string)
func (*GrpcRoute_HeaderMatch) String ¶
func (x *GrpcRoute_HeaderMatch) String() string
type GrpcRoute_HeaderMatch_Type ¶
type GrpcRoute_HeaderMatch_Type int32
The type of match.
const ( // Unspecified. GrpcRoute_HeaderMatch_TYPE_UNSPECIFIED GrpcRoute_HeaderMatch_Type = 0 // Will only match the exact value provided. GrpcRoute_HeaderMatch_EXACT GrpcRoute_HeaderMatch_Type = 1 // Will match paths conforming to the prefix specified by value. RE2 // syntax is supported. GrpcRoute_HeaderMatch_REGULAR_EXPRESSION GrpcRoute_HeaderMatch_Type = 2 )
func (GrpcRoute_HeaderMatch_Type) Descriptor ¶
func (GrpcRoute_HeaderMatch_Type) Descriptor() protoreflect.EnumDescriptor
func (GrpcRoute_HeaderMatch_Type) Enum ¶
func (x GrpcRoute_HeaderMatch_Type) Enum() *GrpcRoute_HeaderMatch_Type
func (GrpcRoute_HeaderMatch_Type) Number ¶
func (x GrpcRoute_HeaderMatch_Type) Number() protoreflect.EnumNumber
func (GrpcRoute_HeaderMatch_Type) String ¶
func (x GrpcRoute_HeaderMatch_Type) String() string
func (GrpcRoute_HeaderMatch_Type) Type ¶
func (GrpcRoute_HeaderMatch_Type) Type() protoreflect.EnumType
type GrpcRoute_HeaderMatch_builder ¶
type GrpcRoute_HeaderMatch_builder struct {
// Optional. Specifies how to match against the value of the header. If not
// specified, a default value of EXACT is used.
Type GrpcRoute_HeaderMatch_Type
// Required. The key of the header.
Key string
// Required. The value of the header.
Value string
// contains filtered or unexported fields
}
func (GrpcRoute_HeaderMatch_builder) Build ¶
func (b0 GrpcRoute_HeaderMatch_builder) Build() *GrpcRoute_HeaderMatch
type GrpcRoute_MethodMatch ¶
type GrpcRoute_MethodMatch struct {
// Optional. Specifies how to match against the name. If not specified, a
// default value of "EXACT" is used.
Type GrpcRoute_MethodMatch_Type `` /* 133-byte string literal not displayed */
// Required. Name of the service to match against. If unspecified, will
// match all services.
GrpcService string `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
// Required. Name of the method to match against. If unspecified, will match
// all methods.
GrpcMethod string `protobuf:"bytes,3,opt,name=grpc_method,json=grpcMethod,proto3" json:"grpc_method,omitempty"`
// Optional. Specifies that matches are case sensitive. The default value
// is true. case_sensitive must not be used with a type of
// REGULAR_EXPRESSION.
CaseSensitive *bool `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3,oneof" json:"case_sensitive,omitempty"`
// contains filtered or unexported fields
}
Specifies a match against a method.
func (*GrpcRoute_MethodMatch) ClearCaseSensitive ¶
func (x *GrpcRoute_MethodMatch) ClearCaseSensitive()
func (*GrpcRoute_MethodMatch) GetCaseSensitive ¶
func (x *GrpcRoute_MethodMatch) GetCaseSensitive() bool
func (*GrpcRoute_MethodMatch) GetGrpcMethod ¶
func (x *GrpcRoute_MethodMatch) GetGrpcMethod() string
func (*GrpcRoute_MethodMatch) GetGrpcService ¶
func (x *GrpcRoute_MethodMatch) GetGrpcService() string
func (*GrpcRoute_MethodMatch) GetType ¶
func (x *GrpcRoute_MethodMatch) GetType() GrpcRoute_MethodMatch_Type
func (*GrpcRoute_MethodMatch) HasCaseSensitive ¶
func (x *GrpcRoute_MethodMatch) HasCaseSensitive() bool
func (*GrpcRoute_MethodMatch) ProtoMessage ¶
func (*GrpcRoute_MethodMatch) ProtoMessage()
func (*GrpcRoute_MethodMatch) ProtoReflect ¶
func (x *GrpcRoute_MethodMatch) ProtoReflect() protoreflect.Message
func (*GrpcRoute_MethodMatch) Reset ¶
func (x *GrpcRoute_MethodMatch) Reset()
func (*GrpcRoute_MethodMatch) SetCaseSensitive ¶
func (x *GrpcRoute_MethodMatch) SetCaseSensitive(v bool)
func (*GrpcRoute_MethodMatch) SetGrpcMethod ¶
func (x *GrpcRoute_MethodMatch) SetGrpcMethod(v string)
func (*GrpcRoute_MethodMatch) SetGrpcService ¶
func (x *GrpcRoute_MethodMatch) SetGrpcService(v string)
func (*GrpcRoute_MethodMatch) SetType ¶
func (x *GrpcRoute_MethodMatch) SetType(v GrpcRoute_MethodMatch_Type)
func (*GrpcRoute_MethodMatch) String ¶
func (x *GrpcRoute_MethodMatch) String() string
type GrpcRoute_MethodMatch_Type ¶
type GrpcRoute_MethodMatch_Type int32
The type of the match.
const ( // Unspecified. GrpcRoute_MethodMatch_TYPE_UNSPECIFIED GrpcRoute_MethodMatch_Type = 0 // Will only match the exact name provided. GrpcRoute_MethodMatch_EXACT GrpcRoute_MethodMatch_Type = 1 // Will interpret grpc_method and grpc_service as regexes. RE2 syntax is // supported. GrpcRoute_MethodMatch_REGULAR_EXPRESSION GrpcRoute_MethodMatch_Type = 2 )
func (GrpcRoute_MethodMatch_Type) Descriptor ¶
func (GrpcRoute_MethodMatch_Type) Descriptor() protoreflect.EnumDescriptor
func (GrpcRoute_MethodMatch_Type) Enum ¶
func (x GrpcRoute_MethodMatch_Type) Enum() *GrpcRoute_MethodMatch_Type
func (GrpcRoute_MethodMatch_Type) Number ¶
func (x GrpcRoute_MethodMatch_Type) Number() protoreflect.EnumNumber
func (GrpcRoute_MethodMatch_Type) String ¶
func (x GrpcRoute_MethodMatch_Type) String() string
func (GrpcRoute_MethodMatch_Type) Type ¶
func (GrpcRoute_MethodMatch_Type) Type() protoreflect.EnumType
type GrpcRoute_MethodMatch_builder ¶
type GrpcRoute_MethodMatch_builder struct {
// Optional. Specifies how to match against the name. If not specified, a
// default value of "EXACT" is used.
Type GrpcRoute_MethodMatch_Type
// Required. Name of the service to match against. If unspecified, will
// match all services.
GrpcService string
// Required. Name of the method to match against. If unspecified, will match
// all methods.
GrpcMethod string
// Optional. Specifies that matches are case sensitive. The default value
// is true. case_sensitive must not be used with a type of
// REGULAR_EXPRESSION.
CaseSensitive *bool
// contains filtered or unexported fields
}
func (GrpcRoute_MethodMatch_builder) Build ¶
func (b0 GrpcRoute_MethodMatch_builder) Build() *GrpcRoute_MethodMatch
type GrpcRoute_RetryPolicy ¶
type GrpcRoute_RetryPolicy struct {
// - connect-failure: Router will retry on failures connecting to Backend
// Services, for example due to connection timeouts.
// - refused-stream: Router will retry if the backend service resets the
//
// stream
//
// with a REFUSED_STREAM error code. This reset type indicates that it is
// safe to retry.
//
// - cancelled: Router will retry if the gRPC status code in the response
// header
//
// is set to cancelled
//
// - deadline-exceeded: Router will retry if the gRPC status code in the
// response
//
// header is set to deadline-exceeded
// - resource-exhausted: Router will retry if the gRPC status code in the
// response header is set to resource-exhausted
// - unavailable: Router will retry if the gRPC status code in the response
// header is set to unavailable
RetryConditions []string `protobuf:"bytes,1,rep,name=retry_conditions,json=retryConditions,proto3" json:"retry_conditions,omitempty"`
// Specifies the allowed number of retries. This number must be > 0. If not
// specified, default to 1.
NumRetries uint32 `protobuf:"varint,2,opt,name=num_retries,json=numRetries,proto3" json:"num_retries,omitempty"`
// contains filtered or unexported fields
}
The specifications for retries.
func (*GrpcRoute_RetryPolicy) GetNumRetries ¶
func (x *GrpcRoute_RetryPolicy) GetNumRetries() uint32
func (*GrpcRoute_RetryPolicy) GetRetryConditions ¶
func (x *GrpcRoute_RetryPolicy) GetRetryConditions() []string
func (*GrpcRoute_RetryPolicy) ProtoMessage ¶
func (*GrpcRoute_RetryPolicy) ProtoMessage()
func (*GrpcRoute_RetryPolicy) ProtoReflect ¶
func (x *GrpcRoute_RetryPolicy) ProtoReflect() protoreflect.Message
func (*GrpcRoute_RetryPolicy) Reset ¶
func (x *GrpcRoute_RetryPolicy) Reset()
func (*GrpcRoute_RetryPolicy) SetNumRetries ¶
func (x *GrpcRoute_RetryPolicy) SetNumRetries(v uint32)
func (*GrpcRoute_RetryPolicy) SetRetryConditions ¶
func (x *GrpcRoute_RetryPolicy) SetRetryConditions(v []string)
func (*GrpcRoute_RetryPolicy) String ¶
func (x *GrpcRoute_RetryPolicy) String() string
type GrpcRoute_RetryPolicy_builder ¶
type GrpcRoute_RetryPolicy_builder struct {
// - connect-failure: Router will retry on failures connecting to Backend
// Services, for example due to connection timeouts.
// - refused-stream: Router will retry if the backend service resets the
//
// stream
//
// with a REFUSED_STREAM error code. This reset type indicates that it is
// safe to retry.
//
// - cancelled: Router will retry if the gRPC status code in the response
// header
//
// is set to cancelled
//
// - deadline-exceeded: Router will retry if the gRPC status code in the
// response
//
// header is set to deadline-exceeded
// - resource-exhausted: Router will retry if the gRPC status code in the
// response header is set to resource-exhausted
// - unavailable: Router will retry if the gRPC status code in the response
// header is set to unavailable
RetryConditions []string
// Specifies the allowed number of retries. This number must be > 0. If not
// specified, default to 1.
NumRetries uint32
// contains filtered or unexported fields
}
func (GrpcRoute_RetryPolicy_builder) Build ¶
func (b0 GrpcRoute_RetryPolicy_builder) Build() *GrpcRoute_RetryPolicy
type GrpcRoute_RouteAction ¶
type GrpcRoute_RouteAction struct {
// Optional. The destination services to which traffic should be forwarded.
// If multiple destinations are specified, traffic will be split between
// Backend Service(s) according to the weight field of these destinations.
Destinations []*GrpcRoute_Destination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"`
// Optional. The specification for fault injection introduced into traffic
// to test the resiliency of clients to destination service failure. As part
// of fault injection, when clients send requests to a destination, delays
// can be introduced on a percentage of requests before sending those
// requests to the destination service. Similarly requests from clients can
// be aborted by for a percentage of requests.
//
// timeout and retry_policy will be ignored by clients that are configured
// with a fault_injection_policy
FaultInjectionPolicy *GrpcRoute_FaultInjectionPolicy `protobuf:"bytes,3,opt,name=fault_injection_policy,json=faultInjectionPolicy,proto3" json:"fault_injection_policy,omitempty"`
// Optional. Specifies the timeout for selected route. Timeout is computed
// from the time the request has been fully processed (i.e. end of stream)
// up until the response has been completely processed. Timeout includes all
// retries.
Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Optional. Specifies the retry policy associated with this route.
RetryPolicy *GrpcRoute_RetryPolicy `protobuf:"bytes,8,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"`
// contains filtered or unexported fields
}
Specifies how to route matched traffic.
func (*GrpcRoute_RouteAction) ClearFaultInjectionPolicy ¶
func (x *GrpcRoute_RouteAction) ClearFaultInjectionPolicy()
func (*GrpcRoute_RouteAction) ClearRetryPolicy ¶
func (x *GrpcRoute_RouteAction) ClearRetryPolicy()
func (*GrpcRoute_RouteAction) ClearTimeout ¶
func (x *GrpcRoute_RouteAction) ClearTimeout()
func (*GrpcRoute_RouteAction) GetDestinations ¶
func (x *GrpcRoute_RouteAction) GetDestinations() []*GrpcRoute_Destination
func (*GrpcRoute_RouteAction) GetFaultInjectionPolicy ¶
func (x *GrpcRoute_RouteAction) GetFaultInjectionPolicy() *GrpcRoute_FaultInjectionPolicy
func (*GrpcRoute_RouteAction) GetRetryPolicy ¶
func (x *GrpcRoute_RouteAction) GetRetryPolicy() *GrpcRoute_RetryPolicy
func (*GrpcRoute_RouteAction) GetTimeout ¶
func (x *GrpcRoute_RouteAction) GetTimeout() *durationpb.Duration
func (*GrpcRoute_RouteAction) HasFaultInjectionPolicy ¶
func (x *GrpcRoute_RouteAction) HasFaultInjectionPolicy() bool
func (*GrpcRoute_RouteAction) HasRetryPolicy ¶
func (x *GrpcRoute_RouteAction) HasRetryPolicy() bool
func (*GrpcRoute_RouteAction) HasTimeout ¶
func (x *GrpcRoute_RouteAction) HasTimeout() bool
func (*GrpcRoute_RouteAction) ProtoMessage ¶
func (*GrpcRoute_RouteAction) ProtoMessage()
func (*GrpcRoute_RouteAction) ProtoReflect ¶
func (x *GrpcRoute_RouteAction) ProtoReflect() protoreflect.Message
func (*GrpcRoute_RouteAction) Reset ¶
func (x *GrpcRoute_RouteAction) Reset()
func (*GrpcRoute_RouteAction) SetDestinations ¶
func (x *GrpcRoute_RouteAction) SetDestinations(v []*GrpcRoute_Destination)
func (*GrpcRoute_RouteAction) SetFaultInjectionPolicy ¶
func (x *GrpcRoute_RouteAction) SetFaultInjectionPolicy(v *GrpcRoute_FaultInjectionPolicy)
func (*GrpcRoute_RouteAction) SetRetryPolicy ¶
func (x *GrpcRoute_RouteAction) SetRetryPolicy(v *GrpcRoute_RetryPolicy)
func (*GrpcRoute_RouteAction) SetTimeout ¶
func (x *GrpcRoute_RouteAction) SetTimeout(v *durationpb.Duration)
func (*GrpcRoute_RouteAction) String ¶
func (x *GrpcRoute_RouteAction) String() string
type GrpcRoute_RouteAction_builder ¶
type GrpcRoute_RouteAction_builder struct {
// Optional. The destination services to which traffic should be forwarded.
// If multiple destinations are specified, traffic will be split between
// Backend Service(s) according to the weight field of these destinations.
Destinations []*GrpcRoute_Destination
// Optional. The specification for fault injection introduced into traffic
// to test the resiliency of clients to destination service failure. As part
// of fault injection, when clients send requests to a destination, delays
// can be introduced on a percentage of requests before sending those
// requests to the destination service. Similarly requests from clients can
// be aborted by for a percentage of requests.
//
// timeout and retry_policy will be ignored by clients that are configured
// with a fault_injection_policy
FaultInjectionPolicy *GrpcRoute_FaultInjectionPolicy
// Optional. Specifies the timeout for selected route. Timeout is computed
// from the time the request has been fully processed (i.e. end of stream)
// up until the response has been completely processed. Timeout includes all
// retries.
Timeout *durationpb.Duration
// Optional. Specifies the retry policy associated with this route.
RetryPolicy *GrpcRoute_RetryPolicy
// contains filtered or unexported fields
}
func (GrpcRoute_RouteAction_builder) Build ¶
func (b0 GrpcRoute_RouteAction_builder) Build() *GrpcRoute_RouteAction
type GrpcRoute_RouteMatch ¶
type GrpcRoute_RouteMatch struct {
// Optional. A gRPC method to match against. If this field is empty or
// omitted, will match all methods.
Method *GrpcRoute_MethodMatch `protobuf:"bytes,1,opt,name=method,proto3,oneof" json:"method,omitempty"`
// Optional. Specifies a collection of headers to match.
Headers []*GrpcRoute_HeaderMatch `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
// contains filtered or unexported fields
}
Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.
func (*GrpcRoute_RouteMatch) ClearMethod ¶
func (x *GrpcRoute_RouteMatch) ClearMethod()
func (*GrpcRoute_RouteMatch) GetHeaders ¶
func (x *GrpcRoute_RouteMatch) GetHeaders() []*GrpcRoute_HeaderMatch
func (*GrpcRoute_RouteMatch) GetMethod ¶
func (x *GrpcRoute_RouteMatch) GetMethod() *GrpcRoute_MethodMatch
func (*GrpcRoute_RouteMatch) HasMethod ¶
func (x *GrpcRoute_RouteMatch) HasMethod() bool
func (*GrpcRoute_RouteMatch) ProtoMessage ¶
func (*GrpcRoute_RouteMatch) ProtoMessage()
func (*GrpcRoute_RouteMatch) ProtoReflect ¶
func (x *GrpcRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (*GrpcRoute_RouteMatch) Reset ¶
func (x *GrpcRoute_RouteMatch) Reset()
func (*GrpcRoute_RouteMatch) SetHeaders ¶
func (x *GrpcRoute_RouteMatch) SetHeaders(v []*GrpcRoute_HeaderMatch)
func (*GrpcRoute_RouteMatch) SetMethod ¶
func (x *GrpcRoute_RouteMatch) SetMethod(v *GrpcRoute_MethodMatch)
func (*GrpcRoute_RouteMatch) String ¶
func (x *GrpcRoute_RouteMatch) String() string
type GrpcRoute_RouteMatch_builder ¶
type GrpcRoute_RouteMatch_builder struct {
// Optional. A gRPC method to match against. If this field is empty or
// omitted, will match all methods.
Method *GrpcRoute_MethodMatch
// Optional. Specifies a collection of headers to match.
Headers []*GrpcRoute_HeaderMatch
// contains filtered or unexported fields
}
func (GrpcRoute_RouteMatch_builder) Build ¶
func (b0 GrpcRoute_RouteMatch_builder) Build() *GrpcRoute_RouteMatch
type GrpcRoute_RouteRule ¶
type GrpcRoute_RouteRule struct {
// Optional. Matches define conditions used for matching the rule against
// incoming gRPC requests. Each match is independent, i.e. this rule will be
// matched if ANY one of the matches is satisfied. If no matches field is
// specified, this rule will unconditionally match traffic.
Matches []*GrpcRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
// Required. A detailed rule defining how to route traffic. This field is
// required.
Action *GrpcRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
// contains filtered or unexported fields
}
Describes how to route traffic.
func (*GrpcRoute_RouteRule) ClearAction ¶
func (x *GrpcRoute_RouteRule) ClearAction()
func (*GrpcRoute_RouteRule) GetAction ¶
func (x *GrpcRoute_RouteRule) GetAction() *GrpcRoute_RouteAction
func (*GrpcRoute_RouteRule) GetMatches ¶
func (x *GrpcRoute_RouteRule) GetMatches() []*GrpcRoute_RouteMatch
func (*GrpcRoute_RouteRule) HasAction ¶
func (x *GrpcRoute_RouteRule) HasAction() bool
func (*GrpcRoute_RouteRule) ProtoMessage ¶
func (*GrpcRoute_RouteRule) ProtoMessage()
func (*GrpcRoute_RouteRule) ProtoReflect ¶
func (x *GrpcRoute_RouteRule) ProtoReflect() protoreflect.Message
func (*GrpcRoute_RouteRule) Reset ¶
func (x *GrpcRoute_RouteRule) Reset()
func (*GrpcRoute_RouteRule) SetAction ¶
func (x *GrpcRoute_RouteRule) SetAction(v *GrpcRoute_RouteAction)
func (*GrpcRoute_RouteRule) SetMatches ¶
func (x *GrpcRoute_RouteRule) SetMatches(v []*GrpcRoute_RouteMatch)
func (*GrpcRoute_RouteRule) String ¶
func (x *GrpcRoute_RouteRule) String() string
type GrpcRoute_RouteRule_builder ¶
type GrpcRoute_RouteRule_builder struct {
// Optional. Matches define conditions used for matching the rule against
// incoming gRPC requests. Each match is independent, i.e. this rule will be
// matched if ANY one of the matches is satisfied. If no matches field is
// specified, this rule will unconditionally match traffic.
Matches []*GrpcRoute_RouteMatch
// Required. A detailed rule defining how to route traffic. This field is
// required.
Action *GrpcRoute_RouteAction
// contains filtered or unexported fields
}
func (GrpcRoute_RouteRule_builder) Build ¶
func (b0 GrpcRoute_RouteRule_builder) Build() *GrpcRoute_RouteRule
type GrpcRoute_builder ¶
type GrpcRoute_builder struct {
// Required. Name of the GrpcRoute resource. It matches pattern
// `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
Name string
// Output only. Server-defined URL of this resource
SelfLink string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Optional. Set of label tags associated with the GrpcRoute resource.
Labels map[string]string
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// Required. Service hostnames with an optional port for which this route
// describes traffic.
//
// Format: <hostname>[:<port>]
//
// Hostname is the fully qualified domain name of a network host. This matches
// the RFC 1123 definition of a hostname with 2 notable exceptions:
// - IPs are not allowed.
// - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
// label must appear by itself as the first label.
//
// Hostname can be "precise" which is a domain name without the terminating
// dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
// domain name prefixed with a single wildcard label (e.g. `*.example.com`).
//
// Note that as per RFC1035 and RFC1123, a label must consist of lower case
// alphanumeric characters or '-', and must start and end with an alphanumeric
// character. No other punctuation is allowed.
//
// The routes associated with a Mesh or Gateway must have unique hostnames. If
// you attempt to attach multiple routes with conflicting hostnames, the
// configuration will be rejected.
//
// For example, while it is acceptable for routes for the hostnames
// `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is
// not possible to associate two routes both with `*.bar.com` or both with
// `bar.com`.
//
// If a port is specified, then gRPC clients must use the channel URI with the
// port to match this rule (i.e. "xds:///service:123"), otherwise they must
// supply the URI without a port (i.e. "xds:///service").
Hostnames []string
// Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
Meshes []string
// Optional. Gateways defines a list of gateways this GrpcRoute is attached
// to, as one of the routing rules to route the requests served by the
// gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string
// Required. A list of detailed rules defining how to route traffic.
//
// Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the
// first matching GrpcRoute.RouteRule will be executed. At least one rule
// must be supplied.
Rules []*GrpcRoute_RouteRule
// contains filtered or unexported fields
}
func (GrpcRoute_builder) Build ¶
func (b0 GrpcRoute_builder) Build() *GrpcRoute
type HttpRoute ¶
type HttpRoute struct {
// Required. Name of the HttpRoute resource. It matches pattern
// `projects/*/locations/global/httpRoutes/http_route_name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server-defined URL of this resource
SelfLink string `protobuf:"bytes,11,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"`
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,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,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Required. Hostnames define a set of hosts that should match against the
// HTTP host header to select a HttpRoute to process the request. Hostname is
// the fully qualified domain name of a network host, as defined by RFC 1123
// with the exception that:
// - IPs are not allowed.
// - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
// label must appear by itself as the first label.
//
// Hostname can be "precise" which is a domain name without the terminating
// dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
// domain name prefixed with a single wildcard label (e.g. `*.example.com`).
//
// Note that as per RFC1035 and RFC1123, a label must consist of lower case
// alphanumeric characters or '-', and must start and end with an alphanumeric
// character. No other punctuation is allowed.
//
// The routes associated with a Mesh or Gateways must have unique hostnames.
// If you attempt to attach multiple routes with conflicting hostnames,
// the configuration will be rejected.
//
// For example, while it is acceptable for routes for the hostnames
// `*.foo.bar.com` and `*.bar.com` to be associated with the same Mesh (or
// Gateways under the same scope), it is not possible to associate two routes
// both with `*.bar.com` or both with `bar.com`.
Hostnames []string `protobuf:"bytes,5,rep,name=hostnames,proto3" json:"hostnames,omitempty"`
// Optional. Meshes defines a list of meshes this HttpRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
//
// The attached Mesh should be of a type SIDECAR
Meshes []string `protobuf:"bytes,8,rep,name=meshes,proto3" json:"meshes,omitempty"`
// Optional. Gateways defines a list of gateways this HttpRoute is attached
// to, as one of the routing rules to route the requests served by the
// gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string `protobuf:"bytes,9,rep,name=gateways,proto3" json:"gateways,omitempty"`
// Optional. Set of label tags associated with the HttpRoute resource.
Labels map[string]string `` /* 140-byte string literal not displayed */
// Required. Rules that define how traffic is routed and handled.
// Rules will be matched sequentially based on the RouteMatch specified for
// the rule.
Rules []*HttpRoute_RouteRule `protobuf:"bytes,6,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
HttpRoute is the resource defining how HTTP traffic should be routed by a Mesh or Gateway resource.
func (*HttpRoute) GetCreateTime ¶
func (x *HttpRoute) GetCreateTime() *timestamppb.Timestamp
func (*HttpRoute) GetRules ¶
func (x *HttpRoute) GetRules() []*HttpRoute_RouteRule
func (*HttpRoute) GetUpdateTime ¶
func (x *HttpRoute) GetUpdateTime() *timestamppb.Timestamp
func (*HttpRoute) ProtoReflect ¶
func (x *HttpRoute) ProtoReflect() protoreflect.Message
func (*HttpRoute) SetCreateTime ¶
func (x *HttpRoute) SetCreateTime(v *timestamppb.Timestamp)
func (*HttpRoute) SetRules ¶
func (x *HttpRoute) SetRules(v []*HttpRoute_RouteRule)
func (*HttpRoute) SetUpdateTime ¶
func (x *HttpRoute) SetUpdateTime(v *timestamppb.Timestamp)
type HttpRouteCreatedEvent ¶
type HttpRouteCreatedEvent struct {
// The data associated with the event.
Data *HttpRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a HttpRoute is created.
func (*HttpRouteCreatedEvent) ClearData ¶
func (x *HttpRouteCreatedEvent) ClearData()
func (*HttpRouteCreatedEvent) GetData ¶
func (x *HttpRouteCreatedEvent) GetData() *HttpRouteEventData
func (*HttpRouteCreatedEvent) HasData ¶
func (x *HttpRouteCreatedEvent) HasData() bool
func (*HttpRouteCreatedEvent) ProtoMessage ¶
func (*HttpRouteCreatedEvent) ProtoMessage()
func (*HttpRouteCreatedEvent) ProtoReflect ¶
func (x *HttpRouteCreatedEvent) ProtoReflect() protoreflect.Message
func (*HttpRouteCreatedEvent) Reset ¶
func (x *HttpRouteCreatedEvent) Reset()
func (*HttpRouteCreatedEvent) SetData ¶
func (x *HttpRouteCreatedEvent) SetData(v *HttpRouteEventData)
func (*HttpRouteCreatedEvent) String ¶
func (x *HttpRouteCreatedEvent) String() string
type HttpRouteCreatedEvent_builder ¶
type HttpRouteCreatedEvent_builder struct {
// The data associated with the event.
Data *HttpRouteEventData
// contains filtered or unexported fields
}
func (HttpRouteCreatedEvent_builder) Build ¶
func (b0 HttpRouteCreatedEvent_builder) Build() *HttpRouteCreatedEvent
type HttpRouteDeletedEvent ¶
type HttpRouteDeletedEvent struct {
// The data associated with the event.
Data *HttpRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a HttpRoute is deleted.
func (*HttpRouteDeletedEvent) ClearData ¶
func (x *HttpRouteDeletedEvent) ClearData()
func (*HttpRouteDeletedEvent) GetData ¶
func (x *HttpRouteDeletedEvent) GetData() *HttpRouteEventData
func (*HttpRouteDeletedEvent) HasData ¶
func (x *HttpRouteDeletedEvent) HasData() bool
func (*HttpRouteDeletedEvent) ProtoMessage ¶
func (*HttpRouteDeletedEvent) ProtoMessage()
func (*HttpRouteDeletedEvent) ProtoReflect ¶
func (x *HttpRouteDeletedEvent) ProtoReflect() protoreflect.Message
func (*HttpRouteDeletedEvent) Reset ¶
func (x *HttpRouteDeletedEvent) Reset()
func (*HttpRouteDeletedEvent) SetData ¶
func (x *HttpRouteDeletedEvent) SetData(v *HttpRouteEventData)
func (*HttpRouteDeletedEvent) String ¶
func (x *HttpRouteDeletedEvent) String() string
type HttpRouteDeletedEvent_builder ¶
type HttpRouteDeletedEvent_builder struct {
// The data associated with the event.
Data *HttpRouteEventData
// contains filtered or unexported fields
}
func (HttpRouteDeletedEvent_builder) Build ¶
func (b0 HttpRouteDeletedEvent_builder) Build() *HttpRouteDeletedEvent
type HttpRouteEventData ¶
type HttpRouteEventData struct {
// Optional. The HttpRoute event payload. Unset for deletion events.
Payload *HttpRoute `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all HttpRoute events.
func (*HttpRouteEventData) ClearPayload ¶
func (x *HttpRouteEventData) ClearPayload()
func (*HttpRouteEventData) GetPayload ¶
func (x *HttpRouteEventData) GetPayload() *HttpRoute
func (*HttpRouteEventData) HasPayload ¶
func (x *HttpRouteEventData) HasPayload() bool
func (*HttpRouteEventData) ProtoMessage ¶
func (*HttpRouteEventData) ProtoMessage()
func (*HttpRouteEventData) ProtoReflect ¶
func (x *HttpRouteEventData) ProtoReflect() protoreflect.Message
func (*HttpRouteEventData) Reset ¶
func (x *HttpRouteEventData) Reset()
func (*HttpRouteEventData) SetPayload ¶
func (x *HttpRouteEventData) SetPayload(v *HttpRoute)
func (*HttpRouteEventData) String ¶
func (x *HttpRouteEventData) String() string
type HttpRouteEventData_builder ¶
type HttpRouteEventData_builder struct {
// Optional. The HttpRoute event payload. Unset for deletion events.
Payload *HttpRoute
// contains filtered or unexported fields
}
func (HttpRouteEventData_builder) Build ¶
func (b0 HttpRouteEventData_builder) Build() *HttpRouteEventData
type HttpRouteUpdatedEvent ¶
type HttpRouteUpdatedEvent struct {
// The data associated with the event.
Data *HttpRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a HttpRoute is updated.
func (*HttpRouteUpdatedEvent) ClearData ¶
func (x *HttpRouteUpdatedEvent) ClearData()
func (*HttpRouteUpdatedEvent) GetData ¶
func (x *HttpRouteUpdatedEvent) GetData() *HttpRouteEventData
func (*HttpRouteUpdatedEvent) HasData ¶
func (x *HttpRouteUpdatedEvent) HasData() bool
func (*HttpRouteUpdatedEvent) ProtoMessage ¶
func (*HttpRouteUpdatedEvent) ProtoMessage()
func (*HttpRouteUpdatedEvent) ProtoReflect ¶
func (x *HttpRouteUpdatedEvent) ProtoReflect() protoreflect.Message
func (*HttpRouteUpdatedEvent) Reset ¶
func (x *HttpRouteUpdatedEvent) Reset()
func (*HttpRouteUpdatedEvent) SetData ¶
func (x *HttpRouteUpdatedEvent) SetData(v *HttpRouteEventData)
func (*HttpRouteUpdatedEvent) String ¶
func (x *HttpRouteUpdatedEvent) String() string
type HttpRouteUpdatedEvent_builder ¶
type HttpRouteUpdatedEvent_builder struct {
// The data associated with the event.
Data *HttpRouteEventData
// contains filtered or unexported fields
}
func (HttpRouteUpdatedEvent_builder) Build ¶
func (b0 HttpRouteUpdatedEvent_builder) Build() *HttpRouteUpdatedEvent
type HttpRoute_CorsPolicy ¶
type HttpRoute_CorsPolicy struct {
// Specifies the list of origins that will be allowed to do CORS requests.
// An origin is allowed if it matches either an item in allow_origins or
// an item in allow_origin_regexes.
AllowOrigins []string `protobuf:"bytes,1,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,omitempty"`
// Specifies the regular expression patterns that match allowed origins. For
// regular expression grammar, please see
// https://github.com/google/re2/wiki/Syntax.
AllowOriginRegexes []string `protobuf:"bytes,2,rep,name=allow_origin_regexes,json=allowOriginRegexes,proto3" json:"allow_origin_regexes,omitempty"`
// Specifies the content for Access-Control-Allow-Methods header.
AllowMethods []string `protobuf:"bytes,3,rep,name=allow_methods,json=allowMethods,proto3" json:"allow_methods,omitempty"`
// Specifies the content for Access-Control-Allow-Headers header.
AllowHeaders []string `protobuf:"bytes,4,rep,name=allow_headers,json=allowHeaders,proto3" json:"allow_headers,omitempty"`
// Specifies the content for Access-Control-Expose-Headers header.
ExposeHeaders []string `protobuf:"bytes,5,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"`
// Specifies how long result of a preflight request can be cached in
// seconds. This translates to the Access-Control-Max-Age header.
MaxAge string `protobuf:"bytes,6,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
// In response to a preflight request, setting this to true indicates that
// the actual request can include user credentials. This translates to the
// Access-Control-Allow-Credentials header.
//
// Default value is false.
AllowCredentials bool `protobuf:"varint,7,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
// If true, the CORS policy is disabled. The default value is false, which
// indicates that the CORS policy is in effect.
Disabled bool `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"`
// contains filtered or unexported fields
}
The Specification for allowing client side cross-origin requests.
func (*HttpRoute_CorsPolicy) GetAllowCredentials ¶
func (x *HttpRoute_CorsPolicy) GetAllowCredentials() bool
func (*HttpRoute_CorsPolicy) GetAllowHeaders ¶
func (x *HttpRoute_CorsPolicy) GetAllowHeaders() []string
func (*HttpRoute_CorsPolicy) GetAllowMethods ¶
func (x *HttpRoute_CorsPolicy) GetAllowMethods() []string
func (*HttpRoute_CorsPolicy) GetAllowOriginRegexes ¶
func (x *HttpRoute_CorsPolicy) GetAllowOriginRegexes() []string
func (*HttpRoute_CorsPolicy) GetAllowOrigins ¶
func (x *HttpRoute_CorsPolicy) GetAllowOrigins() []string
func (*HttpRoute_CorsPolicy) GetDisabled ¶
func (x *HttpRoute_CorsPolicy) GetDisabled() bool
func (*HttpRoute_CorsPolicy) GetExposeHeaders ¶
func (x *HttpRoute_CorsPolicy) GetExposeHeaders() []string
func (*HttpRoute_CorsPolicy) GetMaxAge ¶
func (x *HttpRoute_CorsPolicy) GetMaxAge() string
func (*HttpRoute_CorsPolicy) ProtoMessage ¶
func (*HttpRoute_CorsPolicy) ProtoMessage()
func (*HttpRoute_CorsPolicy) ProtoReflect ¶
func (x *HttpRoute_CorsPolicy) ProtoReflect() protoreflect.Message
func (*HttpRoute_CorsPolicy) Reset ¶
func (x *HttpRoute_CorsPolicy) Reset()
func (*HttpRoute_CorsPolicy) SetAllowCredentials ¶
func (x *HttpRoute_CorsPolicy) SetAllowCredentials(v bool)
func (*HttpRoute_CorsPolicy) SetAllowHeaders ¶
func (x *HttpRoute_CorsPolicy) SetAllowHeaders(v []string)
func (*HttpRoute_CorsPolicy) SetAllowMethods ¶
func (x *HttpRoute_CorsPolicy) SetAllowMethods(v []string)
func (*HttpRoute_CorsPolicy) SetAllowOriginRegexes ¶
func (x *HttpRoute_CorsPolicy) SetAllowOriginRegexes(v []string)
func (*HttpRoute_CorsPolicy) SetAllowOrigins ¶
func (x *HttpRoute_CorsPolicy) SetAllowOrigins(v []string)
func (*HttpRoute_CorsPolicy) SetDisabled ¶
func (x *HttpRoute_CorsPolicy) SetDisabled(v bool)
func (*HttpRoute_CorsPolicy) SetExposeHeaders ¶
func (x *HttpRoute_CorsPolicy) SetExposeHeaders(v []string)
func (*HttpRoute_CorsPolicy) SetMaxAge ¶
func (x *HttpRoute_CorsPolicy) SetMaxAge(v string)
func (*HttpRoute_CorsPolicy) String ¶
func (x *HttpRoute_CorsPolicy) String() string
type HttpRoute_CorsPolicy_builder ¶
type HttpRoute_CorsPolicy_builder struct {
// Specifies the list of origins that will be allowed to do CORS requests.
// An origin is allowed if it matches either an item in allow_origins or
// an item in allow_origin_regexes.
AllowOrigins []string
// Specifies the regular expression patterns that match allowed origins. For
// regular expression grammar, please see
// https://github.com/google/re2/wiki/Syntax.
AllowOriginRegexes []string
// Specifies the content for Access-Control-Allow-Methods header.
AllowMethods []string
// Specifies the content for Access-Control-Allow-Headers header.
AllowHeaders []string
// Specifies the content for Access-Control-Expose-Headers header.
ExposeHeaders []string
// Specifies how long result of a preflight request can be cached in
// seconds. This translates to the Access-Control-Max-Age header.
MaxAge string
// In response to a preflight request, setting this to true indicates that
// the actual request can include user credentials. This translates to the
// Access-Control-Allow-Credentials header.
//
// Default value is false.
AllowCredentials bool
// If true, the CORS policy is disabled. The default value is false, which
// indicates that the CORS policy is in effect.
Disabled bool
// contains filtered or unexported fields
}
func (HttpRoute_CorsPolicy_builder) Build ¶
func (b0 HttpRoute_CorsPolicy_builder) Build() *HttpRoute_CorsPolicy
type HttpRoute_Destination ¶
type HttpRoute_Destination struct {
// The URL of a BackendService to route traffic to.
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// Specifies the proportion of requests forwarded to the backend referenced
// by the serviceName field. This is computed as:
//
// weight/Sum(weights in this destination list).
//
// For non-zero values, there may be some epsilon from the exact proportion
// defined here depending on the precision an implementation supports.
//
// If only one serviceName is specified and it has a weight greater than 0,
// 100% of the traffic is forwarded to that backend.
//
// If weights are specified for any one service name, they need to be
// specified for all of them.
//
// If weights are unspecified for all services, then, traffic is distributed
// in equal proportions to all of them.
Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
Specifications of a destination to which the request should be routed to.
func (*HttpRoute_Destination) GetServiceName ¶
func (x *HttpRoute_Destination) GetServiceName() string
func (*HttpRoute_Destination) GetWeight ¶
func (x *HttpRoute_Destination) GetWeight() int32
func (*HttpRoute_Destination) ProtoMessage ¶
func (*HttpRoute_Destination) ProtoMessage()
func (*HttpRoute_Destination) ProtoReflect ¶
func (x *HttpRoute_Destination) ProtoReflect() protoreflect.Message
func (*HttpRoute_Destination) Reset ¶
func (x *HttpRoute_Destination) Reset()
func (*HttpRoute_Destination) SetServiceName ¶
func (x *HttpRoute_Destination) SetServiceName(v string)
func (*HttpRoute_Destination) SetWeight ¶
func (x *HttpRoute_Destination) SetWeight(v int32)
func (*HttpRoute_Destination) String ¶
func (x *HttpRoute_Destination) String() string
type HttpRoute_Destination_builder ¶
type HttpRoute_Destination_builder struct {
// The URL of a BackendService to route traffic to.
ServiceName string
// Specifies the proportion of requests forwarded to the backend referenced
// by the serviceName field. This is computed as:
//
// weight/Sum(weights in this destination list).
//
// For non-zero values, there may be some epsilon from the exact proportion
// defined here depending on the precision an implementation supports.
//
// If only one serviceName is specified and it has a weight greater than 0,
// 100% of the traffic is forwarded to that backend.
//
// If weights are specified for any one service name, they need to be
// specified for all of them.
//
// If weights are unspecified for all services, then, traffic is distributed
// in equal proportions to all of them.
Weight int32
// contains filtered or unexported fields
}
func (HttpRoute_Destination_builder) Build ¶
func (b0 HttpRoute_Destination_builder) Build() *HttpRoute_Destination
type HttpRoute_FaultInjectionPolicy ¶
type HttpRoute_FaultInjectionPolicy struct {
// The specification for injecting delay to client requests.
Delay *HttpRoute_FaultInjectionPolicy_Delay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"`
// The specification for aborting to client requests.
Abort *HttpRoute_FaultInjectionPolicy_Abort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"`
// contains filtered or unexported fields
}
The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.
func (*HttpRoute_FaultInjectionPolicy) ClearAbort ¶
func (x *HttpRoute_FaultInjectionPolicy) ClearAbort()
func (*HttpRoute_FaultInjectionPolicy) ClearDelay ¶
func (x *HttpRoute_FaultInjectionPolicy) ClearDelay()
func (*HttpRoute_FaultInjectionPolicy) GetAbort ¶
func (x *HttpRoute_FaultInjectionPolicy) GetAbort() *HttpRoute_FaultInjectionPolicy_Abort
func (*HttpRoute_FaultInjectionPolicy) GetDelay ¶
func (x *HttpRoute_FaultInjectionPolicy) GetDelay() *HttpRoute_FaultInjectionPolicy_Delay
func (*HttpRoute_FaultInjectionPolicy) HasAbort ¶
func (x *HttpRoute_FaultInjectionPolicy) HasAbort() bool
func (*HttpRoute_FaultInjectionPolicy) HasDelay ¶
func (x *HttpRoute_FaultInjectionPolicy) HasDelay() bool
func (*HttpRoute_FaultInjectionPolicy) ProtoMessage ¶
func (*HttpRoute_FaultInjectionPolicy) ProtoMessage()
func (*HttpRoute_FaultInjectionPolicy) ProtoReflect ¶
func (x *HttpRoute_FaultInjectionPolicy) ProtoReflect() protoreflect.Message
func (*HttpRoute_FaultInjectionPolicy) Reset ¶
func (x *HttpRoute_FaultInjectionPolicy) Reset()
func (*HttpRoute_FaultInjectionPolicy) SetAbort ¶
func (x *HttpRoute_FaultInjectionPolicy) SetAbort(v *HttpRoute_FaultInjectionPolicy_Abort)
func (*HttpRoute_FaultInjectionPolicy) SetDelay ¶
func (x *HttpRoute_FaultInjectionPolicy) SetDelay(v *HttpRoute_FaultInjectionPolicy_Delay)
func (*HttpRoute_FaultInjectionPolicy) String ¶
func (x *HttpRoute_FaultInjectionPolicy) String() string
type HttpRoute_FaultInjectionPolicy_Abort ¶
type HttpRoute_FaultInjectionPolicy_Abort struct {
// The HTTP status code used to abort the request.
//
// The value must be between 200 and 599 inclusive.
HttpStatus int32 `protobuf:"varint,1,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"`
// The percentage of traffic which will be aborted.
//
// The value must be between [0, 100]
Percentage int32 `protobuf:"varint,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
// contains filtered or unexported fields
}
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
func (*HttpRoute_FaultInjectionPolicy_Abort) GetHttpStatus ¶
func (x *HttpRoute_FaultInjectionPolicy_Abort) GetHttpStatus() int32
func (*HttpRoute_FaultInjectionPolicy_Abort) GetPercentage ¶
func (x *HttpRoute_FaultInjectionPolicy_Abort) GetPercentage() int32
func (*HttpRoute_FaultInjectionPolicy_Abort) ProtoMessage ¶
func (*HttpRoute_FaultInjectionPolicy_Abort) ProtoMessage()
func (*HttpRoute_FaultInjectionPolicy_Abort) ProtoReflect ¶
func (x *HttpRoute_FaultInjectionPolicy_Abort) ProtoReflect() protoreflect.Message
func (*HttpRoute_FaultInjectionPolicy_Abort) Reset ¶
func (x *HttpRoute_FaultInjectionPolicy_Abort) Reset()
func (*HttpRoute_FaultInjectionPolicy_Abort) SetHttpStatus ¶
func (x *HttpRoute_FaultInjectionPolicy_Abort) SetHttpStatus(v int32)
func (*HttpRoute_FaultInjectionPolicy_Abort) SetPercentage ¶
func (x *HttpRoute_FaultInjectionPolicy_Abort) SetPercentage(v int32)
func (*HttpRoute_FaultInjectionPolicy_Abort) String ¶
func (x *HttpRoute_FaultInjectionPolicy_Abort) String() string
type HttpRoute_FaultInjectionPolicy_Abort_builder ¶
type HttpRoute_FaultInjectionPolicy_Abort_builder struct {
// The HTTP status code used to abort the request.
//
// The value must be between 200 and 599 inclusive.
HttpStatus int32
// The percentage of traffic which will be aborted.
//
// The value must be between [0, 100]
Percentage int32
// contains filtered or unexported fields
}
func (HttpRoute_FaultInjectionPolicy_Abort_builder) Build ¶
func (b0 HttpRoute_FaultInjectionPolicy_Abort_builder) Build() *HttpRoute_FaultInjectionPolicy_Abort
type HttpRoute_FaultInjectionPolicy_Delay ¶
type HttpRoute_FaultInjectionPolicy_Delay struct {
// Specify a fixed delay before forwarding the request.
FixedDelay *durationpb.Duration `protobuf:"bytes,1,opt,name=fixed_delay,json=fixedDelay,proto3" json:"fixed_delay,omitempty"`
// The percentage of traffic on which delay will be injected.
//
// The value must be between [0, 100]
Percentage int32 `protobuf:"varint,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
// contains filtered or unexported fields
}
Specification of how client requests are delayed as part of fault injection before being sent to a destination.
func (*HttpRoute_FaultInjectionPolicy_Delay) ClearFixedDelay ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) ClearFixedDelay()
func (*HttpRoute_FaultInjectionPolicy_Delay) GetFixedDelay ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) GetFixedDelay() *durationpb.Duration
func (*HttpRoute_FaultInjectionPolicy_Delay) GetPercentage ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) GetPercentage() int32
func (*HttpRoute_FaultInjectionPolicy_Delay) HasFixedDelay ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) HasFixedDelay() bool
func (*HttpRoute_FaultInjectionPolicy_Delay) ProtoMessage ¶
func (*HttpRoute_FaultInjectionPolicy_Delay) ProtoMessage()
func (*HttpRoute_FaultInjectionPolicy_Delay) ProtoReflect ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) ProtoReflect() protoreflect.Message
func (*HttpRoute_FaultInjectionPolicy_Delay) Reset ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) Reset()
func (*HttpRoute_FaultInjectionPolicy_Delay) SetFixedDelay ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) SetFixedDelay(v *durationpb.Duration)
func (*HttpRoute_FaultInjectionPolicy_Delay) SetPercentage ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) SetPercentage(v int32)
func (*HttpRoute_FaultInjectionPolicy_Delay) String ¶
func (x *HttpRoute_FaultInjectionPolicy_Delay) String() string
type HttpRoute_FaultInjectionPolicy_Delay_builder ¶
type HttpRoute_FaultInjectionPolicy_Delay_builder struct {
// Specify a fixed delay before forwarding the request.
FixedDelay *durationpb.Duration
// The percentage of traffic on which delay will be injected.
//
// The value must be between [0, 100]
Percentage int32
// contains filtered or unexported fields
}
func (HttpRoute_FaultInjectionPolicy_Delay_builder) Build ¶
func (b0 HttpRoute_FaultInjectionPolicy_Delay_builder) Build() *HttpRoute_FaultInjectionPolicy_Delay
type HttpRoute_FaultInjectionPolicy_builder ¶
type HttpRoute_FaultInjectionPolicy_builder struct {
// The specification for injecting delay to client requests.
Delay *HttpRoute_FaultInjectionPolicy_Delay
// The specification for aborting to client requests.
Abort *HttpRoute_FaultInjectionPolicy_Abort
// contains filtered or unexported fields
}
func (HttpRoute_FaultInjectionPolicy_builder) Build ¶
func (b0 HttpRoute_FaultInjectionPolicy_builder) Build() *HttpRoute_FaultInjectionPolicy
type HttpRoute_HeaderMatch ¶
type HttpRoute_HeaderMatch struct {
// Types that are valid to be assigned to MatchType:
//
// *HttpRoute_HeaderMatch_ExactMatch
// *HttpRoute_HeaderMatch_RegexMatch
// *HttpRoute_HeaderMatch_PrefixMatch
// *HttpRoute_HeaderMatch_PresentMatch
// *HttpRoute_HeaderMatch_SuffixMatch
// *HttpRoute_HeaderMatch_RangeMatch
MatchType isHttpRoute_HeaderMatch_MatchType `protobuf_oneof:"MatchType"`
// The name of the HTTP header to match against.
Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// If specified, the match result will be inverted before checking. Default
// value is set to false.
InvertMatch bool `protobuf:"varint,8,opt,name=invert_match,json=invertMatch,proto3" json:"invert_match,omitempty"`
// contains filtered or unexported fields
}
Specifies how to select a route rule based on HTTP request headers.
func (*HttpRoute_HeaderMatch) ClearExactMatch ¶
func (x *HttpRoute_HeaderMatch) ClearExactMatch()
func (*HttpRoute_HeaderMatch) ClearMatchType ¶
func (x *HttpRoute_HeaderMatch) ClearMatchType()
func (*HttpRoute_HeaderMatch) ClearPrefixMatch ¶
func (x *HttpRoute_HeaderMatch) ClearPrefixMatch()
func (*HttpRoute_HeaderMatch) ClearPresentMatch ¶
func (x *HttpRoute_HeaderMatch) ClearPresentMatch()
func (*HttpRoute_HeaderMatch) ClearRangeMatch ¶
func (x *HttpRoute_HeaderMatch) ClearRangeMatch()
func (*HttpRoute_HeaderMatch) ClearRegexMatch ¶
func (x *HttpRoute_HeaderMatch) ClearRegexMatch()
func (*HttpRoute_HeaderMatch) ClearSuffixMatch ¶
func (x *HttpRoute_HeaderMatch) ClearSuffixMatch()
func (*HttpRoute_HeaderMatch) GetExactMatch ¶
func (x *HttpRoute_HeaderMatch) GetExactMatch() string
func (*HttpRoute_HeaderMatch) GetHeader ¶
func (x *HttpRoute_HeaderMatch) GetHeader() string
func (*HttpRoute_HeaderMatch) GetInvertMatch ¶
func (x *HttpRoute_HeaderMatch) GetInvertMatch() bool
func (*HttpRoute_HeaderMatch) GetMatchType ¶
func (x *HttpRoute_HeaderMatch) GetMatchType() isHttpRoute_HeaderMatch_MatchType
func (*HttpRoute_HeaderMatch) GetPrefixMatch ¶
func (x *HttpRoute_HeaderMatch) GetPrefixMatch() string
func (*HttpRoute_HeaderMatch) GetPresentMatch ¶
func (x *HttpRoute_HeaderMatch) GetPresentMatch() bool
func (*HttpRoute_HeaderMatch) GetRangeMatch ¶
func (x *HttpRoute_HeaderMatch) GetRangeMatch() *HttpRoute_HeaderMatch_IntegerRange
func (*HttpRoute_HeaderMatch) GetRegexMatch ¶
func (x *HttpRoute_HeaderMatch) GetRegexMatch() string
func (*HttpRoute_HeaderMatch) GetSuffixMatch ¶
func (x *HttpRoute_HeaderMatch) GetSuffixMatch() string
func (*HttpRoute_HeaderMatch) HasExactMatch ¶
func (x *HttpRoute_HeaderMatch) HasExactMatch() bool
func (*HttpRoute_HeaderMatch) HasMatchType ¶
func (x *HttpRoute_HeaderMatch) HasMatchType() bool
func (*HttpRoute_HeaderMatch) HasPrefixMatch ¶
func (x *HttpRoute_HeaderMatch) HasPrefixMatch() bool
func (*HttpRoute_HeaderMatch) HasPresentMatch ¶
func (x *HttpRoute_HeaderMatch) HasPresentMatch() bool
func (*HttpRoute_HeaderMatch) HasRangeMatch ¶
func (x *HttpRoute_HeaderMatch) HasRangeMatch() bool
func (*HttpRoute_HeaderMatch) HasRegexMatch ¶
func (x *HttpRoute_HeaderMatch) HasRegexMatch() bool
func (*HttpRoute_HeaderMatch) HasSuffixMatch ¶
func (x *HttpRoute_HeaderMatch) HasSuffixMatch() bool
func (*HttpRoute_HeaderMatch) ProtoMessage ¶
func (*HttpRoute_HeaderMatch) ProtoMessage()
func (*HttpRoute_HeaderMatch) ProtoReflect ¶
func (x *HttpRoute_HeaderMatch) ProtoReflect() protoreflect.Message
func (*HttpRoute_HeaderMatch) Reset ¶
func (x *HttpRoute_HeaderMatch) Reset()
func (*HttpRoute_HeaderMatch) SetExactMatch ¶
func (x *HttpRoute_HeaderMatch) SetExactMatch(v string)
func (*HttpRoute_HeaderMatch) SetHeader ¶
func (x *HttpRoute_HeaderMatch) SetHeader(v string)
func (*HttpRoute_HeaderMatch) SetInvertMatch ¶
func (x *HttpRoute_HeaderMatch) SetInvertMatch(v bool)
func (*HttpRoute_HeaderMatch) SetPrefixMatch ¶
func (x *HttpRoute_HeaderMatch) SetPrefixMatch(v string)
func (*HttpRoute_HeaderMatch) SetPresentMatch ¶
func (x *HttpRoute_HeaderMatch) SetPresentMatch(v bool)
func (*HttpRoute_HeaderMatch) SetRangeMatch ¶
func (x *HttpRoute_HeaderMatch) SetRangeMatch(v *HttpRoute_HeaderMatch_IntegerRange)
func (*HttpRoute_HeaderMatch) SetRegexMatch ¶
func (x *HttpRoute_HeaderMatch) SetRegexMatch(v string)
func (*HttpRoute_HeaderMatch) SetSuffixMatch ¶
func (x *HttpRoute_HeaderMatch) SetSuffixMatch(v string)
func (*HttpRoute_HeaderMatch) String ¶
func (x *HttpRoute_HeaderMatch) String() string
func (*HttpRoute_HeaderMatch) WhichMatchType ¶
func (x *HttpRoute_HeaderMatch) WhichMatchType() case_HttpRoute_HeaderMatch_MatchType
type HttpRoute_HeaderMatch_ExactMatch ¶
type HttpRoute_HeaderMatch_ExactMatch struct {
// The value of the header should match exactly the content of
// exact_match.
ExactMatch string `protobuf:"bytes,2,opt,name=exact_match,json=exactMatch,proto3,oneof"`
}
type HttpRoute_HeaderMatch_IntegerRange ¶
type HttpRoute_HeaderMatch_IntegerRange struct {
// Start of the range (inclusive)
Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
// End of the range (exclusive)
End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}
Represents an integer value range.
func (*HttpRoute_HeaderMatch_IntegerRange) GetEnd ¶
func (x *HttpRoute_HeaderMatch_IntegerRange) GetEnd() int32
func (*HttpRoute_HeaderMatch_IntegerRange) GetStart ¶
func (x *HttpRoute_HeaderMatch_IntegerRange) GetStart() int32
func (*HttpRoute_HeaderMatch_IntegerRange) ProtoMessage ¶
func (*HttpRoute_HeaderMatch_IntegerRange) ProtoMessage()
func (*HttpRoute_HeaderMatch_IntegerRange) ProtoReflect ¶
func (x *HttpRoute_HeaderMatch_IntegerRange) ProtoReflect() protoreflect.Message
func (*HttpRoute_HeaderMatch_IntegerRange) Reset ¶
func (x *HttpRoute_HeaderMatch_IntegerRange) Reset()
func (*HttpRoute_HeaderMatch_IntegerRange) SetEnd ¶
func (x *HttpRoute_HeaderMatch_IntegerRange) SetEnd(v int32)
func (*HttpRoute_HeaderMatch_IntegerRange) SetStart ¶
func (x *HttpRoute_HeaderMatch_IntegerRange) SetStart(v int32)
func (*HttpRoute_HeaderMatch_IntegerRange) String ¶
func (x *HttpRoute_HeaderMatch_IntegerRange) String() string
type HttpRoute_HeaderMatch_IntegerRange_builder ¶
type HttpRoute_HeaderMatch_IntegerRange_builder struct {
// Start of the range (inclusive)
Start int32
// End of the range (exclusive)
End int32
// contains filtered or unexported fields
}
func (HttpRoute_HeaderMatch_IntegerRange_builder) Build ¶
func (b0 HttpRoute_HeaderMatch_IntegerRange_builder) Build() *HttpRoute_HeaderMatch_IntegerRange
type HttpRoute_HeaderMatch_PrefixMatch ¶
type HttpRoute_HeaderMatch_PrefixMatch struct {
// The value of the header must start with the contents of prefix_match.
PrefixMatch string `protobuf:"bytes,4,opt,name=prefix_match,json=prefixMatch,proto3,oneof"`
}
type HttpRoute_HeaderMatch_PresentMatch ¶
type HttpRoute_HeaderMatch_PresentMatch struct {
// A header with header_name must exist. The match takes place whether or
// not the header has a value.
PresentMatch bool `protobuf:"varint,5,opt,name=present_match,json=presentMatch,proto3,oneof"`
}
type HttpRoute_HeaderMatch_RangeMatch ¶
type HttpRoute_HeaderMatch_RangeMatch struct {
// If specified, the rule will match if the request header value is within
// the range.
RangeMatch *HttpRoute_HeaderMatch_IntegerRange `protobuf:"bytes,7,opt,name=range_match,json=rangeMatch,proto3,oneof"`
}
type HttpRoute_HeaderMatch_RegexMatch ¶
type HttpRoute_HeaderMatch_RegexMatch struct {
// The value of the header must match the regular expression specified in
// regex_match. For regular expression grammar, please see:
// https://github.com/google/re2/wiki/Syntax
RegexMatch string `protobuf:"bytes,3,opt,name=regex_match,json=regexMatch,proto3,oneof"`
}
type HttpRoute_HeaderMatch_SuffixMatch ¶
type HttpRoute_HeaderMatch_SuffixMatch struct {
// The value of the header must end with the contents of suffix_match.
SuffixMatch string `protobuf:"bytes,6,opt,name=suffix_match,json=suffixMatch,proto3,oneof"`
}
type HttpRoute_HeaderMatch_builder ¶
type HttpRoute_HeaderMatch_builder struct {
// Fields of oneof MatchType:
// The value of the header should match exactly the content of
// exact_match.
ExactMatch *string
// The value of the header must match the regular expression specified in
// regex_match. For regular expression grammar, please see:
// https://github.com/google/re2/wiki/Syntax
RegexMatch *string
// The value of the header must start with the contents of prefix_match.
PrefixMatch *string
// A header with header_name must exist. The match takes place whether or
// not the header has a value.
PresentMatch *bool
// The value of the header must end with the contents of suffix_match.
SuffixMatch *string
// If specified, the rule will match if the request header value is within
// the range.
RangeMatch *HttpRoute_HeaderMatch_IntegerRange
// -- end of MatchType
// The name of the HTTP header to match against.
Header string
// If specified, the match result will be inverted before checking. Default
// value is set to false.
InvertMatch bool
// contains filtered or unexported fields
}
func (HttpRoute_HeaderMatch_builder) Build ¶
func (b0 HttpRoute_HeaderMatch_builder) Build() *HttpRoute_HeaderMatch
type HttpRoute_HeaderModifier ¶
type HttpRoute_HeaderModifier struct {
// Completely overwrite/replace the headers with given map where key is the
// name of the header, value is the value of the header.
Set map[string]string `` /* 133-byte string literal not displayed */
// Add the headers with given map where key is the name of the header, value
// is the value of the header.
Add map[string]string `` /* 133-byte string literal not displayed */
// Remove headers (matching by header names) specified in the list.
Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
// contains filtered or unexported fields
}
The specification for modifying HTTP header in HTTP request and HTTP response.
func (*HttpRoute_HeaderModifier) GetAdd ¶
func (x *HttpRoute_HeaderModifier) GetAdd() map[string]string
func (*HttpRoute_HeaderModifier) GetRemove ¶
func (x *HttpRoute_HeaderModifier) GetRemove() []string
func (*HttpRoute_HeaderModifier) GetSet ¶
func (x *HttpRoute_HeaderModifier) GetSet() map[string]string
func (*HttpRoute_HeaderModifier) ProtoMessage ¶
func (*HttpRoute_HeaderModifier) ProtoMessage()
func (*HttpRoute_HeaderModifier) ProtoReflect ¶
func (x *HttpRoute_HeaderModifier) ProtoReflect() protoreflect.Message
func (*HttpRoute_HeaderModifier) Reset ¶
func (x *HttpRoute_HeaderModifier) Reset()
func (*HttpRoute_HeaderModifier) SetAdd ¶
func (x *HttpRoute_HeaderModifier) SetAdd(v map[string]string)
func (*HttpRoute_HeaderModifier) SetRemove ¶
func (x *HttpRoute_HeaderModifier) SetRemove(v []string)
func (*HttpRoute_HeaderModifier) SetSet ¶
func (x *HttpRoute_HeaderModifier) SetSet(v map[string]string)
func (*HttpRoute_HeaderModifier) String ¶
func (x *HttpRoute_HeaderModifier) String() string
type HttpRoute_HeaderModifier_builder ¶
type HttpRoute_HeaderModifier_builder struct {
// Completely overwrite/replace the headers with given map where key is the
// name of the header, value is the value of the header.
Set map[string]string
// Add the headers with given map where key is the name of the header, value
// is the value of the header.
Add map[string]string
// Remove headers (matching by header names) specified in the list.
Remove []string
// contains filtered or unexported fields
}
func (HttpRoute_HeaderModifier_builder) Build ¶
func (b0 HttpRoute_HeaderModifier_builder) Build() *HttpRoute_HeaderModifier
type HttpRoute_QueryParameterMatch ¶
type HttpRoute_QueryParameterMatch struct {
// Types that are valid to be assigned to MatchType:
//
// *HttpRoute_QueryParameterMatch_ExactMatch
// *HttpRoute_QueryParameterMatch_RegexMatch
// *HttpRoute_QueryParameterMatch_PresentMatch
MatchType isHttpRoute_QueryParameterMatch_MatchType `protobuf_oneof:"MatchType"`
// The name of the query parameter to match.
QueryParameter string `protobuf:"bytes,1,opt,name=query_parameter,json=queryParameter,proto3" json:"query_parameter,omitempty"`
// contains filtered or unexported fields
}
Specifications to match a query parameter in the request.
func (*HttpRoute_QueryParameterMatch) ClearExactMatch ¶
func (x *HttpRoute_QueryParameterMatch) ClearExactMatch()
func (*HttpRoute_QueryParameterMatch) ClearMatchType ¶
func (x *HttpRoute_QueryParameterMatch) ClearMatchType()
func (*HttpRoute_QueryParameterMatch) ClearPresentMatch ¶
func (x *HttpRoute_QueryParameterMatch) ClearPresentMatch()
func (*HttpRoute_QueryParameterMatch) ClearRegexMatch ¶
func (x *HttpRoute_QueryParameterMatch) ClearRegexMatch()
func (*HttpRoute_QueryParameterMatch) GetExactMatch ¶
func (x *HttpRoute_QueryParameterMatch) GetExactMatch() string
func (*HttpRoute_QueryParameterMatch) GetMatchType ¶
func (x *HttpRoute_QueryParameterMatch) GetMatchType() isHttpRoute_QueryParameterMatch_MatchType
func (*HttpRoute_QueryParameterMatch) GetPresentMatch ¶
func (x *HttpRoute_QueryParameterMatch) GetPresentMatch() bool
func (*HttpRoute_QueryParameterMatch) GetQueryParameter ¶
func (x *HttpRoute_QueryParameterMatch) GetQueryParameter() string
func (*HttpRoute_QueryParameterMatch) GetRegexMatch ¶
func (x *HttpRoute_QueryParameterMatch) GetRegexMatch() string
func (*HttpRoute_QueryParameterMatch) HasExactMatch ¶
func (x *HttpRoute_QueryParameterMatch) HasExactMatch() bool
func (*HttpRoute_QueryParameterMatch) HasMatchType ¶
func (x *HttpRoute_QueryParameterMatch) HasMatchType() bool
func (*HttpRoute_QueryParameterMatch) HasPresentMatch ¶
func (x *HttpRoute_QueryParameterMatch) HasPresentMatch() bool
func (*HttpRoute_QueryParameterMatch) HasRegexMatch ¶
func (x *HttpRoute_QueryParameterMatch) HasRegexMatch() bool
func (*HttpRoute_QueryParameterMatch) ProtoMessage ¶
func (*HttpRoute_QueryParameterMatch) ProtoMessage()
func (*HttpRoute_QueryParameterMatch) ProtoReflect ¶
func (x *HttpRoute_QueryParameterMatch) ProtoReflect() protoreflect.Message
func (*HttpRoute_QueryParameterMatch) Reset ¶
func (x *HttpRoute_QueryParameterMatch) Reset()
func (*HttpRoute_QueryParameterMatch) SetExactMatch ¶
func (x *HttpRoute_QueryParameterMatch) SetExactMatch(v string)
func (*HttpRoute_QueryParameterMatch) SetPresentMatch ¶
func (x *HttpRoute_QueryParameterMatch) SetPresentMatch(v bool)
func (*HttpRoute_QueryParameterMatch) SetQueryParameter ¶
func (x *HttpRoute_QueryParameterMatch) SetQueryParameter(v string)
func (*HttpRoute_QueryParameterMatch) SetRegexMatch ¶
func (x *HttpRoute_QueryParameterMatch) SetRegexMatch(v string)
func (*HttpRoute_QueryParameterMatch) String ¶
func (x *HttpRoute_QueryParameterMatch) String() string
func (*HttpRoute_QueryParameterMatch) WhichMatchType ¶
func (x *HttpRoute_QueryParameterMatch) WhichMatchType() case_HttpRoute_QueryParameterMatch_MatchType
type HttpRoute_QueryParameterMatch_ExactMatch ¶
type HttpRoute_QueryParameterMatch_ExactMatch struct {
// The value of the query parameter must exactly match the contents of
// exact_match.
//
// Only one of exact_match, regex_match, or present_match must be set.
ExactMatch string `protobuf:"bytes,2,opt,name=exact_match,json=exactMatch,proto3,oneof"`
}
type HttpRoute_QueryParameterMatch_PresentMatch ¶
type HttpRoute_QueryParameterMatch_PresentMatch struct {
// Specifies that the QueryParameterMatcher matches if request contains
// query parameter, irrespective of whether the parameter has a value or
// not.
//
// Only one of exact_match, regex_match, or present_match must be set.
PresentMatch bool `protobuf:"varint,4,opt,name=present_match,json=presentMatch,proto3,oneof"`
}
type HttpRoute_QueryParameterMatch_RegexMatch ¶
type HttpRoute_QueryParameterMatch_RegexMatch struct {
// The value of the query parameter must match the regular expression
// specified by regex_match. For regular expression grammar, please see
// https://github.com/google/re2/wiki/Syntax
//
// Only one of exact_match, regex_match, or present_match must be set.
RegexMatch string `protobuf:"bytes,3,opt,name=regex_match,json=regexMatch,proto3,oneof"`
}
type HttpRoute_QueryParameterMatch_builder ¶
type HttpRoute_QueryParameterMatch_builder struct {
// Fields of oneof MatchType:
// The value of the query parameter must exactly match the contents of
// exact_match.
//
// Only one of exact_match, regex_match, or present_match must be set.
ExactMatch *string
// The value of the query parameter must match the regular expression
// specified by regex_match. For regular expression grammar, please see
// https://github.com/google/re2/wiki/Syntax
//
// Only one of exact_match, regex_match, or present_match must be set.
RegexMatch *string
// Specifies that the QueryParameterMatcher matches if request contains
// query parameter, irrespective of whether the parameter has a value or
// not.
//
// Only one of exact_match, regex_match, or present_match must be set.
PresentMatch *bool
// -- end of MatchType
// The name of the query parameter to match.
QueryParameter string
// contains filtered or unexported fields
}
func (HttpRoute_QueryParameterMatch_builder) Build ¶
func (b0 HttpRoute_QueryParameterMatch_builder) Build() *HttpRoute_QueryParameterMatch
type HttpRoute_Redirect ¶
type HttpRoute_Redirect struct {
// The host that will be used in the redirect response instead of the one
// that was supplied in the request.
HostRedirect string `protobuf:"bytes,1,opt,name=host_redirect,json=hostRedirect,proto3" json:"host_redirect,omitempty"`
// The path that will be used in the redirect response instead of the one
// that was supplied in the request.
// path_redirect can not be supplied together with prefix_redirect. Supply
// one alone or neither. If neither is supplied, the path of the original
// request will be used for the redirect.
PathRedirect string `protobuf:"bytes,2,opt,name=path_redirect,json=pathRedirect,proto3" json:"path_redirect,omitempty"`
// Indicates that during redirection, the matched prefix (or path) should be
// swapped with this value. This option allows URLs be dynamically created
// based on the request.
PrefixRewrite string `protobuf:"bytes,3,opt,name=prefix_rewrite,json=prefixRewrite,proto3" json:"prefix_rewrite,omitempty"`
// The HTTP Status code to use for the redirect.
ResponseCode HttpRoute_Redirect_ResponseCode `` /* 174-byte string literal not displayed */
// If set to true, the URL scheme in the redirected request is set to https.
// If set to false, the URL scheme of the redirected request will remain the
// same as that of the request.
//
// The default is set to false.
HttpsRedirect bool `protobuf:"varint,5,opt,name=https_redirect,json=httpsRedirect,proto3" json:"https_redirect,omitempty"`
// if set to true, any accompanying query portion of the original URL is
// removed prior to redirecting the request. If set to false, the query
// portion of the original URL is retained.
//
// The default is set to false.
StripQuery bool `protobuf:"varint,6,opt,name=strip_query,json=stripQuery,proto3" json:"strip_query,omitempty"`
// The port that will be used in the redirected request instead of the one
// that was supplied in the request.
PortRedirect int32 `protobuf:"varint,7,opt,name=port_redirect,json=portRedirect,proto3" json:"port_redirect,omitempty"`
// contains filtered or unexported fields
}
The specification for redirecting traffic.
func (*HttpRoute_Redirect) GetHostRedirect ¶
func (x *HttpRoute_Redirect) GetHostRedirect() string
func (*HttpRoute_Redirect) GetHttpsRedirect ¶
func (x *HttpRoute_Redirect) GetHttpsRedirect() bool
func (*HttpRoute_Redirect) GetPathRedirect ¶
func (x *HttpRoute_Redirect) GetPathRedirect() string
func (*HttpRoute_Redirect) GetPortRedirect ¶
func (x *HttpRoute_Redirect) GetPortRedirect() int32
func (*HttpRoute_Redirect) GetPrefixRewrite ¶
func (x *HttpRoute_Redirect) GetPrefixRewrite() string
func (*HttpRoute_Redirect) GetResponseCode ¶
func (x *HttpRoute_Redirect) GetResponseCode() HttpRoute_Redirect_ResponseCode
func (*HttpRoute_Redirect) GetStripQuery ¶
func (x *HttpRoute_Redirect) GetStripQuery() bool
func (*HttpRoute_Redirect) ProtoMessage ¶
func (*HttpRoute_Redirect) ProtoMessage()
func (*HttpRoute_Redirect) ProtoReflect ¶
func (x *HttpRoute_Redirect) ProtoReflect() protoreflect.Message
func (*HttpRoute_Redirect) Reset ¶
func (x *HttpRoute_Redirect) Reset()
func (*HttpRoute_Redirect) SetHostRedirect ¶
func (x *HttpRoute_Redirect) SetHostRedirect(v string)
func (*HttpRoute_Redirect) SetHttpsRedirect ¶
func (x *HttpRoute_Redirect) SetHttpsRedirect(v bool)
func (*HttpRoute_Redirect) SetPathRedirect ¶
func (x *HttpRoute_Redirect) SetPathRedirect(v string)
func (*HttpRoute_Redirect) SetPortRedirect ¶
func (x *HttpRoute_Redirect) SetPortRedirect(v int32)
func (*HttpRoute_Redirect) SetPrefixRewrite ¶
func (x *HttpRoute_Redirect) SetPrefixRewrite(v string)
func (*HttpRoute_Redirect) SetResponseCode ¶
func (x *HttpRoute_Redirect) SetResponseCode(v HttpRoute_Redirect_ResponseCode)
func (*HttpRoute_Redirect) SetStripQuery ¶
func (x *HttpRoute_Redirect) SetStripQuery(v bool)
func (*HttpRoute_Redirect) String ¶
func (x *HttpRoute_Redirect) String() string
type HttpRoute_Redirect_ResponseCode ¶
type HttpRoute_Redirect_ResponseCode int32
Supported HTTP response code.
const ( // Default value HttpRoute_Redirect_RESPONSE_CODE_UNSPECIFIED HttpRoute_Redirect_ResponseCode = 0 // Corresponds to 301. HttpRoute_Redirect_MOVED_PERMANENTLY_DEFAULT HttpRoute_Redirect_ResponseCode = 1 // Corresponds to 302. HttpRoute_Redirect_FOUND HttpRoute_Redirect_ResponseCode = 2 // Corresponds to 303. HttpRoute_Redirect_SEE_OTHER HttpRoute_Redirect_ResponseCode = 3 // Corresponds to 307. In this case, the request method will be retained. HttpRoute_Redirect_TEMPORARY_REDIRECT HttpRoute_Redirect_ResponseCode = 4 // Corresponds to 308. In this case, the request method will be retained. HttpRoute_Redirect_PERMANENT_REDIRECT HttpRoute_Redirect_ResponseCode = 5 )
func (HttpRoute_Redirect_ResponseCode) Descriptor ¶
func (HttpRoute_Redirect_ResponseCode) Descriptor() protoreflect.EnumDescriptor
func (HttpRoute_Redirect_ResponseCode) Enum ¶
func (x HttpRoute_Redirect_ResponseCode) Enum() *HttpRoute_Redirect_ResponseCode
func (HttpRoute_Redirect_ResponseCode) Number ¶
func (x HttpRoute_Redirect_ResponseCode) Number() protoreflect.EnumNumber
func (HttpRoute_Redirect_ResponseCode) String ¶
func (x HttpRoute_Redirect_ResponseCode) String() string
func (HttpRoute_Redirect_ResponseCode) Type ¶
func (HttpRoute_Redirect_ResponseCode) Type() protoreflect.EnumType
type HttpRoute_Redirect_builder ¶
type HttpRoute_Redirect_builder struct {
// The host that will be used in the redirect response instead of the one
// that was supplied in the request.
HostRedirect string
// The path that will be used in the redirect response instead of the one
// that was supplied in the request.
// path_redirect can not be supplied together with prefix_redirect. Supply
// one alone or neither. If neither is supplied, the path of the original
// request will be used for the redirect.
PathRedirect string
// Indicates that during redirection, the matched prefix (or path) should be
// swapped with this value. This option allows URLs be dynamically created
// based on the request.
PrefixRewrite string
// The HTTP Status code to use for the redirect.
ResponseCode HttpRoute_Redirect_ResponseCode
// If set to true, the URL scheme in the redirected request is set to https.
// If set to false, the URL scheme of the redirected request will remain the
// same as that of the request.
//
// The default is set to false.
HttpsRedirect bool
// if set to true, any accompanying query portion of the original URL is
// removed prior to redirecting the request. If set to false, the query
// portion of the original URL is retained.
//
// The default is set to false.
StripQuery bool
// The port that will be used in the redirected request instead of the one
// that was supplied in the request.
PortRedirect int32
// contains filtered or unexported fields
}
func (HttpRoute_Redirect_builder) Build ¶
func (b0 HttpRoute_Redirect_builder) Build() *HttpRoute_Redirect
type HttpRoute_RequestMirrorPolicy ¶
type HttpRoute_RequestMirrorPolicy struct {
// The destination the requests will be mirrored to. The weight of the
// destination will be ignored.
Destination *HttpRoute_Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
// contains filtered or unexported fields
}
Specifies the policy on how requests are shadowed to a separate mirrored destination service. The proxy does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow.
func (*HttpRoute_RequestMirrorPolicy) ClearDestination ¶
func (x *HttpRoute_RequestMirrorPolicy) ClearDestination()
func (*HttpRoute_RequestMirrorPolicy) GetDestination ¶
func (x *HttpRoute_RequestMirrorPolicy) GetDestination() *HttpRoute_Destination
func (*HttpRoute_RequestMirrorPolicy) HasDestination ¶
func (x *HttpRoute_RequestMirrorPolicy) HasDestination() bool
func (*HttpRoute_RequestMirrorPolicy) ProtoMessage ¶
func (*HttpRoute_RequestMirrorPolicy) ProtoMessage()
func (*HttpRoute_RequestMirrorPolicy) ProtoReflect ¶
func (x *HttpRoute_RequestMirrorPolicy) ProtoReflect() protoreflect.Message
func (*HttpRoute_RequestMirrorPolicy) Reset ¶
func (x *HttpRoute_RequestMirrorPolicy) Reset()
func (*HttpRoute_RequestMirrorPolicy) SetDestination ¶
func (x *HttpRoute_RequestMirrorPolicy) SetDestination(v *HttpRoute_Destination)
func (*HttpRoute_RequestMirrorPolicy) String ¶
func (x *HttpRoute_RequestMirrorPolicy) String() string
type HttpRoute_RequestMirrorPolicy_builder ¶
type HttpRoute_RequestMirrorPolicy_builder struct {
// The destination the requests will be mirrored to. The weight of the
// destination will be ignored.
Destination *HttpRoute_Destination
// contains filtered or unexported fields
}
func (HttpRoute_RequestMirrorPolicy_builder) Build ¶
func (b0 HttpRoute_RequestMirrorPolicy_builder) Build() *HttpRoute_RequestMirrorPolicy
type HttpRoute_RetryPolicy ¶
type HttpRoute_RetryPolicy struct {
// Specifies one or more conditions when this retry policy applies. Valid
// values are:
//
// 5xx: Proxy will attempt a retry if the destination service responds
// with any 5xx response code, of if the destination service does not
// respond at all, example: disconnect, reset, read timeout, connection
// failure and refused streams.
//
// gateway-error: Similar to 5xx, but only applies to response codes 502,
// 503, 504.
//
// reset: Proxy will attempt a retry if the destination service does not
// respond at all (disconnect/reset/read timeout)
//
// connect-failure: Proxy will retry on failures connecting to destination
// for example due to connection timeouts.
//
// retriable-4xx: Proxy will retry fro retriable 4xx response codes.
// Currently the only retriable error supported is 409.
//
// refused-stream: Proxy will retry if the destination resets the stream
// with a REFUSED_STREAM error code. This reset type indicates that it
// is safe to retry.
RetryConditions []string `protobuf:"bytes,1,rep,name=retry_conditions,json=retryConditions,proto3" json:"retry_conditions,omitempty"`
// Specifies the allowed number of retries. This number must be > 0. If not
// specified, default to 1.
NumRetries int32 `protobuf:"varint,2,opt,name=num_retries,json=numRetries,proto3" json:"num_retries,omitempty"`
// Specifies a non-zero timeout per retry attempt.
PerTryTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
// contains filtered or unexported fields
}
The specifications for retries.
func (*HttpRoute_RetryPolicy) ClearPerTryTimeout ¶
func (x *HttpRoute_RetryPolicy) ClearPerTryTimeout()
func (*HttpRoute_RetryPolicy) GetNumRetries ¶
func (x *HttpRoute_RetryPolicy) GetNumRetries() int32
func (*HttpRoute_RetryPolicy) GetPerTryTimeout ¶
func (x *HttpRoute_RetryPolicy) GetPerTryTimeout() *durationpb.Duration
func (*HttpRoute_RetryPolicy) GetRetryConditions ¶
func (x *HttpRoute_RetryPolicy) GetRetryConditions() []string
func (*HttpRoute_RetryPolicy) HasPerTryTimeout ¶
func (x *HttpRoute_RetryPolicy) HasPerTryTimeout() bool
func (*HttpRoute_RetryPolicy) ProtoMessage ¶
func (*HttpRoute_RetryPolicy) ProtoMessage()
func (*HttpRoute_RetryPolicy) ProtoReflect ¶
func (x *HttpRoute_RetryPolicy) ProtoReflect() protoreflect.Message
func (*HttpRoute_RetryPolicy) Reset ¶
func (x *HttpRoute_RetryPolicy) Reset()
func (*HttpRoute_RetryPolicy) SetNumRetries ¶
func (x *HttpRoute_RetryPolicy) SetNumRetries(v int32)
func (*HttpRoute_RetryPolicy) SetPerTryTimeout ¶
func (x *HttpRoute_RetryPolicy) SetPerTryTimeout(v *durationpb.Duration)
func (*HttpRoute_RetryPolicy) SetRetryConditions ¶
func (x *HttpRoute_RetryPolicy) SetRetryConditions(v []string)
func (*HttpRoute_RetryPolicy) String ¶
func (x *HttpRoute_RetryPolicy) String() string
type HttpRoute_RetryPolicy_builder ¶
type HttpRoute_RetryPolicy_builder struct {
// Specifies one or more conditions when this retry policy applies. Valid
// values are:
//
// 5xx: Proxy will attempt a retry if the destination service responds
// with any 5xx response code, of if the destination service does not
// respond at all, example: disconnect, reset, read timeout, connection
// failure and refused streams.
//
// gateway-error: Similar to 5xx, but only applies to response codes 502,
// 503, 504.
//
// reset: Proxy will attempt a retry if the destination service does not
// respond at all (disconnect/reset/read timeout)
//
// connect-failure: Proxy will retry on failures connecting to destination
// for example due to connection timeouts.
//
// retriable-4xx: Proxy will retry fro retriable 4xx response codes.
// Currently the only retriable error supported is 409.
//
// refused-stream: Proxy will retry if the destination resets the stream
// with a REFUSED_STREAM error code. This reset type indicates that it
// is safe to retry.
RetryConditions []string
// Specifies the allowed number of retries. This number must be > 0. If not
// specified, default to 1.
NumRetries int32
// Specifies a non-zero timeout per retry attempt.
PerTryTimeout *durationpb.Duration
// contains filtered or unexported fields
}
func (HttpRoute_RetryPolicy_builder) Build ¶
func (b0 HttpRoute_RetryPolicy_builder) Build() *HttpRoute_RetryPolicy
type HttpRoute_RouteAction ¶
type HttpRoute_RouteAction struct {
// The destination to which traffic should be forwarded.
Destinations []*HttpRoute_Destination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"`
// If set, the request is directed as configured by this field.
Redirect *HttpRoute_Redirect `protobuf:"bytes,2,opt,name=redirect,proto3" json:"redirect,omitempty"`
// The specification for fault injection introduced into traffic to test the
// resiliency of clients to backend service failure. As part of fault
// injection, when clients send requests to a backend service, delays can be
// introduced on a percentage of requests before sending those requests to
// the backend service. Similarly requests from clients can be aborted for a
// percentage of requests.
//
// timeout and retry_policy will be ignored by clients that are configured
// with a fault_injection_policy
FaultInjectionPolicy *HttpRoute_FaultInjectionPolicy `protobuf:"bytes,4,opt,name=fault_injection_policy,json=faultInjectionPolicy,proto3" json:"fault_injection_policy,omitempty"`
// The specification for modifying the headers of a matching request prior
// to delivery of the request to the destination.
RequestHeaderModifier *HttpRoute_HeaderModifier `` /* 126-byte string literal not displayed */
// The specification for modifying the headers of a response prior to
// sending the response back to the client.
ResponseHeaderModifier *HttpRoute_HeaderModifier `` /* 129-byte string literal not displayed */
// The specification for rewrite URL before forwarding requests to the
// destination.
UrlRewrite *HttpRoute_URLRewrite `protobuf:"bytes,7,opt,name=url_rewrite,json=urlRewrite,proto3" json:"url_rewrite,omitempty"`
// Specifies the timeout for selected route. Timeout is computed from the
// time the request has been fully processed (i.e. end of stream) up until
// the response has been completely processed. Timeout includes all retries.
Timeout *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Specifies the retry policy associated with this route.
RetryPolicy *HttpRoute_RetryPolicy `protobuf:"bytes,9,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"`
// Specifies the policy on how requests intended for the routes destination
// are shadowed to a separate mirrored destination. Proxy will not wait for
// the shadow destination to respond before returning the response. Prior to
// sending traffic to the shadow service, the host/authority header is
// suffixed with -shadow.
RequestMirrorPolicy *HttpRoute_RequestMirrorPolicy `protobuf:"bytes,10,opt,name=request_mirror_policy,json=requestMirrorPolicy,proto3" json:"request_mirror_policy,omitempty"`
// The specification for allowing client side cross-origin requests.
CorsPolicy *HttpRoute_CorsPolicy `protobuf:"bytes,11,opt,name=cors_policy,json=corsPolicy,proto3" json:"cors_policy,omitempty"`
// contains filtered or unexported fields
}
The specifications for routing traffic and applying associated policies.
func (*HttpRoute_RouteAction) ClearCorsPolicy ¶
func (x *HttpRoute_RouteAction) ClearCorsPolicy()
func (*HttpRoute_RouteAction) ClearFaultInjectionPolicy ¶
func (x *HttpRoute_RouteAction) ClearFaultInjectionPolicy()
func (*HttpRoute_RouteAction) ClearRedirect ¶
func (x *HttpRoute_RouteAction) ClearRedirect()
func (*HttpRoute_RouteAction) ClearRequestHeaderModifier ¶
func (x *HttpRoute_RouteAction) ClearRequestHeaderModifier()
func (*HttpRoute_RouteAction) ClearRequestMirrorPolicy ¶
func (x *HttpRoute_RouteAction) ClearRequestMirrorPolicy()
func (*HttpRoute_RouteAction) ClearResponseHeaderModifier ¶
func (x *HttpRoute_RouteAction) ClearResponseHeaderModifier()
func (*HttpRoute_RouteAction) ClearRetryPolicy ¶
func (x *HttpRoute_RouteAction) ClearRetryPolicy()
func (*HttpRoute_RouteAction) ClearTimeout ¶
func (x *HttpRoute_RouteAction) ClearTimeout()
func (*HttpRoute_RouteAction) ClearUrlRewrite ¶
func (x *HttpRoute_RouteAction) ClearUrlRewrite()
func (*HttpRoute_RouteAction) GetCorsPolicy ¶
func (x *HttpRoute_RouteAction) GetCorsPolicy() *HttpRoute_CorsPolicy
func (*HttpRoute_RouteAction) GetDestinations ¶
func (x *HttpRoute_RouteAction) GetDestinations() []*HttpRoute_Destination
func (*HttpRoute_RouteAction) GetFaultInjectionPolicy ¶
func (x *HttpRoute_RouteAction) GetFaultInjectionPolicy() *HttpRoute_FaultInjectionPolicy
func (*HttpRoute_RouteAction) GetRedirect ¶
func (x *HttpRoute_RouteAction) GetRedirect() *HttpRoute_Redirect
func (*HttpRoute_RouteAction) GetRequestHeaderModifier ¶
func (x *HttpRoute_RouteAction) GetRequestHeaderModifier() *HttpRoute_HeaderModifier
func (*HttpRoute_RouteAction) GetRequestMirrorPolicy ¶
func (x *HttpRoute_RouteAction) GetRequestMirrorPolicy() *HttpRoute_RequestMirrorPolicy
func (*HttpRoute_RouteAction) GetResponseHeaderModifier ¶
func (x *HttpRoute_RouteAction) GetResponseHeaderModifier() *HttpRoute_HeaderModifier
func (*HttpRoute_RouteAction) GetRetryPolicy ¶
func (x *HttpRoute_RouteAction) GetRetryPolicy() *HttpRoute_RetryPolicy
func (*HttpRoute_RouteAction) GetTimeout ¶
func (x *HttpRoute_RouteAction) GetTimeout() *durationpb.Duration
func (*HttpRoute_RouteAction) GetUrlRewrite ¶
func (x *HttpRoute_RouteAction) GetUrlRewrite() *HttpRoute_URLRewrite
func (*HttpRoute_RouteAction) HasCorsPolicy ¶
func (x *HttpRoute_RouteAction) HasCorsPolicy() bool
func (*HttpRoute_RouteAction) HasFaultInjectionPolicy ¶
func (x *HttpRoute_RouteAction) HasFaultInjectionPolicy() bool
func (*HttpRoute_RouteAction) HasRedirect ¶
func (x *HttpRoute_RouteAction) HasRedirect() bool
func (*HttpRoute_RouteAction) HasRequestHeaderModifier ¶
func (x *HttpRoute_RouteAction) HasRequestHeaderModifier() bool
func (*HttpRoute_RouteAction) HasRequestMirrorPolicy ¶
func (x *HttpRoute_RouteAction) HasRequestMirrorPolicy() bool
func (*HttpRoute_RouteAction) HasResponseHeaderModifier ¶
func (x *HttpRoute_RouteAction) HasResponseHeaderModifier() bool
func (*HttpRoute_RouteAction) HasRetryPolicy ¶
func (x *HttpRoute_RouteAction) HasRetryPolicy() bool
func (*HttpRoute_RouteAction) HasTimeout ¶
func (x *HttpRoute_RouteAction) HasTimeout() bool
func (*HttpRoute_RouteAction) HasUrlRewrite ¶
func (x *HttpRoute_RouteAction) HasUrlRewrite() bool
func (*HttpRoute_RouteAction) ProtoMessage ¶
func (*HttpRoute_RouteAction) ProtoMessage()
func (*HttpRoute_RouteAction) ProtoReflect ¶
func (x *HttpRoute_RouteAction) ProtoReflect() protoreflect.Message
func (*HttpRoute_RouteAction) Reset ¶
func (x *HttpRoute_RouteAction) Reset()
func (*HttpRoute_RouteAction) SetCorsPolicy ¶
func (x *HttpRoute_RouteAction) SetCorsPolicy(v *HttpRoute_CorsPolicy)
func (*HttpRoute_RouteAction) SetDestinations ¶
func (x *HttpRoute_RouteAction) SetDestinations(v []*HttpRoute_Destination)
func (*HttpRoute_RouteAction) SetFaultInjectionPolicy ¶
func (x *HttpRoute_RouteAction) SetFaultInjectionPolicy(v *HttpRoute_FaultInjectionPolicy)
func (*HttpRoute_RouteAction) SetRedirect ¶
func (x *HttpRoute_RouteAction) SetRedirect(v *HttpRoute_Redirect)
func (*HttpRoute_RouteAction) SetRequestHeaderModifier ¶
func (x *HttpRoute_RouteAction) SetRequestHeaderModifier(v *HttpRoute_HeaderModifier)
func (*HttpRoute_RouteAction) SetRequestMirrorPolicy ¶
func (x *HttpRoute_RouteAction) SetRequestMirrorPolicy(v *HttpRoute_RequestMirrorPolicy)
func (*HttpRoute_RouteAction) SetResponseHeaderModifier ¶
func (x *HttpRoute_RouteAction) SetResponseHeaderModifier(v *HttpRoute_HeaderModifier)
func (*HttpRoute_RouteAction) SetRetryPolicy ¶
func (x *HttpRoute_RouteAction) SetRetryPolicy(v *HttpRoute_RetryPolicy)
func (*HttpRoute_RouteAction) SetTimeout ¶
func (x *HttpRoute_RouteAction) SetTimeout(v *durationpb.Duration)
func (*HttpRoute_RouteAction) SetUrlRewrite ¶
func (x *HttpRoute_RouteAction) SetUrlRewrite(v *HttpRoute_URLRewrite)
func (*HttpRoute_RouteAction) String ¶
func (x *HttpRoute_RouteAction) String() string
type HttpRoute_RouteAction_builder ¶
type HttpRoute_RouteAction_builder struct {
// The destination to which traffic should be forwarded.
Destinations []*HttpRoute_Destination
// If set, the request is directed as configured by this field.
Redirect *HttpRoute_Redirect
// The specification for fault injection introduced into traffic to test the
// resiliency of clients to backend service failure. As part of fault
// injection, when clients send requests to a backend service, delays can be
// introduced on a percentage of requests before sending those requests to
// the backend service. Similarly requests from clients can be aborted for a
// percentage of requests.
//
// timeout and retry_policy will be ignored by clients that are configured
// with a fault_injection_policy
FaultInjectionPolicy *HttpRoute_FaultInjectionPolicy
// The specification for modifying the headers of a matching request prior
// to delivery of the request to the destination.
RequestHeaderModifier *HttpRoute_HeaderModifier
// The specification for modifying the headers of a response prior to
// sending the response back to the client.
ResponseHeaderModifier *HttpRoute_HeaderModifier
// The specification for rewrite URL before forwarding requests to the
// destination.
UrlRewrite *HttpRoute_URLRewrite
// Specifies the timeout for selected route. Timeout is computed from the
// time the request has been fully processed (i.e. end of stream) up until
// the response has been completely processed. Timeout includes all retries.
Timeout *durationpb.Duration
// Specifies the retry policy associated with this route.
RetryPolicy *HttpRoute_RetryPolicy
// Specifies the policy on how requests intended for the routes destination
// are shadowed to a separate mirrored destination. Proxy will not wait for
// the shadow destination to respond before returning the response. Prior to
// sending traffic to the shadow service, the host/authority header is
// suffixed with -shadow.
RequestMirrorPolicy *HttpRoute_RequestMirrorPolicy
// The specification for allowing client side cross-origin requests.
CorsPolicy *HttpRoute_CorsPolicy
// contains filtered or unexported fields
}
func (HttpRoute_RouteAction_builder) Build ¶
func (b0 HttpRoute_RouteAction_builder) Build() *HttpRoute_RouteAction
type HttpRoute_RouteMatch ¶
type HttpRoute_RouteMatch struct {
// Types that are valid to be assigned to PathMatch:
//
// *HttpRoute_RouteMatch_FullPathMatch
// *HttpRoute_RouteMatch_PrefixMatch
// *HttpRoute_RouteMatch_RegexMatch
PathMatch isHttpRoute_RouteMatch_PathMatch `protobuf_oneof:"PathMatch"`
// Specifies if prefix_match and full_path_match matches are case sensitive.
// The default value is false.
IgnoreCase bool `protobuf:"varint,4,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"`
// Specifies a list of HTTP request headers to match against. ALL of the
// supplied headers must be matched.
Headers []*HttpRoute_HeaderMatch `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"`
// Specifies a list of query parameters to match against. ALL of the query
// parameters must be matched.
QueryParameters []*HttpRoute_QueryParameterMatch `protobuf:"bytes,6,rep,name=query_parameters,json=queryParameters,proto3" json:"query_parameters,omitempty"`
// contains filtered or unexported fields
}
RouteMatch defines specifications used to match requests. If multiple match types are set, this RouteMatch will match if ALL type of matches are matched.
func (*HttpRoute_RouteMatch) ClearFullPathMatch ¶
func (x *HttpRoute_RouteMatch) ClearFullPathMatch()
func (*HttpRoute_RouteMatch) ClearPathMatch ¶
func (x *HttpRoute_RouteMatch) ClearPathMatch()
func (*HttpRoute_RouteMatch) ClearPrefixMatch ¶
func (x *HttpRoute_RouteMatch) ClearPrefixMatch()
func (*HttpRoute_RouteMatch) ClearRegexMatch ¶
func (x *HttpRoute_RouteMatch) ClearRegexMatch()
func (*HttpRoute_RouteMatch) GetFullPathMatch ¶
func (x *HttpRoute_RouteMatch) GetFullPathMatch() string
func (*HttpRoute_RouteMatch) GetHeaders ¶
func (x *HttpRoute_RouteMatch) GetHeaders() []*HttpRoute_HeaderMatch
func (*HttpRoute_RouteMatch) GetIgnoreCase ¶
func (x *HttpRoute_RouteMatch) GetIgnoreCase() bool
func (*HttpRoute_RouteMatch) GetPathMatch ¶
func (x *HttpRoute_RouteMatch) GetPathMatch() isHttpRoute_RouteMatch_PathMatch
func (*HttpRoute_RouteMatch) GetPrefixMatch ¶
func (x *HttpRoute_RouteMatch) GetPrefixMatch() string
func (*HttpRoute_RouteMatch) GetQueryParameters ¶
func (x *HttpRoute_RouteMatch) GetQueryParameters() []*HttpRoute_QueryParameterMatch
func (*HttpRoute_RouteMatch) GetRegexMatch ¶
func (x *HttpRoute_RouteMatch) GetRegexMatch() string
func (*HttpRoute_RouteMatch) HasFullPathMatch ¶
func (x *HttpRoute_RouteMatch) HasFullPathMatch() bool
func (*HttpRoute_RouteMatch) HasPathMatch ¶
func (x *HttpRoute_RouteMatch) HasPathMatch() bool
func (*HttpRoute_RouteMatch) HasPrefixMatch ¶
func (x *HttpRoute_RouteMatch) HasPrefixMatch() bool
func (*HttpRoute_RouteMatch) HasRegexMatch ¶
func (x *HttpRoute_RouteMatch) HasRegexMatch() bool
func (*HttpRoute_RouteMatch) ProtoMessage ¶
func (*HttpRoute_RouteMatch) ProtoMessage()
func (*HttpRoute_RouteMatch) ProtoReflect ¶
func (x *HttpRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (*HttpRoute_RouteMatch) Reset ¶
func (x *HttpRoute_RouteMatch) Reset()
func (*HttpRoute_RouteMatch) SetFullPathMatch ¶
func (x *HttpRoute_RouteMatch) SetFullPathMatch(v string)
func (*HttpRoute_RouteMatch) SetHeaders ¶
func (x *HttpRoute_RouteMatch) SetHeaders(v []*HttpRoute_HeaderMatch)
func (*HttpRoute_RouteMatch) SetIgnoreCase ¶
func (x *HttpRoute_RouteMatch) SetIgnoreCase(v bool)
func (*HttpRoute_RouteMatch) SetPrefixMatch ¶
func (x *HttpRoute_RouteMatch) SetPrefixMatch(v string)
func (*HttpRoute_RouteMatch) SetQueryParameters ¶
func (x *HttpRoute_RouteMatch) SetQueryParameters(v []*HttpRoute_QueryParameterMatch)
func (*HttpRoute_RouteMatch) SetRegexMatch ¶
func (x *HttpRoute_RouteMatch) SetRegexMatch(v string)
func (*HttpRoute_RouteMatch) String ¶
func (x *HttpRoute_RouteMatch) String() string
func (*HttpRoute_RouteMatch) WhichPathMatch ¶
func (x *HttpRoute_RouteMatch) WhichPathMatch() case_HttpRoute_RouteMatch_PathMatch
type HttpRoute_RouteMatch_FullPathMatch ¶
type HttpRoute_RouteMatch_FullPathMatch struct {
// The HTTP request path value should exactly match this value.
//
// Only one of full_path_match, prefix_match, or regex_match should be
// used.
FullPathMatch string `protobuf:"bytes,1,opt,name=full_path_match,json=fullPathMatch,proto3,oneof"`
}
type HttpRoute_RouteMatch_PrefixMatch ¶
type HttpRoute_RouteMatch_PrefixMatch struct {
// The HTTP request path value must begin with specified prefix_match.
// prefix_match must begin with a /.
//
// Only one of full_path_match, prefix_match, or regex_match should be
// used.
PrefixMatch string `protobuf:"bytes,2,opt,name=prefix_match,json=prefixMatch,proto3,oneof"`
}
type HttpRoute_RouteMatch_RegexMatch ¶
type HttpRoute_RouteMatch_RegexMatch struct {
// The HTTP request path value must satisfy the regular expression
// specified by regex_match after removing any query parameters and anchor
// supplied with the original URL. For regular expression grammar, please
// see https://github.com/google/re2/wiki/Syntax
//
// Only one of full_path_match, prefix_match, or regex_match should be
// used.
RegexMatch string `protobuf:"bytes,3,opt,name=regex_match,json=regexMatch,proto3,oneof"`
}
type HttpRoute_RouteMatch_builder ¶
type HttpRoute_RouteMatch_builder struct {
// Fields of oneof PathMatch:
// The HTTP request path value should exactly match this value.
//
// Only one of full_path_match, prefix_match, or regex_match should be
// used.
FullPathMatch *string
// The HTTP request path value must begin with specified prefix_match.
// prefix_match must begin with a /.
//
// Only one of full_path_match, prefix_match, or regex_match should be
// used.
PrefixMatch *string
// The HTTP request path value must satisfy the regular expression
// specified by regex_match after removing any query parameters and anchor
// supplied with the original URL. For regular expression grammar, please
// see https://github.com/google/re2/wiki/Syntax
//
// Only one of full_path_match, prefix_match, or regex_match should be
// used.
RegexMatch *string
// -- end of PathMatch
// Specifies if prefix_match and full_path_match matches are case sensitive.
// The default value is false.
IgnoreCase bool
// Specifies a list of HTTP request headers to match against. ALL of the
// supplied headers must be matched.
Headers []*HttpRoute_HeaderMatch
// Specifies a list of query parameters to match against. ALL of the query
// parameters must be matched.
QueryParameters []*HttpRoute_QueryParameterMatch
// contains filtered or unexported fields
}
func (HttpRoute_RouteMatch_builder) Build ¶
func (b0 HttpRoute_RouteMatch_builder) Build() *HttpRoute_RouteMatch
type HttpRoute_RouteRule ¶
type HttpRoute_RouteRule struct {
// A list of matches define conditions used for matching the rule against
// incoming HTTP requests. Each match is independent, i.e. this rule will be
// matched if ANY one of the matches is satisfied.
//
// If no matches field is specified, this rule will unconditionally match
// traffic.
//
// If a default rule is desired to be configured, add a rule with no matches
// specified to the end of the rules list.
Matches []*HttpRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
// The detailed rule defining how to route matched traffic.
Action *HttpRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
// contains filtered or unexported fields
}
Specifies how to match traffic and how to route traffic when traffic is matched.
func (*HttpRoute_RouteRule) ClearAction ¶
func (x *HttpRoute_RouteRule) ClearAction()
func (*HttpRoute_RouteRule) GetAction ¶
func (x *HttpRoute_RouteRule) GetAction() *HttpRoute_RouteAction
func (*HttpRoute_RouteRule) GetMatches ¶
func (x *HttpRoute_RouteRule) GetMatches() []*HttpRoute_RouteMatch
func (*HttpRoute_RouteRule) HasAction ¶
func (x *HttpRoute_RouteRule) HasAction() bool
func (*HttpRoute_RouteRule) ProtoMessage ¶
func (*HttpRoute_RouteRule) ProtoMessage()
func (*HttpRoute_RouteRule) ProtoReflect ¶
func (x *HttpRoute_RouteRule) ProtoReflect() protoreflect.Message
func (*HttpRoute_RouteRule) Reset ¶
func (x *HttpRoute_RouteRule) Reset()
func (*HttpRoute_RouteRule) SetAction ¶
func (x *HttpRoute_RouteRule) SetAction(v *HttpRoute_RouteAction)
func (*HttpRoute_RouteRule) SetMatches ¶
func (x *HttpRoute_RouteRule) SetMatches(v []*HttpRoute_RouteMatch)
func (*HttpRoute_RouteRule) String ¶
func (x *HttpRoute_RouteRule) String() string
type HttpRoute_RouteRule_builder ¶
type HttpRoute_RouteRule_builder struct {
// A list of matches define conditions used for matching the rule against
// incoming HTTP requests. Each match is independent, i.e. this rule will be
// matched if ANY one of the matches is satisfied.
//
// If no matches field is specified, this rule will unconditionally match
// traffic.
//
// If a default rule is desired to be configured, add a rule with no matches
// specified to the end of the rules list.
Matches []*HttpRoute_RouteMatch
// The detailed rule defining how to route matched traffic.
Action *HttpRoute_RouteAction
// contains filtered or unexported fields
}
func (HttpRoute_RouteRule_builder) Build ¶
func (b0 HttpRoute_RouteRule_builder) Build() *HttpRoute_RouteRule
type HttpRoute_URLRewrite ¶
type HttpRoute_URLRewrite struct {
// Prior to forwarding the request to the selected destination, the matching
// portion of the requests path is replaced by this value.
PathPrefixRewrite string `protobuf:"bytes,1,opt,name=path_prefix_rewrite,json=pathPrefixRewrite,proto3" json:"path_prefix_rewrite,omitempty"`
// Prior to forwarding the request to the selected destination, the requests
// host header is replaced by this value.
HostRewrite string `protobuf:"bytes,2,opt,name=host_rewrite,json=hostRewrite,proto3" json:"host_rewrite,omitempty"`
// contains filtered or unexported fields
}
The specification for modifying the URL of the request, prior to forwarding the request to the destination.
func (*HttpRoute_URLRewrite) GetHostRewrite ¶
func (x *HttpRoute_URLRewrite) GetHostRewrite() string
func (*HttpRoute_URLRewrite) GetPathPrefixRewrite ¶
func (x *HttpRoute_URLRewrite) GetPathPrefixRewrite() string
func (*HttpRoute_URLRewrite) ProtoMessage ¶
func (*HttpRoute_URLRewrite) ProtoMessage()
func (*HttpRoute_URLRewrite) ProtoReflect ¶
func (x *HttpRoute_URLRewrite) ProtoReflect() protoreflect.Message
func (*HttpRoute_URLRewrite) Reset ¶
func (x *HttpRoute_URLRewrite) Reset()
func (*HttpRoute_URLRewrite) SetHostRewrite ¶
func (x *HttpRoute_URLRewrite) SetHostRewrite(v string)
func (*HttpRoute_URLRewrite) SetPathPrefixRewrite ¶
func (x *HttpRoute_URLRewrite) SetPathPrefixRewrite(v string)
func (*HttpRoute_URLRewrite) String ¶
func (x *HttpRoute_URLRewrite) String() string
type HttpRoute_URLRewrite_builder ¶
type HttpRoute_URLRewrite_builder struct {
// Prior to forwarding the request to the selected destination, the matching
// portion of the requests path is replaced by this value.
PathPrefixRewrite string
// Prior to forwarding the request to the selected destination, the requests
// host header is replaced by this value.
HostRewrite string
// contains filtered or unexported fields
}
func (HttpRoute_URLRewrite_builder) Build ¶
func (b0 HttpRoute_URLRewrite_builder) Build() *HttpRoute_URLRewrite
type HttpRoute_builder ¶
type HttpRoute_builder struct {
// Required. Name of the HttpRoute resource. It matches pattern
// `projects/*/locations/global/httpRoutes/http_route_name>`.
Name string
// Output only. Server-defined URL of this resource
SelfLink string
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Required. Hostnames define a set of hosts that should match against the
// HTTP host header to select a HttpRoute to process the request. Hostname is
// the fully qualified domain name of a network host, as defined by RFC 1123
// with the exception that:
// - IPs are not allowed.
// - A hostname may be prefixed with a wildcard label (`*.`). The wildcard
// label must appear by itself as the first label.
//
// Hostname can be "precise" which is a domain name without the terminating
// dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a
// domain name prefixed with a single wildcard label (e.g. `*.example.com`).
//
// Note that as per RFC1035 and RFC1123, a label must consist of lower case
// alphanumeric characters or '-', and must start and end with an alphanumeric
// character. No other punctuation is allowed.
//
// The routes associated with a Mesh or Gateways must have unique hostnames.
// If you attempt to attach multiple routes with conflicting hostnames,
// the configuration will be rejected.
//
// For example, while it is acceptable for routes for the hostnames
// `*.foo.bar.com` and `*.bar.com` to be associated with the same Mesh (or
// Gateways under the same scope), it is not possible to associate two routes
// both with `*.bar.com` or both with `bar.com`.
Hostnames []string
// Optional. Meshes defines a list of meshes this HttpRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
//
// The attached Mesh should be of a type SIDECAR
Meshes []string
// Optional. Gateways defines a list of gateways this HttpRoute is attached
// to, as one of the routing rules to route the requests served by the
// gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string
// Optional. Set of label tags associated with the HttpRoute resource.
Labels map[string]string
// Required. Rules that define how traffic is routed and handled.
// Rules will be matched sequentially based on the RouteMatch specified for
// the rule.
Rules []*HttpRoute_RouteRule
// contains filtered or unexported fields
}
func (HttpRoute_builder) Build ¶
func (b0 HttpRoute_builder) Build() *HttpRoute
type Mesh ¶
type Mesh struct {
// Required. Name of the Mesh resource. It matches pattern
// `projects/*/locations/global/meshes/<mesh_name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server-defined URL of this resource
SelfLink string `protobuf:"bytes,9,opt,name=self_link,json=selfLink,proto3" json:"self_link,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 Mesh resource.
Labels map[string]string `` /* 139-byte string literal not displayed */
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy
// to listen on the specified port of localhost (127.0.0.1) address. The
// SIDECAR proxy will expect all traffic to be redirected to this port
// regardless of its actual ip:port destination. If unset, a port '15001' is
// used as the interception port. This is applicable only for sidecar proxy
// deployments.
InterceptionPort int32 `protobuf:"varint,8,opt,name=interception_port,json=interceptionPort,proto3" json:"interception_port,omitempty"`
// contains filtered or unexported fields
}
Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.
func (*Mesh) GetCreateTime ¶
func (x *Mesh) GetCreateTime() *timestamppb.Timestamp
func (*Mesh) GetUpdateTime ¶
func (x *Mesh) GetUpdateTime() *timestamppb.Timestamp
func (*Mesh) ProtoReflect ¶
func (x *Mesh) ProtoReflect() protoreflect.Message
func (*Mesh) SetCreateTime ¶
func (x *Mesh) SetCreateTime(v *timestamppb.Timestamp)
func (*Mesh) SetUpdateTime ¶
func (x *Mesh) SetUpdateTime(v *timestamppb.Timestamp)
type MeshCreatedEvent ¶
type MeshCreatedEvent struct {
// The data associated with the event.
Data *MeshEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a Mesh is created.
func (*MeshCreatedEvent) ClearData ¶
func (x *MeshCreatedEvent) ClearData()
func (*MeshCreatedEvent) GetData ¶
func (x *MeshCreatedEvent) GetData() *MeshEventData
func (*MeshCreatedEvent) HasData ¶
func (x *MeshCreatedEvent) HasData() bool
func (*MeshCreatedEvent) ProtoMessage ¶
func (*MeshCreatedEvent) ProtoMessage()
func (*MeshCreatedEvent) ProtoReflect ¶
func (x *MeshCreatedEvent) ProtoReflect() protoreflect.Message
func (*MeshCreatedEvent) Reset ¶
func (x *MeshCreatedEvent) Reset()
func (*MeshCreatedEvent) SetData ¶
func (x *MeshCreatedEvent) SetData(v *MeshEventData)
func (*MeshCreatedEvent) String ¶
func (x *MeshCreatedEvent) String() string
type MeshCreatedEvent_builder ¶
type MeshCreatedEvent_builder struct {
// The data associated with the event.
Data *MeshEventData
// contains filtered or unexported fields
}
func (MeshCreatedEvent_builder) Build ¶
func (b0 MeshCreatedEvent_builder) Build() *MeshCreatedEvent
type MeshDeletedEvent ¶
type MeshDeletedEvent struct {
// The data associated with the event.
Data *MeshEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a Mesh is deleted.
func (*MeshDeletedEvent) ClearData ¶
func (x *MeshDeletedEvent) ClearData()
func (*MeshDeletedEvent) GetData ¶
func (x *MeshDeletedEvent) GetData() *MeshEventData
func (*MeshDeletedEvent) HasData ¶
func (x *MeshDeletedEvent) HasData() bool
func (*MeshDeletedEvent) ProtoMessage ¶
func (*MeshDeletedEvent) ProtoMessage()
func (*MeshDeletedEvent) ProtoReflect ¶
func (x *MeshDeletedEvent) ProtoReflect() protoreflect.Message
func (*MeshDeletedEvent) Reset ¶
func (x *MeshDeletedEvent) Reset()
func (*MeshDeletedEvent) SetData ¶
func (x *MeshDeletedEvent) SetData(v *MeshEventData)
func (*MeshDeletedEvent) String ¶
func (x *MeshDeletedEvent) String() string
type MeshDeletedEvent_builder ¶
type MeshDeletedEvent_builder struct {
// The data associated with the event.
Data *MeshEventData
// contains filtered or unexported fields
}
func (MeshDeletedEvent_builder) Build ¶
func (b0 MeshDeletedEvent_builder) Build() *MeshDeletedEvent
type MeshEventData ¶
type MeshEventData struct {
// Optional. The Mesh event payload. Unset for deletion events.
Payload *Mesh `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all Mesh events.
func (*MeshEventData) ClearPayload ¶
func (x *MeshEventData) ClearPayload()
func (*MeshEventData) GetPayload ¶
func (x *MeshEventData) GetPayload() *Mesh
func (*MeshEventData) HasPayload ¶
func (x *MeshEventData) HasPayload() bool
func (*MeshEventData) ProtoMessage ¶
func (*MeshEventData) ProtoMessage()
func (*MeshEventData) ProtoReflect ¶
func (x *MeshEventData) ProtoReflect() protoreflect.Message
func (*MeshEventData) Reset ¶
func (x *MeshEventData) Reset()
func (*MeshEventData) SetPayload ¶
func (x *MeshEventData) SetPayload(v *Mesh)
func (*MeshEventData) String ¶
func (x *MeshEventData) String() string
type MeshEventData_builder ¶
type MeshEventData_builder struct {
// Optional. The Mesh event payload. Unset for deletion events.
Payload *Mesh
// contains filtered or unexported fields
}
func (MeshEventData_builder) Build ¶
func (b0 MeshEventData_builder) Build() *MeshEventData
type MeshUpdatedEvent ¶
type MeshUpdatedEvent struct {
// The data associated with the event.
Data *MeshEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a Mesh is updated.
func (*MeshUpdatedEvent) ClearData ¶
func (x *MeshUpdatedEvent) ClearData()
func (*MeshUpdatedEvent) GetData ¶
func (x *MeshUpdatedEvent) GetData() *MeshEventData
func (*MeshUpdatedEvent) HasData ¶
func (x *MeshUpdatedEvent) HasData() bool
func (*MeshUpdatedEvent) ProtoMessage ¶
func (*MeshUpdatedEvent) ProtoMessage()
func (*MeshUpdatedEvent) ProtoReflect ¶
func (x *MeshUpdatedEvent) ProtoReflect() protoreflect.Message
func (*MeshUpdatedEvent) Reset ¶
func (x *MeshUpdatedEvent) Reset()
func (*MeshUpdatedEvent) SetData ¶
func (x *MeshUpdatedEvent) SetData(v *MeshEventData)
func (*MeshUpdatedEvent) String ¶
func (x *MeshUpdatedEvent) String() string
type MeshUpdatedEvent_builder ¶
type MeshUpdatedEvent_builder struct {
// The data associated with the event.
Data *MeshEventData
// contains filtered or unexported fields
}
func (MeshUpdatedEvent_builder) Build ¶
func (b0 MeshUpdatedEvent_builder) Build() *MeshUpdatedEvent
type Mesh_builder ¶
type Mesh_builder struct {
// Required. Name of the Mesh resource. It matches pattern
// `projects/*/locations/global/meshes/<mesh_name>`.
Name string
// Output only. Server-defined URL of this resource
SelfLink string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Optional. Set of label tags associated with the Mesh resource.
Labels map[string]string
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy
// to listen on the specified port of localhost (127.0.0.1) address. The
// SIDECAR proxy will expect all traffic to be redirected to this port
// regardless of its actual ip:port destination. If unset, a port '15001' is
// used as the interception port. This is applicable only for sidecar proxy
// deployments.
InterceptionPort int32
// contains filtered or unexported fields
}
func (Mesh_builder) Build ¶
func (b0 Mesh_builder) Build() *Mesh
type ServiceBinding ¶
type ServiceBinding struct {
// Required. Name of the ServiceBinding resource. It matches pattern
// `projects/*/locations/global/serviceBindings/service_binding_name`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,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,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Required. The full Service Directory Service name of the format
// projects/*/locations/*/namespaces/*/services/*
Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
// Output only. The unique identifier of the Service Directory Service against
// which the Service Binding resource is validated. This is populated when the
// Service Binding resource is used in another resource (like Backend
// Service). This is of the UUID4 format.
ServiceId string `protobuf:"bytes,8,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
// Optional. Set of label tags associated with the ServiceBinding resource.
Labels map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
func (*ServiceBinding) ClearCreateTime ¶
func (x *ServiceBinding) ClearCreateTime()
func (*ServiceBinding) ClearUpdateTime ¶
func (x *ServiceBinding) ClearUpdateTime()
func (*ServiceBinding) GetCreateTime ¶
func (x *ServiceBinding) GetCreateTime() *timestamppb.Timestamp
func (*ServiceBinding) GetDescription ¶
func (x *ServiceBinding) GetDescription() string
func (*ServiceBinding) GetLabels ¶
func (x *ServiceBinding) GetLabels() map[string]string
func (*ServiceBinding) GetName ¶
func (x *ServiceBinding) GetName() string
func (*ServiceBinding) GetService ¶
func (x *ServiceBinding) GetService() string
func (*ServiceBinding) GetServiceId ¶
func (x *ServiceBinding) GetServiceId() string
func (*ServiceBinding) GetUpdateTime ¶
func (x *ServiceBinding) GetUpdateTime() *timestamppb.Timestamp
func (*ServiceBinding) HasCreateTime ¶
func (x *ServiceBinding) HasCreateTime() bool
func (*ServiceBinding) HasUpdateTime ¶
func (x *ServiceBinding) HasUpdateTime() bool
func (*ServiceBinding) ProtoMessage ¶
func (*ServiceBinding) ProtoMessage()
func (*ServiceBinding) ProtoReflect ¶
func (x *ServiceBinding) ProtoReflect() protoreflect.Message
func (*ServiceBinding) Reset ¶
func (x *ServiceBinding) Reset()
func (*ServiceBinding) SetCreateTime ¶
func (x *ServiceBinding) SetCreateTime(v *timestamppb.Timestamp)
func (*ServiceBinding) SetDescription ¶
func (x *ServiceBinding) SetDescription(v string)
func (*ServiceBinding) SetLabels ¶
func (x *ServiceBinding) SetLabels(v map[string]string)
func (*ServiceBinding) SetName ¶
func (x *ServiceBinding) SetName(v string)
func (*ServiceBinding) SetService ¶
func (x *ServiceBinding) SetService(v string)
func (*ServiceBinding) SetServiceId ¶
func (x *ServiceBinding) SetServiceId(v string)
func (*ServiceBinding) SetUpdateTime ¶
func (x *ServiceBinding) SetUpdateTime(v *timestamppb.Timestamp)
func (*ServiceBinding) String ¶
func (x *ServiceBinding) String() string
type ServiceBindingCreatedEvent ¶
type ServiceBindingCreatedEvent struct {
// The data associated with the event.
Data *ServiceBindingEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a ServiceBinding is created.
func (*ServiceBindingCreatedEvent) ClearData ¶
func (x *ServiceBindingCreatedEvent) ClearData()
func (*ServiceBindingCreatedEvent) GetData ¶
func (x *ServiceBindingCreatedEvent) GetData() *ServiceBindingEventData
func (*ServiceBindingCreatedEvent) HasData ¶
func (x *ServiceBindingCreatedEvent) HasData() bool
func (*ServiceBindingCreatedEvent) ProtoMessage ¶
func (*ServiceBindingCreatedEvent) ProtoMessage()
func (*ServiceBindingCreatedEvent) ProtoReflect ¶
func (x *ServiceBindingCreatedEvent) ProtoReflect() protoreflect.Message
func (*ServiceBindingCreatedEvent) Reset ¶
func (x *ServiceBindingCreatedEvent) Reset()
func (*ServiceBindingCreatedEvent) SetData ¶
func (x *ServiceBindingCreatedEvent) SetData(v *ServiceBindingEventData)
func (*ServiceBindingCreatedEvent) String ¶
func (x *ServiceBindingCreatedEvent) String() string
type ServiceBindingCreatedEvent_builder ¶
type ServiceBindingCreatedEvent_builder struct {
// The data associated with the event.
Data *ServiceBindingEventData
// contains filtered or unexported fields
}
func (ServiceBindingCreatedEvent_builder) Build ¶
func (b0 ServiceBindingCreatedEvent_builder) Build() *ServiceBindingCreatedEvent
type ServiceBindingDeletedEvent ¶
type ServiceBindingDeletedEvent struct {
// The data associated with the event.
Data *ServiceBindingEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a ServiceBinding is deleted.
func (*ServiceBindingDeletedEvent) ClearData ¶
func (x *ServiceBindingDeletedEvent) ClearData()
func (*ServiceBindingDeletedEvent) GetData ¶
func (x *ServiceBindingDeletedEvent) GetData() *ServiceBindingEventData
func (*ServiceBindingDeletedEvent) HasData ¶
func (x *ServiceBindingDeletedEvent) HasData() bool
func (*ServiceBindingDeletedEvent) ProtoMessage ¶
func (*ServiceBindingDeletedEvent) ProtoMessage()
func (*ServiceBindingDeletedEvent) ProtoReflect ¶
func (x *ServiceBindingDeletedEvent) ProtoReflect() protoreflect.Message
func (*ServiceBindingDeletedEvent) Reset ¶
func (x *ServiceBindingDeletedEvent) Reset()
func (*ServiceBindingDeletedEvent) SetData ¶
func (x *ServiceBindingDeletedEvent) SetData(v *ServiceBindingEventData)
func (*ServiceBindingDeletedEvent) String ¶
func (x *ServiceBindingDeletedEvent) String() string
type ServiceBindingDeletedEvent_builder ¶
type ServiceBindingDeletedEvent_builder struct {
// The data associated with the event.
Data *ServiceBindingEventData
// contains filtered or unexported fields
}
func (ServiceBindingDeletedEvent_builder) Build ¶
func (b0 ServiceBindingDeletedEvent_builder) Build() *ServiceBindingDeletedEvent
type ServiceBindingEventData ¶
type ServiceBindingEventData struct {
// Optional. The ServiceBinding event payload. Unset for deletion events.
Payload *ServiceBinding `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all ServiceBinding events.
func (*ServiceBindingEventData) ClearPayload ¶
func (x *ServiceBindingEventData) ClearPayload()
func (*ServiceBindingEventData) GetPayload ¶
func (x *ServiceBindingEventData) GetPayload() *ServiceBinding
func (*ServiceBindingEventData) HasPayload ¶
func (x *ServiceBindingEventData) HasPayload() bool
func (*ServiceBindingEventData) ProtoMessage ¶
func (*ServiceBindingEventData) ProtoMessage()
func (*ServiceBindingEventData) ProtoReflect ¶
func (x *ServiceBindingEventData) ProtoReflect() protoreflect.Message
func (*ServiceBindingEventData) Reset ¶
func (x *ServiceBindingEventData) Reset()
func (*ServiceBindingEventData) SetPayload ¶
func (x *ServiceBindingEventData) SetPayload(v *ServiceBinding)
func (*ServiceBindingEventData) String ¶
func (x *ServiceBindingEventData) String() string
type ServiceBindingEventData_builder ¶
type ServiceBindingEventData_builder struct {
// Optional. The ServiceBinding event payload. Unset for deletion events.
Payload *ServiceBinding
// contains filtered or unexported fields
}
func (ServiceBindingEventData_builder) Build ¶
func (b0 ServiceBindingEventData_builder) Build() *ServiceBindingEventData
type ServiceBinding_builder ¶
type ServiceBinding_builder struct {
// Required. Name of the ServiceBinding resource. It matches pattern
// `projects/*/locations/global/serviceBindings/service_binding_name`.
Name string
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Required. The full Service Directory Service name of the format
// projects/*/locations/*/namespaces/*/services/*
Service string
// Output only. The unique identifier of the Service Directory Service against
// which the Service Binding resource is validated. This is populated when the
// Service Binding resource is used in another resource (like Backend
// Service). This is of the UUID4 format.
ServiceId string
// Optional. Set of label tags associated with the ServiceBinding resource.
Labels map[string]string
// contains filtered or unexported fields
}
func (ServiceBinding_builder) Build ¶
func (b0 ServiceBinding_builder) Build() *ServiceBinding
type TcpRoute ¶
type TcpRoute struct {
// Required. Name of the TcpRoute resource. It matches pattern
// `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server-defined URL of this resource
SelfLink string `protobuf:"bytes,11,opt,name=self_link,json=selfLink,proto3" json:"self_link,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. A free-text description of the resource. Max length 1024
// characters.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Required. Rules that define how traffic is routed and handled. At least one
// RouteRule must be supplied. If there are multiple rules then the action
// taken will be the first rule to match.
Rules []*TcpRoute_RouteRule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"`
// Optional. Meshes defines a list of meshes this TcpRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
//
// The attached Mesh should be of a type SIDECAR
Meshes []string `protobuf:"bytes,8,rep,name=meshes,proto3" json:"meshes,omitempty"`
// Optional. Gateways defines a list of gateways this TcpRoute is attached to,
// as one of the routing rules to route the requests served by the gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string `protobuf:"bytes,9,rep,name=gateways,proto3" json:"gateways,omitempty"`
// Optional. Set of label tags associated with the TcpRoute resource.
Labels map[string]string `` /* 140-byte string literal not displayed */
// contains filtered or unexported fields
}
TcpRoute is the resource defining how TCP traffic should be routed by a Mesh/Gateway resource.
func (*TcpRoute) GetCreateTime ¶
func (x *TcpRoute) GetCreateTime() *timestamppb.Timestamp
func (*TcpRoute) GetRules ¶
func (x *TcpRoute) GetRules() []*TcpRoute_RouteRule
func (*TcpRoute) GetUpdateTime ¶
func (x *TcpRoute) GetUpdateTime() *timestamppb.Timestamp
func (*TcpRoute) ProtoReflect ¶
func (x *TcpRoute) ProtoReflect() protoreflect.Message
func (*TcpRoute) SetCreateTime ¶
func (x *TcpRoute) SetCreateTime(v *timestamppb.Timestamp)
func (*TcpRoute) SetRules ¶
func (x *TcpRoute) SetRules(v []*TcpRoute_RouteRule)
func (*TcpRoute) SetUpdateTime ¶
func (x *TcpRoute) SetUpdateTime(v *timestamppb.Timestamp)
type TcpRouteCreatedEvent ¶
type TcpRouteCreatedEvent struct {
// The data associated with the event.
Data *TcpRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a TcpRoute is created.
func (*TcpRouteCreatedEvent) ClearData ¶
func (x *TcpRouteCreatedEvent) ClearData()
func (*TcpRouteCreatedEvent) GetData ¶
func (x *TcpRouteCreatedEvent) GetData() *TcpRouteEventData
func (*TcpRouteCreatedEvent) HasData ¶
func (x *TcpRouteCreatedEvent) HasData() bool
func (*TcpRouteCreatedEvent) ProtoMessage ¶
func (*TcpRouteCreatedEvent) ProtoMessage()
func (*TcpRouteCreatedEvent) ProtoReflect ¶
func (x *TcpRouteCreatedEvent) ProtoReflect() protoreflect.Message
func (*TcpRouteCreatedEvent) Reset ¶
func (x *TcpRouteCreatedEvent) Reset()
func (*TcpRouteCreatedEvent) SetData ¶
func (x *TcpRouteCreatedEvent) SetData(v *TcpRouteEventData)
func (*TcpRouteCreatedEvent) String ¶
func (x *TcpRouteCreatedEvent) String() string
type TcpRouteCreatedEvent_builder ¶
type TcpRouteCreatedEvent_builder struct {
// The data associated with the event.
Data *TcpRouteEventData
// contains filtered or unexported fields
}
func (TcpRouteCreatedEvent_builder) Build ¶
func (b0 TcpRouteCreatedEvent_builder) Build() *TcpRouteCreatedEvent
type TcpRouteDeletedEvent ¶
type TcpRouteDeletedEvent struct {
// The data associated with the event.
Data *TcpRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a TcpRoute is deleted.
func (*TcpRouteDeletedEvent) ClearData ¶
func (x *TcpRouteDeletedEvent) ClearData()
func (*TcpRouteDeletedEvent) GetData ¶
func (x *TcpRouteDeletedEvent) GetData() *TcpRouteEventData
func (*TcpRouteDeletedEvent) HasData ¶
func (x *TcpRouteDeletedEvent) HasData() bool
func (*TcpRouteDeletedEvent) ProtoMessage ¶
func (*TcpRouteDeletedEvent) ProtoMessage()
func (*TcpRouteDeletedEvent) ProtoReflect ¶
func (x *TcpRouteDeletedEvent) ProtoReflect() protoreflect.Message
func (*TcpRouteDeletedEvent) Reset ¶
func (x *TcpRouteDeletedEvent) Reset()
func (*TcpRouteDeletedEvent) SetData ¶
func (x *TcpRouteDeletedEvent) SetData(v *TcpRouteEventData)
func (*TcpRouteDeletedEvent) String ¶
func (x *TcpRouteDeletedEvent) String() string
type TcpRouteDeletedEvent_builder ¶
type TcpRouteDeletedEvent_builder struct {
// The data associated with the event.
Data *TcpRouteEventData
// contains filtered or unexported fields
}
func (TcpRouteDeletedEvent_builder) Build ¶
func (b0 TcpRouteDeletedEvent_builder) Build() *TcpRouteDeletedEvent
type TcpRouteEventData ¶
type TcpRouteEventData struct {
// Optional. The TcpRoute event payload. Unset for deletion events.
Payload *TcpRoute `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all TcpRoute events.
func (*TcpRouteEventData) ClearPayload ¶
func (x *TcpRouteEventData) ClearPayload()
func (*TcpRouteEventData) GetPayload ¶
func (x *TcpRouteEventData) GetPayload() *TcpRoute
func (*TcpRouteEventData) HasPayload ¶
func (x *TcpRouteEventData) HasPayload() bool
func (*TcpRouteEventData) ProtoMessage ¶
func (*TcpRouteEventData) ProtoMessage()
func (*TcpRouteEventData) ProtoReflect ¶
func (x *TcpRouteEventData) ProtoReflect() protoreflect.Message
func (*TcpRouteEventData) Reset ¶
func (x *TcpRouteEventData) Reset()
func (*TcpRouteEventData) SetPayload ¶
func (x *TcpRouteEventData) SetPayload(v *TcpRoute)
func (*TcpRouteEventData) String ¶
func (x *TcpRouteEventData) String() string
type TcpRouteEventData_builder ¶
type TcpRouteEventData_builder struct {
// Optional. The TcpRoute event payload. Unset for deletion events.
Payload *TcpRoute
// contains filtered or unexported fields
}
func (TcpRouteEventData_builder) Build ¶
func (b0 TcpRouteEventData_builder) Build() *TcpRouteEventData
type TcpRouteUpdatedEvent ¶
type TcpRouteUpdatedEvent struct {
// The data associated with the event.
Data *TcpRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a TcpRoute is updated.
func (*TcpRouteUpdatedEvent) ClearData ¶
func (x *TcpRouteUpdatedEvent) ClearData()
func (*TcpRouteUpdatedEvent) GetData ¶
func (x *TcpRouteUpdatedEvent) GetData() *TcpRouteEventData
func (*TcpRouteUpdatedEvent) HasData ¶
func (x *TcpRouteUpdatedEvent) HasData() bool
func (*TcpRouteUpdatedEvent) ProtoMessage ¶
func (*TcpRouteUpdatedEvent) ProtoMessage()
func (*TcpRouteUpdatedEvent) ProtoReflect ¶
func (x *TcpRouteUpdatedEvent) ProtoReflect() protoreflect.Message
func (*TcpRouteUpdatedEvent) Reset ¶
func (x *TcpRouteUpdatedEvent) Reset()
func (*TcpRouteUpdatedEvent) SetData ¶
func (x *TcpRouteUpdatedEvent) SetData(v *TcpRouteEventData)
func (*TcpRouteUpdatedEvent) String ¶
func (x *TcpRouteUpdatedEvent) String() string
type TcpRouteUpdatedEvent_builder ¶
type TcpRouteUpdatedEvent_builder struct {
// The data associated with the event.
Data *TcpRouteEventData
// contains filtered or unexported fields
}
func (TcpRouteUpdatedEvent_builder) Build ¶
func (b0 TcpRouteUpdatedEvent_builder) Build() *TcpRouteUpdatedEvent
type TcpRoute_RouteAction ¶
type TcpRoute_RouteAction struct {
// Optional. The destination services to which traffic should be forwarded.
// At least one destination service is required. Only one of route
// destination or original destination can be set.
Destinations []*TcpRoute_RouteDestination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"`
// Optional. If true, Router will use the destination IP and port of the
// original connection as the destination of the request. Default is false.
// Only one of route destinations or original destination can be set.
OriginalDestination bool `protobuf:"varint,3,opt,name=original_destination,json=originalDestination,proto3" json:"original_destination,omitempty"`
// contains filtered or unexported fields
}
The specifications for routing traffic and applying associated policies.
func (*TcpRoute_RouteAction) GetDestinations ¶
func (x *TcpRoute_RouteAction) GetDestinations() []*TcpRoute_RouteDestination
func (*TcpRoute_RouteAction) GetOriginalDestination ¶
func (x *TcpRoute_RouteAction) GetOriginalDestination() bool
func (*TcpRoute_RouteAction) ProtoMessage ¶
func (*TcpRoute_RouteAction) ProtoMessage()
func (*TcpRoute_RouteAction) ProtoReflect ¶
func (x *TcpRoute_RouteAction) ProtoReflect() protoreflect.Message
func (*TcpRoute_RouteAction) Reset ¶
func (x *TcpRoute_RouteAction) Reset()
func (*TcpRoute_RouteAction) SetDestinations ¶
func (x *TcpRoute_RouteAction) SetDestinations(v []*TcpRoute_RouteDestination)
func (*TcpRoute_RouteAction) SetOriginalDestination ¶
func (x *TcpRoute_RouteAction) SetOriginalDestination(v bool)
func (*TcpRoute_RouteAction) String ¶
func (x *TcpRoute_RouteAction) String() string
type TcpRoute_RouteAction_builder ¶
type TcpRoute_RouteAction_builder struct {
// Optional. The destination services to which traffic should be forwarded.
// At least one destination service is required. Only one of route
// destination or original destination can be set.
Destinations []*TcpRoute_RouteDestination
// Optional. If true, Router will use the destination IP and port of the
// original connection as the destination of the request. Default is false.
// Only one of route destinations or original destination can be set.
OriginalDestination bool
// contains filtered or unexported fields
}
func (TcpRoute_RouteAction_builder) Build ¶
func (b0 TcpRoute_RouteAction_builder) Build() *TcpRoute_RouteAction
type TcpRoute_RouteDestination ¶
type TcpRoute_RouteDestination struct {
// Required. The URL of a BackendService to route traffic to.
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// Optional. Specifies the proportion of requests forwarded to the backend
// referenced by the serviceName field. This is computed as:
//
// weight/Sum(weights in this destination list).
//
// For non-zero values, there may be some epsilon from the exact proportion
// defined here depending on the precision an implementation supports.
//
// If only one serviceName is specified and it has a weight greater than 0,
// 100% of the traffic is forwarded to that backend.
//
// If weights are specified for any one service name, they need to be
// specified for all of them.
//
// If weights are unspecified for all services, then, traffic is distributed
// in equal proportions to all of them.
Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
Describe the destination for traffic to be routed to.
func (*TcpRoute_RouteDestination) GetServiceName ¶
func (x *TcpRoute_RouteDestination) GetServiceName() string
func (*TcpRoute_RouteDestination) GetWeight ¶
func (x *TcpRoute_RouteDestination) GetWeight() int32
func (*TcpRoute_RouteDestination) ProtoMessage ¶
func (*TcpRoute_RouteDestination) ProtoMessage()
func (*TcpRoute_RouteDestination) ProtoReflect ¶
func (x *TcpRoute_RouteDestination) ProtoReflect() protoreflect.Message
func (*TcpRoute_RouteDestination) Reset ¶
func (x *TcpRoute_RouteDestination) Reset()
func (*TcpRoute_RouteDestination) SetServiceName ¶
func (x *TcpRoute_RouteDestination) SetServiceName(v string)
func (*TcpRoute_RouteDestination) SetWeight ¶
func (x *TcpRoute_RouteDestination) SetWeight(v int32)
func (*TcpRoute_RouteDestination) String ¶
func (x *TcpRoute_RouteDestination) String() string
type TcpRoute_RouteDestination_builder ¶
type TcpRoute_RouteDestination_builder struct {
// Required. The URL of a BackendService to route traffic to.
ServiceName string
// Optional. Specifies the proportion of requests forwarded to the backend
// referenced by the serviceName field. This is computed as:
//
// weight/Sum(weights in this destination list).
//
// For non-zero values, there may be some epsilon from the exact proportion
// defined here depending on the precision an implementation supports.
//
// If only one serviceName is specified and it has a weight greater than 0,
// 100% of the traffic is forwarded to that backend.
//
// If weights are specified for any one service name, they need to be
// specified for all of them.
//
// If weights are unspecified for all services, then, traffic is distributed
// in equal proportions to all of them.
Weight int32
// contains filtered or unexported fields
}
func (TcpRoute_RouteDestination_builder) Build ¶
func (b0 TcpRoute_RouteDestination_builder) Build() *TcpRoute_RouteDestination
type TcpRoute_RouteMatch ¶
type TcpRoute_RouteMatch struct {
// Required. Must be specified in the CIDR range format. A CIDR range
// consists of an IP Address and a prefix length to construct the subnet
// mask. By default, the prefix length is 32 (i.e. matches a single IP
// address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
// matches against this exact IP address. "10.0.0.0/8" - matches against any
// IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
// - matches against any IP address'.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Required. Specifies the destination port to match against.
Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
// contains filtered or unexported fields
}
RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
func (*TcpRoute_RouteMatch) GetAddress ¶
func (x *TcpRoute_RouteMatch) GetAddress() string
func (*TcpRoute_RouteMatch) GetPort ¶
func (x *TcpRoute_RouteMatch) GetPort() string
func (*TcpRoute_RouteMatch) ProtoMessage ¶
func (*TcpRoute_RouteMatch) ProtoMessage()
func (*TcpRoute_RouteMatch) ProtoReflect ¶
func (x *TcpRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (*TcpRoute_RouteMatch) Reset ¶
func (x *TcpRoute_RouteMatch) Reset()
func (*TcpRoute_RouteMatch) SetAddress ¶
func (x *TcpRoute_RouteMatch) SetAddress(v string)
func (*TcpRoute_RouteMatch) SetPort ¶
func (x *TcpRoute_RouteMatch) SetPort(v string)
func (*TcpRoute_RouteMatch) String ¶
func (x *TcpRoute_RouteMatch) String() string
type TcpRoute_RouteMatch_builder ¶
type TcpRoute_RouteMatch_builder struct {
// Required. Must be specified in the CIDR range format. A CIDR range
// consists of an IP Address and a prefix length to construct the subnet
// mask. By default, the prefix length is 32 (i.e. matches a single IP
// address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
// matches against this exact IP address. "10.0.0.0/8" - matches against any
// IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
// - matches against any IP address'.
Address string
// Required. Specifies the destination port to match against.
Port string
// contains filtered or unexported fields
}
func (TcpRoute_RouteMatch_builder) Build ¶
func (b0 TcpRoute_RouteMatch_builder) Build() *TcpRoute_RouteMatch
type TcpRoute_RouteRule ¶
type TcpRoute_RouteRule struct {
// Optional. RouteMatch defines the predicate used to match requests to a
// given action. Multiple match types are "OR"ed for evaluation. If no
// routeMatch field is specified, this rule will unconditionally match
// traffic.
Matches []*TcpRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
// Required. The detailed rule defining how to route matched traffic.
Action *TcpRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
// contains filtered or unexported fields
}
Specifies how to match traffic and how to route traffic when traffic is matched.
func (*TcpRoute_RouteRule) ClearAction ¶
func (x *TcpRoute_RouteRule) ClearAction()
func (*TcpRoute_RouteRule) GetAction ¶
func (x *TcpRoute_RouteRule) GetAction() *TcpRoute_RouteAction
func (*TcpRoute_RouteRule) GetMatches ¶
func (x *TcpRoute_RouteRule) GetMatches() []*TcpRoute_RouteMatch
func (*TcpRoute_RouteRule) HasAction ¶
func (x *TcpRoute_RouteRule) HasAction() bool
func (*TcpRoute_RouteRule) ProtoMessage ¶
func (*TcpRoute_RouteRule) ProtoMessage()
func (*TcpRoute_RouteRule) ProtoReflect ¶
func (x *TcpRoute_RouteRule) ProtoReflect() protoreflect.Message
func (*TcpRoute_RouteRule) Reset ¶
func (x *TcpRoute_RouteRule) Reset()
func (*TcpRoute_RouteRule) SetAction ¶
func (x *TcpRoute_RouteRule) SetAction(v *TcpRoute_RouteAction)
func (*TcpRoute_RouteRule) SetMatches ¶
func (x *TcpRoute_RouteRule) SetMatches(v []*TcpRoute_RouteMatch)
func (*TcpRoute_RouteRule) String ¶
func (x *TcpRoute_RouteRule) String() string
type TcpRoute_RouteRule_builder ¶
type TcpRoute_RouteRule_builder struct {
// Optional. RouteMatch defines the predicate used to match requests to a
// given action. Multiple match types are "OR"ed for evaluation. If no
// routeMatch field is specified, this rule will unconditionally match
// traffic.
Matches []*TcpRoute_RouteMatch
// Required. The detailed rule defining how to route matched traffic.
Action *TcpRoute_RouteAction
// contains filtered or unexported fields
}
func (TcpRoute_RouteRule_builder) Build ¶
func (b0 TcpRoute_RouteRule_builder) Build() *TcpRoute_RouteRule
type TcpRoute_builder ¶
type TcpRoute_builder struct {
// Required. Name of the TcpRoute resource. It matches pattern
// `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
Name string
// Output only. Server-defined URL of this resource
SelfLink string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// Required. Rules that define how traffic is routed and handled. At least one
// RouteRule must be supplied. If there are multiple rules then the action
// taken will be the first rule to match.
Rules []*TcpRoute_RouteRule
// Optional. Meshes defines a list of meshes this TcpRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
//
// The attached Mesh should be of a type SIDECAR
Meshes []string
// Optional. Gateways defines a list of gateways this TcpRoute is attached to,
// as one of the routing rules to route the requests served by the gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string
// Optional. Set of label tags associated with the TcpRoute resource.
Labels map[string]string
// contains filtered or unexported fields
}
func (TcpRoute_builder) Build ¶
func (b0 TcpRoute_builder) Build() *TcpRoute
type TlsRoute ¶
type TlsRoute struct {
// Required. Name of the TlsRoute resource. It matches pattern
// `projects/*/locations/global/tlsRoutes/tls_route_name>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server-defined URL of this resource
SelfLink string `protobuf:"bytes,8,opt,name=self_link,json=selfLink,proto3" json:"self_link,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. A free-text description of the resource. Max length 1024
// characters.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Required. Rules that define how traffic is routed and handled. At least one
// RouteRule must be supplied. If there are multiple rules then the action
// taken will be the first rule to match.
Rules []*TlsRoute_RouteRule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"`
// Optional. Meshes defines a list of meshes this TlsRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
//
// The attached Mesh should be of a type SIDECAR
Meshes []string `protobuf:"bytes,6,rep,name=meshes,proto3" json:"meshes,omitempty"`
// Optional. Gateways defines a list of gateways this TlsRoute is attached to,
// as one of the routing rules to route the requests served by the gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string `protobuf:"bytes,7,rep,name=gateways,proto3" json:"gateways,omitempty"`
// contains filtered or unexported fields
}
TlsRoute defines how traffic should be routed based on SNI and other matching L3 attributes.
func (*TlsRoute) GetCreateTime ¶
func (x *TlsRoute) GetCreateTime() *timestamppb.Timestamp
func (*TlsRoute) GetRules ¶
func (x *TlsRoute) GetRules() []*TlsRoute_RouteRule
func (*TlsRoute) GetUpdateTime ¶
func (x *TlsRoute) GetUpdateTime() *timestamppb.Timestamp
func (*TlsRoute) ProtoReflect ¶
func (x *TlsRoute) ProtoReflect() protoreflect.Message
func (*TlsRoute) SetCreateTime ¶
func (x *TlsRoute) SetCreateTime(v *timestamppb.Timestamp)
func (*TlsRoute) SetRules ¶
func (x *TlsRoute) SetRules(v []*TlsRoute_RouteRule)
func (*TlsRoute) SetUpdateTime ¶
func (x *TlsRoute) SetUpdateTime(v *timestamppb.Timestamp)
type TlsRouteCreatedEvent ¶
type TlsRouteCreatedEvent struct {
// The data associated with the event.
Data *TlsRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a TlsRoute is created.
func (*TlsRouteCreatedEvent) ClearData ¶
func (x *TlsRouteCreatedEvent) ClearData()
func (*TlsRouteCreatedEvent) GetData ¶
func (x *TlsRouteCreatedEvent) GetData() *TlsRouteEventData
func (*TlsRouteCreatedEvent) HasData ¶
func (x *TlsRouteCreatedEvent) HasData() bool
func (*TlsRouteCreatedEvent) ProtoMessage ¶
func (*TlsRouteCreatedEvent) ProtoMessage()
func (*TlsRouteCreatedEvent) ProtoReflect ¶
func (x *TlsRouteCreatedEvent) ProtoReflect() protoreflect.Message
func (*TlsRouteCreatedEvent) Reset ¶
func (x *TlsRouteCreatedEvent) Reset()
func (*TlsRouteCreatedEvent) SetData ¶
func (x *TlsRouteCreatedEvent) SetData(v *TlsRouteEventData)
func (*TlsRouteCreatedEvent) String ¶
func (x *TlsRouteCreatedEvent) String() string
type TlsRouteCreatedEvent_builder ¶
type TlsRouteCreatedEvent_builder struct {
// The data associated with the event.
Data *TlsRouteEventData
// contains filtered or unexported fields
}
func (TlsRouteCreatedEvent_builder) Build ¶
func (b0 TlsRouteCreatedEvent_builder) Build() *TlsRouteCreatedEvent
type TlsRouteDeletedEvent ¶
type TlsRouteDeletedEvent struct {
// The data associated with the event.
Data *TlsRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a TlsRoute is deleted.
func (*TlsRouteDeletedEvent) ClearData ¶
func (x *TlsRouteDeletedEvent) ClearData()
func (*TlsRouteDeletedEvent) GetData ¶
func (x *TlsRouteDeletedEvent) GetData() *TlsRouteEventData
func (*TlsRouteDeletedEvent) HasData ¶
func (x *TlsRouteDeletedEvent) HasData() bool
func (*TlsRouteDeletedEvent) ProtoMessage ¶
func (*TlsRouteDeletedEvent) ProtoMessage()
func (*TlsRouteDeletedEvent) ProtoReflect ¶
func (x *TlsRouteDeletedEvent) ProtoReflect() protoreflect.Message
func (*TlsRouteDeletedEvent) Reset ¶
func (x *TlsRouteDeletedEvent) Reset()
func (*TlsRouteDeletedEvent) SetData ¶
func (x *TlsRouteDeletedEvent) SetData(v *TlsRouteEventData)
func (*TlsRouteDeletedEvent) String ¶
func (x *TlsRouteDeletedEvent) String() string
type TlsRouteDeletedEvent_builder ¶
type TlsRouteDeletedEvent_builder struct {
// The data associated with the event.
Data *TlsRouteEventData
// contains filtered or unexported fields
}
func (TlsRouteDeletedEvent_builder) Build ¶
func (b0 TlsRouteDeletedEvent_builder) Build() *TlsRouteDeletedEvent
type TlsRouteEventData ¶
type TlsRouteEventData struct {
// Optional. The TlsRoute event payload. Unset for deletion events.
Payload *TlsRoute `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
// contains filtered or unexported fields
}
The data within all TlsRoute events.
func (*TlsRouteEventData) ClearPayload ¶
func (x *TlsRouteEventData) ClearPayload()
func (*TlsRouteEventData) GetPayload ¶
func (x *TlsRouteEventData) GetPayload() *TlsRoute
func (*TlsRouteEventData) HasPayload ¶
func (x *TlsRouteEventData) HasPayload() bool
func (*TlsRouteEventData) ProtoMessage ¶
func (*TlsRouteEventData) ProtoMessage()
func (*TlsRouteEventData) ProtoReflect ¶
func (x *TlsRouteEventData) ProtoReflect() protoreflect.Message
func (*TlsRouteEventData) Reset ¶
func (x *TlsRouteEventData) Reset()
func (*TlsRouteEventData) SetPayload ¶
func (x *TlsRouteEventData) SetPayload(v *TlsRoute)
func (*TlsRouteEventData) String ¶
func (x *TlsRouteEventData) String() string
type TlsRouteEventData_builder ¶
type TlsRouteEventData_builder struct {
// Optional. The TlsRoute event payload. Unset for deletion events.
Payload *TlsRoute
// contains filtered or unexported fields
}
func (TlsRouteEventData_builder) Build ¶
func (b0 TlsRouteEventData_builder) Build() *TlsRouteEventData
type TlsRouteUpdatedEvent ¶
type TlsRouteUpdatedEvent struct {
// The data associated with the event.
Data *TlsRouteEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
The CloudEvent raised when a TlsRoute is updated.
func (*TlsRouteUpdatedEvent) ClearData ¶
func (x *TlsRouteUpdatedEvent) ClearData()
func (*TlsRouteUpdatedEvent) GetData ¶
func (x *TlsRouteUpdatedEvent) GetData() *TlsRouteEventData
func (*TlsRouteUpdatedEvent) HasData ¶
func (x *TlsRouteUpdatedEvent) HasData() bool
func (*TlsRouteUpdatedEvent) ProtoMessage ¶
func (*TlsRouteUpdatedEvent) ProtoMessage()
func (*TlsRouteUpdatedEvent) ProtoReflect ¶
func (x *TlsRouteUpdatedEvent) ProtoReflect() protoreflect.Message
func (*TlsRouteUpdatedEvent) Reset ¶
func (x *TlsRouteUpdatedEvent) Reset()
func (*TlsRouteUpdatedEvent) SetData ¶
func (x *TlsRouteUpdatedEvent) SetData(v *TlsRouteEventData)
func (*TlsRouteUpdatedEvent) String ¶
func (x *TlsRouteUpdatedEvent) String() string
type TlsRouteUpdatedEvent_builder ¶
type TlsRouteUpdatedEvent_builder struct {
// The data associated with the event.
Data *TlsRouteEventData
// contains filtered or unexported fields
}
func (TlsRouteUpdatedEvent_builder) Build ¶
func (b0 TlsRouteUpdatedEvent_builder) Build() *TlsRouteUpdatedEvent
type TlsRoute_RouteAction ¶
type TlsRoute_RouteAction struct {
// Required. The destination services to which traffic should be forwarded.
// At least one destination service is required.
Destinations []*TlsRoute_RouteDestination `protobuf:"bytes,1,rep,name=destinations,proto3" json:"destinations,omitempty"`
// contains filtered or unexported fields
}
The specifications for routing traffic and applying associated policies.
func (*TlsRoute_RouteAction) GetDestinations ¶
func (x *TlsRoute_RouteAction) GetDestinations() []*TlsRoute_RouteDestination
func (*TlsRoute_RouteAction) ProtoMessage ¶
func (*TlsRoute_RouteAction) ProtoMessage()
func (*TlsRoute_RouteAction) ProtoReflect ¶
func (x *TlsRoute_RouteAction) ProtoReflect() protoreflect.Message
func (*TlsRoute_RouteAction) Reset ¶
func (x *TlsRoute_RouteAction) Reset()
func (*TlsRoute_RouteAction) SetDestinations ¶
func (x *TlsRoute_RouteAction) SetDestinations(v []*TlsRoute_RouteDestination)
func (*TlsRoute_RouteAction) String ¶
func (x *TlsRoute_RouteAction) String() string
type TlsRoute_RouteAction_builder ¶
type TlsRoute_RouteAction_builder struct {
// Required. The destination services to which traffic should be forwarded.
// At least one destination service is required.
Destinations []*TlsRoute_RouteDestination
// contains filtered or unexported fields
}
func (TlsRoute_RouteAction_builder) Build ¶
func (b0 TlsRoute_RouteAction_builder) Build() *TlsRoute_RouteAction
type TlsRoute_RouteDestination ¶
type TlsRoute_RouteDestination struct {
// Required. The URL of a BackendService to route traffic to.
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
// Optional. Specifies the proportion of requests forwareded to the backend
// referenced by the service_name field. This is computed as:
//
// weight/Sum(weights in destinations)
//
// Weights in all destinations does not need to sum up to 100.
Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
Describe the destination for traffic to be routed to.
func (*TlsRoute_RouteDestination) GetServiceName ¶
func (x *TlsRoute_RouteDestination) GetServiceName() string
func (*TlsRoute_RouteDestination) GetWeight ¶
func (x *TlsRoute_RouteDestination) GetWeight() int32
func (*TlsRoute_RouteDestination) ProtoMessage ¶
func (*TlsRoute_RouteDestination) ProtoMessage()
func (*TlsRoute_RouteDestination) ProtoReflect ¶
func (x *TlsRoute_RouteDestination) ProtoReflect() protoreflect.Message
func (*TlsRoute_RouteDestination) Reset ¶
func (x *TlsRoute_RouteDestination) Reset()
func (*TlsRoute_RouteDestination) SetServiceName ¶
func (x *TlsRoute_RouteDestination) SetServiceName(v string)
func (*TlsRoute_RouteDestination) SetWeight ¶
func (x *TlsRoute_RouteDestination) SetWeight(v int32)
func (*TlsRoute_RouteDestination) String ¶
func (x *TlsRoute_RouteDestination) String() string
type TlsRoute_RouteDestination_builder ¶
type TlsRoute_RouteDestination_builder struct {
// Required. The URL of a BackendService to route traffic to.
ServiceName string
// Optional. Specifies the proportion of requests forwareded to the backend
// referenced by the service_name field. This is computed as:
//
// weight/Sum(weights in destinations)
//
// Weights in all destinations does not need to sum up to 100.
Weight int32
// contains filtered or unexported fields
}
func (TlsRoute_RouteDestination_builder) Build ¶
func (b0 TlsRoute_RouteDestination_builder) Build() *TlsRoute_RouteDestination
type TlsRoute_RouteMatch ¶
type TlsRoute_RouteMatch struct {
// Optional. SNI (server name indicator) to match against.
// SNI will be matched against all wildcard domains, i.e. `www.example.com`
// will be first matched against `www.example.com`, then `*.example.com`,
// then `*.com.`
// Partial wildcards are not supported, and values like *w.example.com are
// invalid.
// At least one of sni_host and alpn is required.
// Up to 5 sni hosts across all matches can be set.
SniHost []string `protobuf:"bytes,1,rep,name=sni_host,json=sniHost,proto3" json:"sni_host,omitempty"`
// Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
// Examples: "http/1.1", "h2".
// At least one of sni_host and alpn is required.
// Up to 5 alpns across all matches can be set.
Alpn []string `protobuf:"bytes,2,rep,name=alpn,proto3" json:"alpn,omitempty"`
// contains filtered or unexported fields
}
RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "AND"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
func (*TlsRoute_RouteMatch) GetAlpn ¶
func (x *TlsRoute_RouteMatch) GetAlpn() []string
func (*TlsRoute_RouteMatch) GetSniHost ¶
func (x *TlsRoute_RouteMatch) GetSniHost() []string
func (*TlsRoute_RouteMatch) ProtoMessage ¶
func (*TlsRoute_RouteMatch) ProtoMessage()
func (*TlsRoute_RouteMatch) ProtoReflect ¶
func (x *TlsRoute_RouteMatch) ProtoReflect() protoreflect.Message
func (*TlsRoute_RouteMatch) Reset ¶
func (x *TlsRoute_RouteMatch) Reset()
func (*TlsRoute_RouteMatch) SetAlpn ¶
func (x *TlsRoute_RouteMatch) SetAlpn(v []string)
func (*TlsRoute_RouteMatch) SetSniHost ¶
func (x *TlsRoute_RouteMatch) SetSniHost(v []string)
func (*TlsRoute_RouteMatch) String ¶
func (x *TlsRoute_RouteMatch) String() string
type TlsRoute_RouteMatch_builder ¶
type TlsRoute_RouteMatch_builder struct {
// Optional. SNI (server name indicator) to match against.
// SNI will be matched against all wildcard domains, i.e. `www.example.com`
// will be first matched against `www.example.com`, then `*.example.com`,
// then `*.com.`
// Partial wildcards are not supported, and values like *w.example.com are
// invalid.
// At least one of sni_host and alpn is required.
// Up to 5 sni hosts across all matches can be set.
SniHost []string
// Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
// Examples: "http/1.1", "h2".
// At least one of sni_host and alpn is required.
// Up to 5 alpns across all matches can be set.
Alpn []string
// contains filtered or unexported fields
}
func (TlsRoute_RouteMatch_builder) Build ¶
func (b0 TlsRoute_RouteMatch_builder) Build() *TlsRoute_RouteMatch
type TlsRoute_RouteRule ¶
type TlsRoute_RouteRule struct {
// Required. RouteMatch defines the predicate used to match requests to a
// given action. Multiple match types are "OR"ed for evaluation.
Matches []*TlsRoute_RouteMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
// Required. The detailed rule defining how to route matched traffic.
Action *TlsRoute_RouteAction `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
// contains filtered or unexported fields
}
Specifies how to match traffic and how to route traffic when traffic is matched.
func (*TlsRoute_RouteRule) ClearAction ¶
func (x *TlsRoute_RouteRule) ClearAction()
func (*TlsRoute_RouteRule) GetAction ¶
func (x *TlsRoute_RouteRule) GetAction() *TlsRoute_RouteAction
func (*TlsRoute_RouteRule) GetMatches ¶
func (x *TlsRoute_RouteRule) GetMatches() []*TlsRoute_RouteMatch
func (*TlsRoute_RouteRule) HasAction ¶
func (x *TlsRoute_RouteRule) HasAction() bool
func (*TlsRoute_RouteRule) ProtoMessage ¶
func (*TlsRoute_RouteRule) ProtoMessage()
func (*TlsRoute_RouteRule) ProtoReflect ¶
func (x *TlsRoute_RouteRule) ProtoReflect() protoreflect.Message
func (*TlsRoute_RouteRule) Reset ¶
func (x *TlsRoute_RouteRule) Reset()
func (*TlsRoute_RouteRule) SetAction ¶
func (x *TlsRoute_RouteRule) SetAction(v *TlsRoute_RouteAction)
func (*TlsRoute_RouteRule) SetMatches ¶
func (x *TlsRoute_RouteRule) SetMatches(v []*TlsRoute_RouteMatch)
func (*TlsRoute_RouteRule) String ¶
func (x *TlsRoute_RouteRule) String() string
type TlsRoute_RouteRule_builder ¶
type TlsRoute_RouteRule_builder struct {
// Required. RouteMatch defines the predicate used to match requests to a
// given action. Multiple match types are "OR"ed for evaluation.
Matches []*TlsRoute_RouteMatch
// Required. The detailed rule defining how to route matched traffic.
Action *TlsRoute_RouteAction
// contains filtered or unexported fields
}
func (TlsRoute_RouteRule_builder) Build ¶
func (b0 TlsRoute_RouteRule_builder) Build() *TlsRoute_RouteRule
type TlsRoute_builder ¶
type TlsRoute_builder struct {
// Required. Name of the TlsRoute resource. It matches pattern
// `projects/*/locations/global/tlsRoutes/tls_route_name>`.
Name string
// Output only. Server-defined URL of this resource
SelfLink string
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp
// Optional. A free-text description of the resource. Max length 1024
// characters.
Description string
// Required. Rules that define how traffic is routed and handled. At least one
// RouteRule must be supplied. If there are multiple rules then the action
// taken will be the first rule to match.
Rules []*TlsRoute_RouteRule
// Optional. Meshes defines a list of meshes this TlsRoute is attached to, as
// one of the routing rules to route the requests served by the mesh.
//
// Each mesh reference should match the pattern:
// `projects/*/locations/global/meshes/<mesh_name>`
//
// The attached Mesh should be of a type SIDECAR
Meshes []string
// Optional. Gateways defines a list of gateways this TlsRoute is attached to,
// as one of the routing rules to route the requests served by the gateway.
//
// Each gateway reference should match the pattern:
// `projects/*/locations/global/gateways/<gateway_name>`
Gateways []string
// contains filtered or unexported fields
}
func (TlsRoute_builder) Build ¶
func (b0 TlsRoute_builder) Build() *TlsRoute
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) 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) SetPorts ¶
func (x *TrafficPortSelector) SetPorts(v []string)
func (*TrafficPortSelector) String ¶
func (x *TrafficPortSelector) String() string
type TrafficPortSelector_builder ¶
type TrafficPortSelector_builder 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
// contains filtered or unexported fields
}
func (TrafficPortSelector_builder) Build ¶
func (b0 TrafficPortSelector_builder) Build() *TrafficPortSelector
Source Files
¶
- data.pb.go
- events.pb.go