v1

package
v1.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusCodeMatcher_Comparator_name = map[int32]string{
		0: "EQ",
		1: "GE",
		2: "LE",
	}
	StatusCodeMatcher_Comparator_value = map[string]int32{
		"EQ": 0,
		"GE": 1,
		"LE": 2,
	}
)

Enum value maps for StatusCodeMatcher_Comparator.

View Source
var (
	ApprovalState_name = map[int32]string{
		0: "PENDING",
		1: "ACCEPTED",
		2: "INVALID",
		3: "FAILED",
	}
	ApprovalState_value = map[string]int32{
		"PENDING":  0,
		"ACCEPTED": 1,
		"INVALID":  2,
		"FAILED":   3,
	}
)

Enum value maps for ApprovalState.

View Source
var File_github_com_solo_io_gloo_mesh_api_common_v1_request_matchers_proto protoreflect.FileDescriptor
View Source
var File_github_com_solo_io_gloo_mesh_api_common_v1_selectors_proto protoreflect.FileDescriptor
View Source
var File_github_com_solo_io_gloo_mesh_api_common_v1_validation_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ApprovalState

type ApprovalState int32

State of a Policy resource reflected in the status by Gloo Mesh while processing a resource.

const (
	// Resources are in a Pending state before they have been processed by Gloo Mesh.
	ApprovalState_PENDING ApprovalState = 0
	// Resources are in a Accepted state when they are valid and have been applied successfully to
	// the Gloo Mesh configuration.
	ApprovalState_ACCEPTED ApprovalState = 1
	// Resources are in an Invalid state when they contain incorrect configuration parameters,
	// such as missing required values or invalid resource references.
	// An invalid state can also result when a resource's configuration is valid
	// but conflicts with another resource which was accepted in an earlier point in time.
	ApprovalState_INVALID ApprovalState = 2
	// Resources are in a Failed state when they contain correct configuration parameters,
	// but the server encountered an error trying to synchronize the system to
	// the desired state.
	ApprovalState_FAILED ApprovalState = 3
)

func (ApprovalState) Descriptor

func (ApprovalState) Enum

func (x ApprovalState) Enum() *ApprovalState

func (ApprovalState) EnumDescriptor deprecated

func (ApprovalState) EnumDescriptor() ([]byte, []int)

Deprecated: Use ApprovalState.Descriptor instead.

func (ApprovalState) Number

func (ApprovalState) String

func (x ApprovalState) String() string

func (ApprovalState) Type

type DestinationSelector

type DestinationSelector struct {

	// Match Kubernetes Services by their labels, namespaces, and/or clusters.
	KubeServiceMatcher *DestinationSelector_KubeServiceMatcher `protobuf:"bytes,1,opt,name=kube_service_matcher,json=kubeServiceMatcher,proto3" json:"kube_service_matcher,omitempty"`
	// Match Kubernetes Services by direct reference.
	KubeServiceRefs *DestinationSelector_KubeServiceRefs `protobuf:"bytes,2,opt,name=kube_service_refs,json=kubeServiceRefs,proto3" json:"kube_service_refs,omitempty"`
	// contains filtered or unexported fields
}

Select Destinations using one or more platform-specific selectors.

func (*DestinationSelector) Descriptor deprecated

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

Deprecated: Use DestinationSelector.ProtoReflect.Descriptor instead.

func (*DestinationSelector) Equal

func (m *DestinationSelector) Equal(that interface{}) bool

Equal function

func (*DestinationSelector) GetKubeServiceMatcher

func (x *DestinationSelector) GetKubeServiceMatcher() *DestinationSelector_KubeServiceMatcher

func (*DestinationSelector) GetKubeServiceRefs

func (*DestinationSelector) ProtoMessage

func (*DestinationSelector) ProtoMessage()

func (*DestinationSelector) ProtoReflect

func (x *DestinationSelector) ProtoReflect() protoreflect.Message

func (*DestinationSelector) Reset

func (x *DestinationSelector) Reset()

func (*DestinationSelector) String

func (x *DestinationSelector) String() string

type DestinationSelector_KubeServiceMatcher

