v1

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Overview

Package v1 contains API Schema definitions for the rbac.enterprise.mesh.gloo.solo.io v1 API group +k8s:deepcopy-gen=package,register +groupName=rbac.enterprise.mesh.gloo.solo.io

NOTE: Boilerplate only. Ignore this file. Used to register the Go types with the Kubernetes internal scheme

Definitions for the Kubernetes types

Definitions for the Kubernetes types

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "rbac.enterprise.mesh.gloo.solo.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	RoleSpec_TrafficPolicyScope_TrafficPolicyActions_name = map[int32]string{
		0:  "UNKNOWN_TRAFFIC_POLICY_ACTION",
		1:  "ALL",
		2:  "TRAFFIC_SHIFT",
		3:  "FAULT_INJECTION",
		4:  "REQUEST_TIMEOUT",
		5:  "RETRIES",
		6:  "CORS_POLICY",
		7:  "MIRROR",
		8:  "HEADER_MANIPULATION",
		9:  "OUTLIER_DETECTION",
		10: "MTLS_CONFIG",
	}
	RoleSpec_TrafficPolicyScope_TrafficPolicyActions_value = map[string]int32{
		"UNKNOWN_TRAFFIC_POLICY_ACTION": 0,
		"ALL":                           1,
		"TRAFFIC_SHIFT":                 2,
		"FAULT_INJECTION":               3,
		"REQUEST_TIMEOUT":               4,
		"RETRIES":                       5,
		"CORS_POLICY":                   6,
		"MIRROR":                        7,
		"HEADER_MANIPULATION":           8,
		"OUTLIER_DETECTION":             9,
		"MTLS_CONFIG":                   10,
	}
)

Enum value maps for RoleSpec_TrafficPolicyScope_TrafficPolicyActions.

View Source
var (
	RoleSpec_VirtualMeshScope_VirtualMeshActions_name = map[int32]string{
		0: "UNKNOWN_VIRTUAL_MESH_ACTION",
		1: "ALL",
		2: "MTLS_CONFIG",
		3: "FEDERATION",
		4: "GLOBAL_ACCESS_POLICY",
	}
	RoleSpec_VirtualMeshScope_VirtualMeshActions_value = map[string]int32{
		"UNKNOWN_VIRTUAL_MESH_ACTION": 0,
		"ALL":                         1,
		"MTLS_CONFIG":                 2,
		"FEDERATION":                  3,
		"GLOBAL_ACCESS_POLICY":        4,
	}
)

Enum value maps for RoleSpec_VirtualMeshScope_VirtualMeshActions.

View Source
var File_github_com_solo_io_gloo_mesh_api_enterprise_rbac_v1_role_proto protoreflect.FileDescriptor
View Source
var RoleBindingGVK = schema.GroupVersionKind{
	Group:   "rbac.enterprise.mesh.gloo.solo.io",
	Version: "v1",
	Kind:    "RoleBinding",
}

GroupVersionKind for RoleBinding

View Source
var RoleGVK = schema.GroupVersionKind{
	Group:   "rbac.enterprise.mesh.gloo.solo.io",
	Version: "v1",
	Kind:    "Role",
}

GroupVersionKind for Role

Functions

func AddToScheme

func AddToScheme(s *runtime.Scheme) error

func NewRoleBindingClient

func NewRoleBindingClient(client client.Client) *roleBindingClient

func NewRoleClient

func NewRoleClient(client client.Client) *roleClient

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Clientset

type Clientset interface {
	// clienset for the rbac.enterprise.mesh.gloo.solo.io/v1/v1 APIs
	Roles() RoleClient
	// clienset for the rbac.enterprise.mesh.gloo.solo.io/v1/v1 APIs
	RoleBindings() RoleBindingClient
}

clienset for the rbac.enterprise.mesh.gloo.solo.io/v1 APIs

func NewClientset

func NewClientset(client client.Client) Clientset

func NewClientsetFromConfig

func NewClientsetFromConfig(cfg *rest.Config) (Clientset, error)

type MulticlusterClientset

type MulticlusterClientset interface {
	// Cluster returns a Clientset for the given cluster
	Cluster(cluster string) (Clientset, error)
}

