v1beta1

package
v0.0.0-...-9d98e3d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSelector = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSelector   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	SelectorMarshaler   = &github_com_gogo_protobuf_jsonpb.Marshaler{}
	SelectorUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)

Functions

This section is empty.

Types

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 */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

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) DeepCopyInto

func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector)

DeepCopyInto supports using WorkloadSelector within kubernetes types, where deepcopy-gen is used.

func (*WorkloadSelector) Descriptor

func (*WorkloadSelector) Descriptor() ([]byte, []int)

func (*WorkloadSelector) GetMatchLabels

func (m *WorkloadSelector) GetMatchLabels() map[string]string

func (*WorkloadSelector) Marshal

func (m *WorkloadSelector) Marshal() (dAtA []byte, err error)

func (*WorkloadSelector) MarshalJSON

func (this *WorkloadSelector) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadSelector

func (*WorkloadSelector) MarshalTo

func (m *WorkloadSelector) MarshalTo(dAtA []byte) (int, error)

func (*WorkloadSelector) MarshalToSizedBuffer

func (m *WorkloadSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WorkloadSelector) ProtoMessage

func (*WorkloadSelector) ProtoMessage()

func (*WorkloadSelector) Reset

func (m *WorkloadSelector) Reset()

func (*WorkloadSelector) Size

func (m *WorkloadSelector) Size() (n int)

func (*WorkloadSelector) String

func (m *WorkloadSelector) String() string

func (*WorkloadSelector) Unmarshal

func (m *WorkloadSelector) Unmarshal(dAtA []byte) error

func (*WorkloadSelector) UnmarshalJSON

func (this *WorkloadSelector) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadSelector

func (*WorkloadSelector) XXX_DiscardUnknown

func (m *WorkloadSelector) XXX_DiscardUnknown()

func (*WorkloadSelector) XXX_Marshal

func (m *WorkloadSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WorkloadSelector) XXX_Merge

func (m *WorkloadSelector) XXX_Merge(src proto.Message)

func (*WorkloadSelector) XXX_Size

func (m *WorkloadSelector) XXX_Size() int

func (*WorkloadSelector) XXX_Unmarshal

func (m *WorkloadSelector) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL