Documentation
¶
Overview ¶
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Code generated by protoc-gen-jsonshim. DO NOT EDIT.
Index ¶
- Variables
- type PortSelector
- func (in *PortSelector) DeepCopy() *PortSelector
- func (in *PortSelector) DeepCopyInterface() interface{}
- func (in *PortSelector) DeepCopyInto(out *PortSelector)
- func (*PortSelector) Descriptor() ([]byte, []int)deprecated
- func (x *PortSelector) GetNumber() uint32
- func (this *PortSelector) MarshalJSON() ([]byte, error)
- func (*PortSelector) ProtoMessage()
- func (x *PortSelector) ProtoReflect() protoreflect.Message
- func (x *PortSelector) Reset()
- func (x *PortSelector) String() string
- func (this *PortSelector) UnmarshalJSON(b []byte) error
- type WorkloadMode
- func (WorkloadMode) Descriptor() protoreflect.EnumDescriptor
- func (x WorkloadMode) Enum() *WorkloadMode
- func (WorkloadMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x WorkloadMode) Number() protoreflect.EnumNumber
- func (x WorkloadMode) String() string
- func (WorkloadMode) Type() protoreflect.EnumType
- type WorkloadSelector
- func (in *WorkloadSelector) DeepCopy() *WorkloadSelector
- func (in *WorkloadSelector) DeepCopyInterface() interface{}
- func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector)
- func (*WorkloadSelector) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadSelector) GetMatchLabels() map[string]string
- func (this *WorkloadSelector) MarshalJSON() ([]byte, error)
- func (*WorkloadSelector) ProtoMessage()
- func (x *WorkloadSelector) ProtoReflect() protoreflect.Message
- func (x *WorkloadSelector) Reset()
- func (x *WorkloadSelector) String() string
- func (this *WorkloadSelector) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( WorkloadMode_name = map[int32]string{ 0: "UNDEFINED", 1: "CLIENT", 2: "SERVER", 3: "CLIENT_AND_SERVER", } WorkloadMode_value = map[string]int32{ "UNDEFINED": 0, "CLIENT": 1, "SERVER": 2, "CLIENT_AND_SERVER": 3, } )
Enum value maps for WorkloadMode.
var ( SelectorMarshaler = &jsonpb.Marshaler{} SelectorUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true} )
var File_type_v1beta1_selector_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PortSelector ¶
type PortSelector struct { // Port number Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
PortSelector is the criteria for specifying if a policy can be applied to a listener having a specific port.
func (*PortSelector) DeepCopy ¶
func (in *PortSelector) DeepCopy() *PortSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortSelector. Required by controller-gen.
func (*PortSelector) DeepCopyInterface ¶
func (in *PortSelector) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new PortSelector. Required by controller-gen.
func (*PortSelector) DeepCopyInto ¶
func (in *PortSelector) DeepCopyInto(out *PortSelector)
DeepCopyInto supports using PortSelector within kubernetes types, where deepcopy-gen is used.
func (*PortSelector) Descriptor
deprecated
func (*PortSelector) Descriptor() ([]byte, []int)
Deprecated: Use PortSelector.ProtoReflect.Descriptor instead.
func (*PortSelector) GetNumber ¶
func (x *PortSelector) GetNumber() uint32
func (*PortSelector) MarshalJSON ¶
func (this *PortSelector) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for PortSelector
func (*PortSelector) ProtoMessage ¶
func (*PortSelector) ProtoMessage()
func (*PortSelector) ProtoReflect ¶
func (x *PortSelector) ProtoReflect() protoreflect.Message
func (*PortSelector) Reset ¶
func (x *PortSelector) Reset()
func (*PortSelector) String ¶
func (x *PortSelector) String() string
func (*PortSelector) UnmarshalJSON ¶
func (this *PortSelector) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for PortSelector
type WorkloadMode ¶
type WorkloadMode int32
WorkloadMode allows selection of the role of the underlying workload in network traffic. A workload is considered as acting as a SERVER if it is the destination of the traffic (that is, traffic direction, from the perspective of the workload is *inbound*). If the workload is the source of the network traffic, it is considered to be in CLIENT mode (traffic is *outbound* from the workload).
const ( // Default value, which will be interpreted by its own usage. WorkloadMode_UNDEFINED WorkloadMode = 0 // Selects for scenarios when the workload is the // source of the network traffic. In addition, // if the workload is a gateway, selects this. WorkloadMode_CLIENT WorkloadMode = 1 // Selects for scenarios when the workload is the // destination of the network traffic. WorkloadMode_SERVER WorkloadMode = 2 // Selects for scenarios when the workload is either the // source or destination of the network traffic. WorkloadMode_CLIENT_AND_SERVER WorkloadMode = 3 )
func (WorkloadMode) Descriptor ¶
func (WorkloadMode) Descriptor() protoreflect.EnumDescriptor
func (WorkloadMode) Enum ¶
func (x WorkloadMode) Enum() *WorkloadMode
func (WorkloadMode) EnumDescriptor
deprecated
func (WorkloadMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use WorkloadMode.Descriptor instead.
func (WorkloadMode) Number ¶
func (x WorkloadMode) Number() protoreflect.EnumNumber
func (WorkloadMode) String ¶
func (x WorkloadMode) String() string
func (WorkloadMode) Type ¶
func (WorkloadMode) Type() protoreflect.EnumType
type WorkloadSelector ¶
type WorkloadSelector struct { // One or more labels that indicate a specific set of pods/VMs // on which a policy should be applied. The scope of label search is restricted to // the configuration namespace in which the resource is present. MatchLabels map[string]string `` /* 182-byte string literal not displayed */ // contains filtered or unexported fields }
WorkloadSelector specifies the criteria used to determine if a policy can be applied to a proxy. The matching criteria includes the metadata associated with a proxy, workload instance info such as labels attached to the pod/VM, or any other info that the proxy provides to Istio during the initial handshake. If multiple conditions are specified, all conditions need to match in order for the workload instance to be selected. Currently, only label based selection mechanism is supported.
func (*WorkloadSelector) DeepCopy ¶
func (in *WorkloadSelector) DeepCopy() *WorkloadSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.
func (*WorkloadSelector) DeepCopyInterface ¶
func (in *WorkloadSelector) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.
func (*WorkloadSelector) DeepCopyInto ¶
func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector)
DeepCopyInto supports using WorkloadSelector within kubernetes types, where deepcopy-gen is used.
func (*WorkloadSelector) Descriptor
deprecated
func (*WorkloadSelector) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadSelector.ProtoReflect.Descriptor instead.
func (*WorkloadSelector) GetMatchLabels ¶
func (x *WorkloadSelector) GetMatchLabels() map[string]string
func (*WorkloadSelector) MarshalJSON ¶
func (this *WorkloadSelector) MarshalJSON() ([]byte, error)
MarshalJSON is a custom marshaler for WorkloadSelector
func (*WorkloadSelector) ProtoMessage ¶
func (*WorkloadSelector) ProtoMessage()
func (*WorkloadSelector) ProtoReflect ¶
func (x *WorkloadSelector) ProtoReflect() protoreflect.Message
func (*WorkloadSelector) Reset ¶
func (x *WorkloadSelector) Reset()
func (*WorkloadSelector) String ¶
func (x *WorkloadSelector) String() string
func (*WorkloadSelector) UnmarshalJSON ¶
func (this *WorkloadSelector) UnmarshalJSON(b []byte) error
UnmarshalJSON is a custom unmarshaler for WorkloadSelector