MulticlusterClientset for the rbac.enterprise.mesh.gloo.solo.io/v1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterRoleBindingClient

type MulticlusterRoleBindingClient interface {
	// Cluster returns a RoleBindingClient for the given cluster
	Cluster(cluster string) (RoleBindingClient, error)
}

Provides RoleBindingClients for multiple clusters.

func NewMulticlusterRoleBindingClient

func NewMulticlusterRoleBindingClient(client multicluster.Client) MulticlusterRoleBindingClient

type MulticlusterRoleClient

type MulticlusterRoleClient interface {
	// Cluster returns a RoleClient for the given cluster
	Cluster(cluster string) (RoleClient, error)
}

Provides RoleClients for multiple clusters.

func NewMulticlusterRoleClient

func NewMulticlusterRoleClient(client multicluster.Client) MulticlusterRoleClient

type Role

type Role struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RoleSpec   `json:"spec,omitempty"`
	Status RoleStatus `json:"status,omitempty"`
}

Role is the Schema for the role API

func (*Role) DeepCopy

func (in *Role) DeepCopy() *Role

func (*Role) DeepCopyInto

func (in *Role) DeepCopyInto(out *Role)

func (*Role) DeepCopyObject

func (in *Role) DeepCopyObject() runtime.Object

func (Role) GVK

GVK returns the GroupVersionKind associated with the resource type.

type RoleBinding

type RoleBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RoleBindingSpec   `json:"spec,omitempty"`
	Status RoleBindingStatus `json:"status,omitempty"`
}

RoleBinding is the Schema for the roleBinding API

func (*RoleBinding) DeepCopy

func (in *RoleBinding) DeepCopy() *RoleBinding

func (*RoleBinding) DeepCopyInto

func (in *RoleBinding) DeepCopyInto(out *RoleBinding)

func (*RoleBinding) DeepCopyObject

func (in *RoleBinding) DeepCopyObject() runtime.Object

func (RoleBinding) GVK

GVK returns the GroupVersionKind associated with the resource type.

type RoleBindingClient

type RoleBindingClient interface {
	RoleBindingReader
	RoleBindingWriter
	RoleBindingStatusWriter
}

Client knows how to perform CRUD operations on RoleBindings.

type RoleBindingList

type RoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RoleBinding `json:"items"`
}

RoleBindingList contains a list of RoleBinding

func (*RoleBindingList) DeepCopy

func (in *RoleBindingList) DeepCopy() *RoleBindingList

func (*RoleBindingList) DeepCopyInto

func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList)

func (*RoleBindingList) DeepCopyObject

func (in *RoleBindingList) DeepCopyObject() runtime.Object

type RoleBindingReader

type RoleBindingReader interface {
	// Get retrieves a RoleBinding for the given object key
	GetRoleBinding(ctx context.Context, key client.ObjectKey) (*RoleBinding, error)

	// List retrieves list of RoleBindings for a given namespace and list options.
	ListRoleBinding(ctx context.Context, opts ...client.ListOption) (*RoleBindingList, error)
}

Reader knows how to read and list RoleBindings.

type RoleBindingSlice

type RoleBindingSlice []*RoleBinding

RoleBindingSlice represents a slice of *RoleBinding

type RoleBindingSpec