type DestinationSelector_KubeServiceMatcher struct {

	//
	//If specified, a match requires all labels to exist on a Kubernetes Service.
	//When used in a networking policy, omission matches any labels.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any label key and/or value.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	//
	//If specified, match Kubernetes Services if they exist in one of the specified namespaces.
	//When used in a networking policy, omission matches any namespace.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any namespace.
	Namespaces []string `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	//
	//If specified, match Kubernetes Services if they exist in one of the specified clusters.
	//When used in a networking policy, omission matches any cluster.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any cluster.
	Clusters []string `protobuf:"bytes,3,rep,name=clusters,proto3" json:"clusters,omitempty"`
	// contains filtered or unexported fields
}

Match Kubernetes Services by their labels, namespaces, and/or clusters.

func (*DestinationSelector_KubeServiceMatcher) Descriptor deprecated

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

Deprecated: Use DestinationSelector_KubeServiceMatcher.ProtoReflect.Descriptor instead.

func (*DestinationSelector_KubeServiceMatcher) Equal

func (m *DestinationSelector_KubeServiceMatcher) Equal(that interface{}) bool

Equal function

func (*DestinationSelector_KubeServiceMatcher) GetClusters

func (*DestinationSelector_KubeServiceMatcher) GetLabels

func (*DestinationSelector_KubeServiceMatcher) GetNamespaces

func (x *DestinationSelector_KubeServiceMatcher) GetNamespaces() []string

func (*DestinationSelector_KubeServiceMatcher) ProtoMessage

func (*DestinationSelector_KubeServiceMatcher) ProtoReflect

func (*DestinationSelector_KubeServiceMatcher) Reset

func (*DestinationSelector_KubeServiceMatcher) String

type DestinationSelector_KubeServiceRefs

type DestinationSelector_KubeServiceRefs struct {

	//
	//Match Kubernetes Services by direct reference.
	//When used in a networking policy, omission of any field (name, namespace, or clusterName) allows matching any value for that field.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any value for the given field.
	Services []*v1.ClusterObjectRef `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

Match Kubernetes Services by direct reference.

func (*DestinationSelector_KubeServiceRefs) Descriptor deprecated

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

Deprecated: Use DestinationSelector_KubeServiceRefs.ProtoReflect.Descriptor instead.

func (*DestinationSelector_KubeServiceRefs) Equal

func (m *DestinationSelector_KubeServiceRefs) Equal(that interface{}) bool

Equal function

func (*DestinationSelector_KubeServiceRefs) GetServices

func (*DestinationSelector_KubeServiceRefs) ProtoMessage

func (*DestinationSelector_KubeServiceRefs) ProtoMessage()

func (*DestinationSelector_KubeServiceRefs) ProtoReflect

func (*DestinationSelector_KubeServiceRefs) Reset

func (*DestinationSelector_KubeServiceRefs) String

type HeaderMatcher

type HeaderMatcher struct {

	// Specify the name of the header in the request.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Specify the value of the header. If the value is absent a request that
	// has the name header will match, regardless of the header’s value.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// Specify whether the header value should be treated as regex.
	Regex bool `protobuf:"varint,3,opt,name=regex,proto3" json:"regex,omitempty"`
	//
	//If set to true, the result of the match will be inverted. Defaults to false.
	//
	//Examples:
	//
	//- name=foo, invert_match=true: matches if no header named `foo` is present
	//- name=foo, value=bar, invert_match=true: matches if no header named `foo` with value `bar` is present
	//- name=foo, value=“\d{3}“, regex=true, invert_match=true: matches if no header named `foo` with a value consisting of three integers is present.
	InvertMatch bool `protobuf:"varint,4,opt,name=invert_match,json=invertMatch,proto3" json:"invert_match,omitempty"`
	// contains filtered or unexported fields
}

Describes a matcher against HTTP request headers.

func (*HeaderMatcher) Descriptor deprecated

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

Deprecated: Use HeaderMatcher.ProtoReflect.Descriptor instead.

func (*HeaderMatcher) GetInvertMatch

func (x *HeaderMatcher) GetInvertMatch() bool

func (*HeaderMatcher) GetName

func (x *HeaderMatcher) GetName() string

func (*HeaderMatcher) GetRegex

func (x *HeaderMatcher) GetRegex() bool

func (*HeaderMatcher) GetValue

func (x *HeaderMatcher) GetValue() string

func (*HeaderMatcher) ProtoMessage

func (*HeaderMatcher) ProtoMessage()

func (*HeaderMatcher) ProtoReflect

func (x *HeaderMatcher) ProtoReflect() protoreflect.Message

func (*HeaderMatcher) Reset

func (x *HeaderMatcher) Reset()

func (*HeaderMatcher) String

func (x *HeaderMatcher) String() string

type IdentitySelector

type IdentitySelector struct {

	// Match request identities based on the Kubernetes namespace and cluster.
	KubeIdentityMatcher *IdentitySelector_KubeIdentityMatcher `protobuf:"bytes,1,opt,name=kube_identity_matcher,json=kubeIdentityMatcher,proto3" json:"kube_identity_matcher,omitempty"`
	// Match request identities based on the Kubernetes service account of the request.
	KubeServiceAccountRefs *IdentitySelector_KubeServiceAccountRefs `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

Select Destination identities using one or more platform-specific selectors.

func (*IdentitySelector) Descriptor deprecated

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

Deprecated: Use IdentitySelector.ProtoReflect.Descriptor instead.

func (*IdentitySelector) Equal

func (m *IdentitySelector) Equal(that interface{}) bool

Equal function

func (*IdentitySelector) GetKubeIdentityMatcher

func (x *IdentitySelector) GetKubeIdentityMatcher() *IdentitySelector_KubeIdentityMatcher

func (*IdentitySelector) GetKubeServiceAccountRefs

func (x *IdentitySelector) GetKubeServiceAccountRefs() *IdentitySelector_KubeServiceAccountRefs

func (*IdentitySelector) ProtoMessage

func (*IdentitySelector) ProtoMessage()

func (*IdentitySelector) ProtoReflect

func (x *IdentitySelector) ProtoReflect() protoreflect.Message

func (*IdentitySelector) Reset

func (x *IdentitySelector) Reset()

func (*IdentitySelector) String

func (x *IdentitySelector) String() string

type IdentitySelector_KubeIdentityMatcher

type IdentitySelector_KubeIdentityMatcher struct {

	//
	//If specified, match a Kubernetes identity if it exists in one of the specified namespaces.
	//When used in a networking policy, omission matches any namespace.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any namespace.
	Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	//
	//If specified, match a Kubernetes identity if it exists in one of the specified clusters.
	//When used in a networking policy, omission matches any cluster.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any cluster.
	Clusters []string `protobuf:"bytes,2,rep,name=clusters,proto3" json:"clusters,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentitySelector_KubeIdentityMatcher) Descriptor deprecated

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

Deprecated: Use IdentitySelector_KubeIdentityMatcher.ProtoReflect.Descriptor instead.

func (*IdentitySelector_KubeIdentityMatcher) Equal

func (m *IdentitySelector_KubeIdentityMatcher) Equal(that interface{}) bool

Equal function

func (*IdentitySelector_KubeIdentityMatcher) GetClusters

func (x *IdentitySelector_KubeIdentityMatcher) GetClusters() []string

func (*IdentitySelector_KubeIdentityMatcher) GetNamespaces

func (x *IdentitySelector_KubeIdentityMatcher) GetNamespaces() []string

func (*IdentitySelector_KubeIdentityMatcher) ProtoMessage

func (*IdentitySelector_KubeIdentityMatcher) ProtoMessage()

func (*IdentitySelector_KubeIdentityMatcher) ProtoReflect

func (*IdentitySelector_KubeIdentityMatcher) Reset

func (*IdentitySelector_KubeIdentityMatcher) String

type IdentitySelector_KubeServiceAccountRefs

type IdentitySelector_KubeServiceAccountRefs struct {

	//
	//Match Kubernetes service accounts by direct reference.
	//When used in a networking policy, omission of any field (name, namespace, or clusterName) allows matching any value for that field.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any value for the given field.
	ServiceAccounts []*v1.ClusterObjectRef `protobuf:"bytes,1,rep,name=service_accounts,json=serviceAccounts,proto3" json:"service_accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*IdentitySelector_KubeServiceAccountRefs) Descriptor deprecated

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

Deprecated: Use IdentitySelector_KubeServiceAccountRefs.ProtoReflect.Descriptor instead.

func (*IdentitySelector_KubeServiceAccountRefs) Equal

func (m *IdentitySelector_KubeServiceAccountRefs) Equal(that interface{}) bool

Equal function

func (*IdentitySelector_KubeServiceAccountRefs) GetServiceAccounts

func (x *IdentitySelector_KubeServiceAccountRefs) GetServiceAccounts() []*v1.ClusterObjectRef

func (*IdentitySelector_KubeServiceAccountRefs) ProtoMessage

func (*IdentitySelector_KubeServiceAccountRefs) ProtoReflect

func (*IdentitySelector_KubeServiceAccountRefs) Reset

func (*IdentitySelector_KubeServiceAccountRefs) String

type StatusCodeMatcher

type StatusCodeMatcher struct {

	// The status code value to match against.
	Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// The comparison type used for matching.
	Comparator StatusCodeMatcher_Comparator `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes a matcher against HTTP response status codes.

func (*StatusCodeMatcher) Descriptor deprecated

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

Deprecated: Use StatusCodeMatcher.ProtoReflect.Descriptor instead.

func (*StatusCodeMatcher) GetComparator

func (*StatusCodeMatcher) GetValue

func (x *StatusCodeMatcher) GetValue() uint32

func (*StatusCodeMatcher) ProtoMessage

func (*StatusCodeMatcher) ProtoMessage()

func (*StatusCodeMatcher) ProtoReflect

func (x *StatusCodeMatcher) ProtoReflect() protoreflect.Message

func (*StatusCodeMatcher) Reset

func (x *StatusCodeMatcher) Reset()

func (*StatusCodeMatcher) String

func (x *StatusCodeMatcher) String() string

type StatusCodeMatcher_Comparator

type StatusCodeMatcher_Comparator int32
const (
	// Strict equality.
	StatusCodeMatcher_EQ StatusCodeMatcher_Comparator = 0
	// Greater than or equal to.
	StatusCodeMatcher_GE StatusCodeMatcher_Comparator = 1
	// Less than or equal to.
	StatusCodeMatcher_LE StatusCodeMatcher_Comparator = 2
)

func (StatusCodeMatcher_Comparator) Descriptor

func (StatusCodeMatcher_Comparator) Enum

func (StatusCodeMatcher_Comparator) EnumDescriptor deprecated

func (StatusCodeMatcher_Comparator) EnumDescriptor() ([]byte, []int)

Deprecated: Use StatusCodeMatcher_Comparator.Descriptor instead.

func (StatusCodeMatcher_Comparator) Number

func (StatusCodeMatcher_Comparator) String

func (StatusCodeMatcher_Comparator) Type

type WorkloadSelector

type WorkloadSelector struct {

	// Match Kubernetes workloads by their labels, namespaces, and/or clusters.
	KubeWorkloadMatcher *WorkloadSelector_KubeWorkloadMatcher `protobuf:"bytes,1,opt,name=kube_workload_matcher,json=kubeWorkloadMatcher,proto3" json:"kube_workload_matcher,omitempty"`
	// contains filtered or unexported fields
}

Select Workloads using one or more platform-specific selectors.

func (*WorkloadSelector) Descriptor deprecated

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

Deprecated: Use WorkloadSelector.ProtoReflect.Descriptor instead.

func (*WorkloadSelector) Equal

func (m *WorkloadSelector) Equal(that interface{}) bool

Equal function

func (*WorkloadSelector) GetKubeWorkloadMatcher

func (x *WorkloadSelector) GetKubeWorkloadMatcher() *WorkloadSelector_KubeWorkloadMatcher

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

type WorkloadSelector_KubeWorkloadMatcher

type WorkloadSelector_KubeWorkloadMatcher struct {

	//
	//If specified, all labels must exist on Kubernetes workload.
	//When used in a networking policy, omission matches any labels.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any label key and/or value.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	//
	//If specified, match Kubernetes workloads if they exist in one of the specified namespaces.
	//When used in a networking policy, omission matches any namespace.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any namespace.
	Namespaces []string `protobuf:"bytes,2,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	//
	//If specified, match Kubernetes workloads if they exist in one of the specified clusters.
	//When used in a networking policy, omission matches any cluster.
	//When used in a Gloo Mesh Role, a wildcard (`"*"`) must be specified to match any cluster.
	Clusters []string `protobuf:"bytes,3,rep,name=clusters,proto3" json:"clusters,omitempty"`
	// contains filtered or unexported fields
}

Match Kubernetes workloads by their labels, namespaces, and/or clusters.

func (*WorkloadSelector_KubeWorkloadMatcher) Descriptor deprecated

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

Deprecated: Use WorkloadSelector_KubeWorkloadMatcher.ProtoReflect.Descriptor instead.

func (*WorkloadSelector_KubeWorkloadMatcher) Equal

func (m *WorkloadSelector_KubeWorkloadMatcher) Equal(that interface{}) bool

Equal function

func (*WorkloadSelector_KubeWorkloadMatcher) GetClusters

func (x *WorkloadSelector_KubeWorkloadMatcher) GetClusters() []string

func (*WorkloadSelector_KubeWorkloadMatcher) GetLabels

func (*WorkloadSelector_KubeWorkloadMatcher) GetNamespaces

func (x *WorkloadSelector_KubeWorkloadMatcher) GetNamespaces() []string

func (*WorkloadSelector_KubeWorkloadMatcher) ProtoMessage

func (*WorkloadSelector_KubeWorkloadMatcher) ProtoMessage()

func (*WorkloadSelector_KubeWorkloadMatcher) ProtoReflect

func (*WorkloadSelector_KubeWorkloadMatcher) Reset

func (*WorkloadSelector_KubeWorkloadMatcher) String

Jump to

Keyboard shortcuts

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