type RoleBindingSpec struct {

	// Specify by reference the Kubernetes Users or Groups the Role should apply to.
	Subjects []*v1.TypedObjectRef `protobuf:"bytes,1,rep,name=subjects,proto3" json:"subjects,omitempty"`
	// Specify by reference the Gloo Mesh Role to bind.
	RoleRef *v1.ObjectRef `protobuf:"bytes,2,opt,name=role_ref,json=roleRef,proto3" json:"role_ref,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleBindingSpec) DeepCopyInto

func (in *RoleBindingSpec) DeepCopyInto(out *RoleBindingSpec)

DeepCopyInto for the RoleBinding.Spec

func (*RoleBindingSpec) Descriptor deprecated

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

Deprecated: Use RoleBindingSpec.ProtoReflect.Descriptor instead.

func (*RoleBindingSpec) GetRoleRef

func (x *RoleBindingSpec) GetRoleRef() *v1.ObjectRef

func (*RoleBindingSpec) GetSubjects

func (x *RoleBindingSpec) GetSubjects() []*v1.TypedObjectRef

func (*RoleBindingSpec) MarshalJSON

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

MarshalJSON is a custom marshaler for RoleBindingSpec

func (*RoleBindingSpec) ProtoMessage

func (*RoleBindingSpec) ProtoMessage()

func (*RoleBindingSpec) ProtoReflect

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

func (*RoleBindingSpec) Reset

func (x *RoleBindingSpec) Reset()

func (*RoleBindingSpec) String

func (x *RoleBindingSpec) String() string

func (*RoleBindingSpec) UnmarshalJSON

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

UnmarshalJSON is a custom unmarshaler for RoleBindingSpec

type RoleBindingStatus

type RoleBindingStatus struct {
	// contains filtered or unexported fields
}

func (*RoleBindingStatus) DeepCopyInto

func (in *RoleBindingStatus) DeepCopyInto(out *RoleBindingStatus)

DeepCopyInto for the RoleBinding.Status

func (*RoleBindingStatus) Descriptor deprecated

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

Deprecated: Use RoleBindingStatus.ProtoReflect.Descriptor instead.

func (*RoleBindingStatus) MarshalJSON

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

MarshalJSON is a custom marshaler for RoleBindingStatus

func (*RoleBindingStatus) ProtoMessage

func (*RoleBindingStatus) ProtoMessage()

func (*RoleBindingStatus) ProtoReflect

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

func (*RoleBindingStatus) Reset

func (x *RoleBindingStatus) Reset()

func (*RoleBindingStatus) String

func (x *RoleBindingStatus) String() string

func (*RoleBindingStatus) UnmarshalJSON

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

UnmarshalJSON is a custom unmarshaler for RoleBindingStatus

type RoleBindingStatusWriter

type RoleBindingStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given RoleBinding object.
	UpdateRoleBindingStatus(ctx context.Context, obj *RoleBinding, opts ...client.UpdateOption) error

	// Patch patches the given RoleBinding object's subresource.
	PatchRoleBindingStatus(ctx context.Context, obj *RoleBinding, patch client.Patch, opts ...client.PatchOption) error
}

StatusWriter knows how to update status subresource of a RoleBinding object.

type RoleBindingTransitionFunction

type RoleBindingTransitionFunction func(existing, desired *RoleBinding) error

RoleBindingTransitionFunction instructs the RoleBindingWriter how to transition between an existing RoleBinding object and a desired on an Upsert

type RoleBindingWriter

type RoleBindingWriter interface {
	// Create saves the RoleBinding object.
	CreateRoleBinding(ctx context.Context, obj *RoleBinding, opts ...client.CreateOption) error

	// Delete deletes the RoleBinding object.
	DeleteRoleBinding(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given RoleBinding object.
	UpdateRoleBinding(ctx context.Context, obj *RoleBinding, opts ...client.UpdateOption) error

	// Patch patches the given RoleBinding object.
	PatchRoleBinding(ctx context.Context, obj *RoleBinding, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all RoleBinding objects matching the given options.
	DeleteAllOfRoleBinding(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the RoleBinding object.
	UpsertRoleBinding(ctx context.Context, obj *RoleBinding, transitionFuncs ...RoleBindingTransitionFunction) error
}

Writer knows how to create, delete, and update RoleBindings.

type RoleClient

type RoleClient interface {
	RoleReader
	RoleWriter
	RoleStatusWriter
}

Client knows how to perform CRUD operations on Roles.

type RoleList

type RoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Role `json:"items"`
}

RoleList contains a list of Role

func (*RoleList) DeepCopy

func (in *RoleList) DeepCopy() *RoleList

func (*RoleList) DeepCopyInto

func (in *RoleList) DeepCopyInto(out *RoleList)

func (*RoleList) DeepCopyObject

func (in *RoleList) DeepCopyObject() runtime.Object

type RoleReader

type RoleReader interface {
	// Get retrieves a Role for the given object key
	GetRole(ctx context.Context, key client.ObjectKey) (*Role, error)

	// List retrieves list of Roles for a given namespace and list options.
	ListRole(ctx context.Context, opts ...client.ListOption) (*RoleList, error)
}

Reader knows how to read and list Roles.

type RoleSlice

type RoleSlice []*Role

RoleSlice represents a slice of *Role

type RoleSpec

type RoleSpec struct {

	// A set of TrafficPolicy configuration permissions. Permission granularity is defined at the field level.
	TrafficPolicyScopes []*RoleSpec_TrafficPolicyScope `protobuf:"bytes,1,rep,name=traffic_policy_scopes,json=trafficPolicyScopes,proto3" json:"traffic_policy_scopes,omitempty"`
	// A set of VirtualMesh configuration permissions. Permission granularity is defined at the field level.
	VirtualMeshScopes []*RoleSpec_VirtualMeshScope `protobuf:"bytes,2,rep,name=virtual_mesh_scopes,json=virtualMeshScopes,proto3" json:"virtual_mesh_scopes,omitempty"`
	// A set of AccessPolicy configuration permissions. Permission granularity is defined at the object level.
	AccessPolicyScopes []*RoleSpec_AccessPolicyScope `protobuf:"bytes,3,rep,name=access_policy_scopes,json=accessPolicyScopes,proto3" json:"access_policy_scopes,omitempty"`
	// A set of VirtualDestination configuration permissions. Permission granularity is defined at the object level.
	VirtualDestinationScopes []*RoleSpec_VirtualDestinationScope `` /* 135-byte string literal not displayed */
	// A set of WasmDeployment configuration permissions. Permission granularity is defined at the object level.
	WasmDeploymentScopes []*RoleSpec_WasmDeploymentScope `protobuf:"bytes,5,rep,name=wasm_deployment_scopes,json=wasmDeploymentScopes,proto3" json:"wasm_deployment_scopes,omitempty"`
	// A set of AccessLogRecord configuration permissions. Permission granularity is defined at the object level.
	AccessLogRecordScopes []*RoleSpec_AccessLogRecordScope `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

A role represents a set of permissions for creating, updating, and deleting Gloo Mesh configuration objects. A role consists of a set of scopes for each policy type. Depending on the policy type, the permission granularity is defined at the field level or at the object level.

func (*RoleSpec) DeepCopyInto

func (in *RoleSpec) DeepCopyInto(out *RoleSpec)

DeepCopyInto for the Role.Spec

func (*RoleSpec) Descriptor deprecated

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

Deprecated: Use RoleSpec.ProtoReflect.Descriptor instead.

func (*RoleSpec) GetAccessLogRecordScopes

func (x *RoleSpec) GetAccessLogRecordScopes() []*RoleSpec_AccessLogRecordScope

func (*RoleSpec) GetAccessPolicyScopes

func (x *RoleSpec) GetAccessPolicyScopes() []*RoleSpec_AccessPolicyScope

func (*RoleSpec) GetTrafficPolicyScopes

func (x *RoleSpec) GetTrafficPolicyScopes() []*RoleSpec_TrafficPolicyScope

func (*RoleSpec) GetVirtualDestinationScopes

func (x *RoleSpec) GetVirtualDestinationScopes() []*RoleSpec_VirtualDestinationScope

func (*RoleSpec) GetVirtualMeshScopes

func (x *RoleSpec) GetVirtualMeshScopes() []*RoleSpec_VirtualMeshScope

func (*RoleSpec) GetWasmDeploymentScopes

func (x *RoleSpec) GetWasmDeploymentScopes() []*RoleSpec_WasmDeploymentScope

func (*RoleSpec) MarshalJSON

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

MarshalJSON is a custom marshaler for RoleSpec

func (*RoleSpec) ProtoMessage

func (*RoleSpec) ProtoMessage()

func (*RoleSpec) ProtoReflect

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

func (*RoleSpec) Reset

func (x *RoleSpec) Reset()

func (*RoleSpec) String

func (x *RoleSpec) String() string

func (*RoleSpec) UnmarshalJSON

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

UnmarshalJSON is a custom unmarshaler for RoleSpec

type RoleSpec_AccessLogRecordScope

type RoleSpec_AccessLogRecordScope struct {

	// A list of permitted Workload selectors.
	WorkloadSelectors []*v11.WorkloadSelector `protobuf:"bytes,1,rep,name=workload_selectors,json=workloadSelectors,proto3" json:"workload_selectors,omitempty"`
	// contains filtered or unexported fields
}

Represents permissions for configuring AccessLogRecords.

func (*RoleSpec_AccessLogRecordScope) Descriptor deprecated

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

Deprecated: Use RoleSpec_AccessLogRecordScope.ProtoReflect.Descriptor instead.

func (*RoleSpec_AccessLogRecordScope) GetWorkloadSelectors

func (x *RoleSpec_AccessLogRecordScope) GetWorkloadSelectors() []*v11.WorkloadSelector

func (*RoleSpec_AccessLogRecordScope) ProtoMessage

func (*RoleSpec_AccessLogRecordScope) ProtoMessage()

func (*RoleSpec_AccessLogRecordScope) ProtoReflect

func (*RoleSpec_AccessLogRecordScope) Reset

func (x *RoleSpec_AccessLogRecordScope) Reset()

func (*RoleSpec_AccessLogRecordScope) String

type RoleSpec_AccessPolicyScope

type RoleSpec_AccessPolicyScope struct {

	// A list of permitted identity selectors.
	IdentitySelectors []*v11.IdentitySelector `protobuf:"bytes,1,rep,name=identity_selectors,json=identitySelectors,proto3" json:"identity_selectors,omitempty"`
	// A list of permitted Destination selectors.
	DestinationSelectors []*v11.DestinationSelector `protobuf:"bytes,2,rep,name=destination_selectors,json=destinationSelectors,proto3" json:"destination_selectors,omitempty"`
	// contains filtered or unexported fields
}

Represents permissions for configuring AccessPolicies.

func (*RoleSpec_AccessPolicyScope) Descriptor deprecated

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

Deprecated: Use RoleSpec_AccessPolicyScope.ProtoReflect.Descriptor instead.

func (*RoleSpec_AccessPolicyScope) GetDestinationSelectors

func (x *RoleSpec_AccessPolicyScope) GetDestinationSelectors() []*v11.DestinationSelector

func (*RoleSpec_AccessPolicyScope) GetIdentitySelectors

func (x *RoleSpec_AccessPolicyScope) GetIdentitySelectors() []*v11.IdentitySelector

func (*RoleSpec_AccessPolicyScope) ProtoMessage

func (*RoleSpec_AccessPolicyScope) ProtoMessage()

func (*RoleSpec_AccessPolicyScope) ProtoReflect

func (*RoleSpec_AccessPolicyScope) Reset

func (x *RoleSpec_AccessPolicyScope) Reset()

func (*RoleSpec_AccessPolicyScope) String

func (x *RoleSpec_AccessPolicyScope) String() string

type RoleSpec_TrafficPolicyScope

type RoleSpec_TrafficPolicyScope struct {

	// A list of permitted TrafficPolicy configuration actions.
	TrafficPolicyActions []RoleSpec_TrafficPolicyScope_TrafficPolicyActions `` /* 219-byte string literal not displayed */
	// A list of permitted Destination selectors.
	DestinationSelectors []*v11.DestinationSelector `protobuf:"bytes,2,rep,name=destination_selectors,json=destinationSelectors,proto3" json:"destination_selectors,omitempty"`
	// A list of permitted Workload selectors.
	WorkloadSelectors []*v11.WorkloadSelector `protobuf:"bytes,3,rep,name=workload_selectors,json=workloadSelectors,proto3" json:"workload_selectors,omitempty"`
	// contains filtered or unexported fields
}

Represents permissions for configuring TrafficPolicies.

func (*RoleSpec_TrafficPolicyScope) Descriptor deprecated

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

Deprecated: Use RoleSpec_TrafficPolicyScope.ProtoReflect.Descriptor instead.

func (*RoleSpec_TrafficPolicyScope) GetDestinationSelectors

func (x *RoleSpec_TrafficPolicyScope) GetDestinationSelectors() []*v11.DestinationSelector

func (*RoleSpec_TrafficPolicyScope) GetTrafficPolicyActions

func (*RoleSpec_TrafficPolicyScope) GetWorkloadSelectors

func (x *RoleSpec_TrafficPolicyScope) GetWorkloadSelectors() []*v11.WorkloadSelector

func (*RoleSpec_TrafficPolicyScope) ProtoMessage

func (*RoleSpec_TrafficPolicyScope) ProtoMessage()

func (*RoleSpec_TrafficPolicyScope) ProtoReflect

func (*RoleSpec_TrafficPolicyScope) Reset

func (x *RoleSpec_TrafficPolicyScope) Reset()

func (*RoleSpec_TrafficPolicyScope) String

func (x *RoleSpec_TrafficPolicyScope) String() string

type RoleSpec_TrafficPolicyScope_TrafficPolicyActions

type RoleSpec_TrafficPolicyScope_TrafficPolicyActions int32

Enums representing fields on the TrafficPolicy CRD.

const (
	RoleSpec_TrafficPolicyScope_UNKNOWN_TRAFFIC_POLICY_ACTION RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 0
	RoleSpec_TrafficPolicyScope_ALL                           RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 1
	RoleSpec_TrafficPolicyScope_TRAFFIC_SHIFT                 RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 2
	RoleSpec_TrafficPolicyScope_FAULT_INJECTION               RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 3
	RoleSpec_TrafficPolicyScope_REQUEST_TIMEOUT               RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 4
	RoleSpec_TrafficPolicyScope_RETRIES                       RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 5
	RoleSpec_TrafficPolicyScope_CORS_POLICY                   RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 6
	RoleSpec_TrafficPolicyScope_MIRROR                        RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 7
	RoleSpec_TrafficPolicyScope_HEADER_MANIPULATION           RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 8
	RoleSpec_TrafficPolicyScope_OUTLIER_DETECTION             RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 9
	RoleSpec_TrafficPolicyScope_MTLS_CONFIG                   RoleSpec_TrafficPolicyScope_TrafficPolicyActions = 10
)

func (RoleSpec_TrafficPolicyScope_TrafficPolicyActions) Descriptor

func (RoleSpec_TrafficPolicyScope_TrafficPolicyActions) Enum

func (RoleSpec_TrafficPolicyScope_TrafficPolicyActions) EnumDescriptor deprecated

Deprecated: Use RoleSpec_TrafficPolicyScope_TrafficPolicyActions.Descriptor instead.

func (RoleSpec_TrafficPolicyScope_TrafficPolicyActions) Number

func (RoleSpec_TrafficPolicyScope_TrafficPolicyActions) String

func (RoleSpec_TrafficPolicyScope_TrafficPolicyActions) Type

type RoleSpec_VirtualDestinationScope

type RoleSpec_VirtualDestinationScope struct {

	// A list of permitted virtual mesh references.
	VirtualMeshRefs []*v1.ObjectRef `protobuf:"bytes,1,rep,name=virtual_mesh_refs,json=virtualMeshRefs,proto3" json:"virtual_mesh_refs,omitempty"`
	// A list of permitted mesh references.
	MeshRefs []*v1.ObjectRef `protobuf:"bytes,2,rep,name=mesh_refs,json=meshRefs,proto3" json:"mesh_refs,omitempty"`
	// A list of permitted backing service selectors.
	DestinationSelectors []*v11.DestinationSelector `protobuf:"bytes,3,rep,name=destination_selectors,json=destinationSelectors,proto3" json:"destination_selectors,omitempty"`
	// A list of permitted backing Destinations.
	Destinations []*v1beta1.VirtualDestinationBackingDestination `protobuf:"bytes,4,rep,name=destinations,proto3" json:"destinations,omitempty"`
	// contains filtered or unexported fields
}

Represents permissions for configuring VirtualDestinations.

func (*RoleSpec_VirtualDestinationScope) Descriptor deprecated

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

Deprecated: Use RoleSpec_VirtualDestinationScope.ProtoReflect.Descriptor instead.

func (*RoleSpec_VirtualDestinationScope) GetDestinationSelectors

func (x *RoleSpec_VirtualDestinationScope) GetDestinationSelectors() []*v11.DestinationSelector

func (*RoleSpec_VirtualDestinationScope) GetDestinations

func (*RoleSpec_VirtualDestinationScope) GetMeshRefs

func (x *RoleSpec_VirtualDestinationScope) GetMeshRefs() []*v1.ObjectRef

func (*RoleSpec_VirtualDestinationScope) GetVirtualMeshRefs

func (x *RoleSpec_VirtualDestinationScope) GetVirtualMeshRefs() []*v1.ObjectRef

func (*RoleSpec_VirtualDestinationScope) ProtoMessage

func (*RoleSpec_VirtualDestinationScope) ProtoMessage()

func (*RoleSpec_VirtualDestinationScope) ProtoReflect

func (*RoleSpec_VirtualDestinationScope) Reset

func (*RoleSpec_VirtualDestinationScope) String

type RoleSpec_VirtualMeshScope

type RoleSpec_VirtualMeshScope struct {

	// A list of permitted VirtualMesh configuration actions.
	VirtualMeshActions []RoleSpec_VirtualMeshScope_VirtualMeshActions `` /* 209-byte string literal not displayed */
	// A list of permitted mesh references.
	MeshRefs []*v1.ObjectRef `protobuf:"bytes,2,rep,name=mesh_refs,json=meshRefs,proto3" json:"mesh_refs,omitempty"`
	// contains filtered or unexported fields
}

Represents permissions for configuring VirtualMeshes.

func (*RoleSpec_VirtualMeshScope) Descriptor deprecated

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

Deprecated: Use RoleSpec_VirtualMeshScope.ProtoReflect.Descriptor instead.

func (*RoleSpec_VirtualMeshScope) GetMeshRefs

func (x *RoleSpec_VirtualMeshScope) GetMeshRefs() []*v1.ObjectRef

func (*RoleSpec_VirtualMeshScope) GetVirtualMeshActions

func (*RoleSpec_VirtualMeshScope) ProtoMessage

func (*RoleSpec_VirtualMeshScope) ProtoMessage()

func (*RoleSpec_VirtualMeshScope) ProtoReflect

func (*RoleSpec_VirtualMeshScope) Reset

func (x *RoleSpec_VirtualMeshScope) Reset()

func (*RoleSpec_VirtualMeshScope) String

func (x *RoleSpec_VirtualMeshScope) String() string

type RoleSpec_VirtualMeshScope_VirtualMeshActions

type RoleSpec_VirtualMeshScope_VirtualMeshActions int32

Enums representing fields on the VirtualMesh CRD.

const (
	RoleSpec_VirtualMeshScope_UNKNOWN_VIRTUAL_MESH_ACTION RoleSpec_VirtualMeshScope_VirtualMeshActions = 0
	RoleSpec_VirtualMeshScope_ALL                         RoleSpec_VirtualMeshScope_VirtualMeshActions = 1
	RoleSpec_VirtualMeshScope_MTLS_CONFIG                 RoleSpec_VirtualMeshScope_VirtualMeshActions = 2
	RoleSpec_VirtualMeshScope_FEDERATION                  RoleSpec_VirtualMeshScope_VirtualMeshActions = 3
	RoleSpec_VirtualMeshScope_GLOBAL_ACCESS_POLICY        RoleSpec_VirtualMeshScope_VirtualMeshActions = 4
)

func (RoleSpec_VirtualMeshScope_VirtualMeshActions) Descriptor

func (RoleSpec_VirtualMeshScope_VirtualMeshActions) Enum

func (RoleSpec_VirtualMeshScope_VirtualMeshActions) EnumDescriptor deprecated

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

Deprecated: Use RoleSpec_VirtualMeshScope_VirtualMeshActions.Descriptor instead.

func (RoleSpec_VirtualMeshScope_VirtualMeshActions) Number

func (RoleSpec_VirtualMeshScope_VirtualMeshActions) String

func (RoleSpec_VirtualMeshScope_VirtualMeshActions) Type

type RoleSpec_WasmDeploymentScope

type RoleSpec_WasmDeploymentScope struct {

	// A list of permitted Workload selectors.
	WorkloadSelectors []*v11.WorkloadSelector `protobuf:"bytes,1,rep,name=workload_selectors,json=workloadSelectors,proto3" json:"workload_selectors,omitempty"`
	// contains filtered or unexported fields
}

Represents permissions for configuring WasmDeployments.

func (*RoleSpec_WasmDeploymentScope) Descriptor deprecated

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

Deprecated: Use RoleSpec_WasmDeploymentScope.ProtoReflect.Descriptor instead.

func (*RoleSpec_WasmDeploymentScope) GetWorkloadSelectors

func (x *RoleSpec_WasmDeploymentScope) GetWorkloadSelectors() []*v11.WorkloadSelector

func (*RoleSpec_WasmDeploymentScope) ProtoMessage

func (*RoleSpec_WasmDeploymentScope) ProtoMessage()

func (*RoleSpec_WasmDeploymentScope) ProtoReflect

func (*RoleSpec_WasmDeploymentScope) Reset

func (x *RoleSpec_WasmDeploymentScope) Reset()

func (*RoleSpec_WasmDeploymentScope) String

type RoleStatus

type RoleStatus struct {

	// The observed generation of the Role.
	// When this matches the Role's `metadata.generation` it indicates that Gloo Mesh
	// has processed the latest version of the Role.
	ObservedGeneration int64 `protobuf:"varint,1,opt,name=observed_generation,json=observedGeneration,proto3" json:"observed_generation,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleStatus) DeepCopyInto

func (in *RoleStatus) DeepCopyInto(out *RoleStatus)

DeepCopyInto for the Role.Status

func (*RoleStatus) Descriptor deprecated

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

Deprecated: Use RoleStatus.ProtoReflect.Descriptor instead.

func (*RoleStatus) GetObservedGeneration

func (x *RoleStatus) GetObservedGeneration() int64

func (*RoleStatus) MarshalJSON

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

MarshalJSON is a custom marshaler for RoleStatus

func (*RoleStatus) ProtoMessage

func (*RoleStatus) ProtoMessage()

func (*RoleStatus) ProtoReflect

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

func (*RoleStatus) Reset

func (x *RoleStatus) Reset()

func (*RoleStatus) String

func (x *RoleStatus) String() string

func (*RoleStatus) UnmarshalJSON

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

UnmarshalJSON is a custom unmarshaler for RoleStatus

type RoleStatusWriter

type RoleStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given Role object.
	UpdateRoleStatus(ctx context.Context, obj *Role, opts ...client.UpdateOption) error

	// Patch patches the given Role object's subresource.
	PatchRoleStatus(ctx context.Context, obj *Role, patch client.Patch, opts ...client.PatchOption) error
}

StatusWriter knows how to update status subresource of a Role object.

type RoleTransitionFunction

type RoleTransitionFunction func(existing, desired *Role) error

RoleTransitionFunction instructs the RoleWriter how to transition between an existing Role object and a desired on an Upsert

type RoleWriter

type RoleWriter interface {
	// Create saves the Role object.
	CreateRole(ctx context.Context, obj *Role, opts ...client.CreateOption) error

	// Delete deletes the Role object.
	DeleteRole(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given Role object.
	UpdateRole(ctx context.Context, obj *Role, opts ...client.UpdateOption) error

	// Patch patches the given Role object.
	PatchRole(ctx context.Context, obj *Role, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all Role objects matching the given options.
	DeleteAllOfRole(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the Role object.
	UpsertRole(ctx context.Context, obj *Role, transitionFuncs ...RoleTransitionFunction) error
}

Writer knows how to create, delete, and update Roles.

Directories

Path Synopsis
Definitions for the Kubernetes Controllers Definitions for the multicluster Kubernetes Controllers Definitions for the Kubernetes Controllers
Definitions for the Kubernetes Controllers Definitions for the multicluster Kubernetes Controllers Definitions for the Kubernetes Controllers
mocks
Package mock_controller is a generated GoMock package.
Package mock_controller is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
mocks
Package mock_v1sets is a generated GoMock package.
Package mock_v1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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