projections

package
v0.5.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterRole_ClusterRoleScope_name = map[int32]string{
		0: "CLUSTER",
		1: "TENANT",
	}
	ClusterRole_ClusterRoleScope_value = map[string]int32{
		"CLUSTER": 0,
		"TENANT":  1,
	}
)

Enum value maps for ClusterRole_ClusterRoleScope.

View Source
var File_api_domain_projections_cluster_proto protoreflect.FileDescriptor
View Source
var File_api_domain_projections_metadata_proto protoreflect.FileDescriptor
View Source
var File_api_domain_projections_tenant_cluster_binding_proto protoreflect.FileDescriptor
View Source
var File_api_domain_projections_tenant_proto protoreflect.FileDescriptor
View Source
var File_api_domain_projections_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cluster

type Cluster struct {

	// Unique identifier of the cluster (UUID 128-bit number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique name of the cluster, to be utilized for generating unique labels
	// and symbols, e.g. with metrics.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Display name of the cluster
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Address of the clusters KubeAPIServer
	ApiServerAddress string `protobuf:"bytes,4,opt,name=api_server_address,json=apiServerAddress,proto3" json:"api_server_address,omitempty"`
	// CA certificates of the cluster
	CaCertBundle []byte `protobuf:"bytes,5,opt,name=ca_cert_bundle,json=caCertBundle,proto3" json:"ca_cert_bundle,omitempty"`
	// Metadata about the projection
	Metadata *LifecycleMetadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Cluster is the information the Control Plane has about a cluster

func (*Cluster) Descriptor deprecated

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

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetApiServerAddress

func (x *Cluster) GetApiServerAddress() string

func (*Cluster) GetCaCertBundle

func (x *Cluster) GetCaCertBundle() []byte

func (*Cluster) GetDisplayName

func (x *Cluster) GetDisplayName() string

func (*Cluster) GetId

func (x *Cluster) GetId() string

func (*Cluster) GetMetadata

func (x *Cluster) GetMetadata() *LifecycleMetadata

func (*Cluster) GetName

func (x *Cluster) GetName() string

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

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

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

func (*Cluster) Validate added in v0.3.0

func (m *Cluster) Validate() error

Validate checks the field values on Cluster with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Cluster) ValidateAll added in v0.3.0

func (m *Cluster) ValidateAll() error

ValidateAll checks the field values on Cluster with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClusterMultiError, or nil if none found.

type ClusterAccess added in v0.4.0

type ClusterAccess struct {
	Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Roles   []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

ClusterAccess represents an access to a specific cluster with a list of roles within that cluster for a user

func (*ClusterAccess) Descriptor deprecated added in v0.4.0

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

Deprecated: Use ClusterAccess.ProtoReflect.Descriptor instead.

func (*ClusterAccess) GetCluster added in v0.4.0

func (x *ClusterAccess) GetCluster() *Cluster

func (*ClusterAccess) GetRoles added in v0.4.0

func (x *ClusterAccess) GetRoles() []string

func (*ClusterAccess) ProtoMessage added in v0.4.0

func (*ClusterAccess) ProtoMessage()

func (*ClusterAccess) ProtoReflect added in v0.4.0

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

func (*ClusterAccess) Reset added in v0.4.0

func (x *ClusterAccess) Reset()

func (*ClusterAccess) String added in v0.4.0

func (x *ClusterAccess) String() string

func (*ClusterAccess) Validate added in v0.4.0

func (m *ClusterAccess) Validate() error

Validate checks the field values on ClusterAccess with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClusterAccess) ValidateAll added in v0.4.0

func (m *ClusterAccess) ValidateAll() error

ValidateAll checks the field values on ClusterAccess with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClusterAccessMultiError, or nil if none found.

type ClusterAccessMultiError added in v0.4.0

type ClusterAccessMultiError []error

ClusterAccessMultiError is an error wrapping multiple validation errors returned by ClusterAccess.ValidateAll() if the designated constraints aren't met.

func (ClusterAccessMultiError) AllErrors added in v0.4.0

func (m ClusterAccessMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClusterAccessMultiError) Error added in v0.4.0

func (m ClusterAccessMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ClusterAccessV2 added in v0.4.13

type ClusterAccessV2 struct {
	Cluster      *Cluster       `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	ClusterRoles []*ClusterRole `protobuf:"bytes,2,rep,name=clusterRoles,proto3" json:"clusterRoles,omitempty"`
	// contains filtered or unexported fields
}

ClusterAccessV2 represents an access to a specific cluster with a list of roles within that cluster for a user

func (*ClusterAccessV2) Descriptor deprecated added in v0.4.13

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

Deprecated: Use ClusterAccessV2.ProtoReflect.Descriptor instead.

func (*ClusterAccessV2) GetCluster added in v0.4.13

func (x *ClusterAccessV2) GetCluster() *Cluster

func (*ClusterAccessV2) GetClusterRoles added in v0.4.13

func (x *ClusterAccessV2) GetClusterRoles() []*ClusterRole

func (*ClusterAccessV2) ProtoMessage added in v0.4.13

func (*ClusterAccessV2) ProtoMessage()

func (*ClusterAccessV2) ProtoReflect added in v0.4.13

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

func (*ClusterAccessV2) Reset added in v0.4.13

func (x *ClusterAccessV2) Reset()

func (*ClusterAccessV2) String added in v0.4.13

func (x *ClusterAccessV2) String() string

func (*ClusterAccessV2) Validate added in v0.4.13

func (m *ClusterAccessV2) Validate() error

Validate checks the field values on ClusterAccessV2 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClusterAccessV2) ValidateAll added in v0.4.13

func (m *ClusterAccessV2) ValidateAll() error

ValidateAll checks the field values on ClusterAccessV2 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClusterAccessV2MultiError, or nil if none found.

type ClusterAccessV2MultiError added in v0.4.13

type ClusterAccessV2MultiError []error

ClusterAccessV2MultiError is an error wrapping multiple validation errors returned by ClusterAccessV2.ValidateAll() if the designated constraints aren't met.

func (ClusterAccessV2MultiError) AllErrors added in v0.4.13

func (m ClusterAccessV2MultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClusterAccessV2MultiError) Error added in v0.4.13

Error returns a concatenation of all the error messages it wraps.

type ClusterAccessV2ValidationError added in v0.4.13

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

ClusterAccessV2ValidationError is the validation error returned by ClusterAccessV2.Validate if the designated constraints aren't met.

func (ClusterAccessV2ValidationError) Cause added in v0.4.13

Cause function returns cause value.

func (ClusterAccessV2ValidationError) Error added in v0.4.13

Error satisfies the builtin error interface

func (ClusterAccessV2ValidationError) ErrorName added in v0.4.13

func (e ClusterAccessV2ValidationError) ErrorName() string

ErrorName returns error name.

func (ClusterAccessV2ValidationError) Field added in v0.4.13

Field function returns field value.

func (ClusterAccessV2ValidationError) Key added in v0.4.13

Key function returns key value.

func (ClusterAccessV2ValidationError) Reason added in v0.4.13

Reason function returns reason value.

type ClusterAccessValidationError added in v0.4.0

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

ClusterAccessValidationError is the validation error returned by ClusterAccess.Validate if the designated constraints aren't met.

func (ClusterAccessValidationError) Cause added in v0.4.0

Cause function returns cause value.

func (ClusterAccessValidationError) Error added in v0.4.0

Error satisfies the builtin error interface

func (ClusterAccessValidationError) ErrorName added in v0.4.0

func (e ClusterAccessValidationError) ErrorName() string

ErrorName returns error name.

func (ClusterAccessValidationError) Field added in v0.4.0

Field function returns field value.

func (ClusterAccessValidationError) Key added in v0.4.0

Key function returns key value.

func (ClusterAccessValidationError) Reason added in v0.4.0

Reason function returns reason value.

type ClusterMultiError added in v0.3.0

type ClusterMultiError []error

ClusterMultiError is an error wrapping multiple validation errors returned by Cluster.ValidateAll() if the designated constraints aren't met.

func (ClusterMultiError) AllErrors added in v0.3.0

func (m ClusterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClusterMultiError) Error added in v0.3.0

func (m ClusterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ClusterRole added in v0.4.13

type ClusterRole struct {
	Scope ClusterRole_ClusterRoleScope `protobuf:"varint,1,opt,name=scope,proto3,enum=projections.ClusterRole_ClusterRoleScope" json:"scope,omitempty"`
	Role  string                       `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

ClusterRole is the role a user has in a cluster

func (*ClusterRole) Descriptor deprecated added in v0.4.13

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

Deprecated: Use ClusterRole.ProtoReflect.Descriptor instead.

func (*ClusterRole) GetRole added in v0.4.13

func (x *ClusterRole) GetRole() string

func (*ClusterRole) GetScope added in v0.4.13

func (*ClusterRole) ProtoMessage added in v0.4.13

func (*ClusterRole) ProtoMessage()

func (*ClusterRole) ProtoReflect added in v0.4.13

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

func (*ClusterRole) Reset added in v0.4.13

func (x *ClusterRole) Reset()

func (*ClusterRole) String added in v0.4.13

func (x *ClusterRole) String() string

func (*ClusterRole) Validate added in v0.4.13

func (m *ClusterRole) Validate() error

Validate checks the field values on ClusterRole with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClusterRole) ValidateAll added in v0.4.13

func (m *ClusterRole) ValidateAll() error

ValidateAll checks the field values on ClusterRole with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClusterRoleMultiError, or nil if none found.

type ClusterRoleMultiError added in v0.4.13

type ClusterRoleMultiError []error

ClusterRoleMultiError is an error wrapping multiple validation errors returned by ClusterRole.ValidateAll() if the designated constraints aren't met.

func (ClusterRoleMultiError) AllErrors added in v0.4.13

func (m ClusterRoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClusterRoleMultiError) Error added in v0.4.13

func (m ClusterRoleMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ClusterRoleValidationError added in v0.4.13

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

ClusterRoleValidationError is the validation error returned by ClusterRole.Validate if the designated constraints aren't met.

func (ClusterRoleValidationError) Cause added in v0.4.13

Cause function returns cause value.

func (ClusterRoleValidationError) Error added in v0.4.13

Error satisfies the builtin error interface

func (ClusterRoleValidationError) ErrorName added in v0.4.13

func (e ClusterRoleValidationError) ErrorName() string

ErrorName returns error name.

func (ClusterRoleValidationError) Field added in v0.4.13

Field function returns field value.

func (ClusterRoleValidationError) Key added in v0.4.13

Key function returns key value.

func (ClusterRoleValidationError) Reason added in v0.4.13

Reason function returns reason value.

type ClusterRole_ClusterRoleScope added in v0.4.13

type ClusterRole_ClusterRoleScope int32
const (
	ClusterRole_CLUSTER ClusterRole_ClusterRoleScope = 0
	ClusterRole_TENANT  ClusterRole_ClusterRoleScope = 1
)

func (ClusterRole_ClusterRoleScope) Descriptor added in v0.4.13

func (ClusterRole_ClusterRoleScope) Enum added in v0.4.13

func (ClusterRole_ClusterRoleScope) EnumDescriptor deprecated added in v0.4.13

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

Deprecated: Use ClusterRole_ClusterRoleScope.Descriptor instead.

func (ClusterRole_ClusterRoleScope) Number added in v0.4.13

func (ClusterRole_ClusterRoleScope) String added in v0.4.13

func (ClusterRole_ClusterRoleScope) Type added in v0.4.13

type ClusterValidationError added in v0.3.0

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

ClusterValidationError is the validation error returned by Cluster.Validate if the designated constraints aren't met.

func (ClusterValidationError) Cause added in v0.3.0

func (e ClusterValidationError) Cause() error

Cause function returns cause value.

func (ClusterValidationError) Error added in v0.3.0

func (e ClusterValidationError) Error() string

Error satisfies the builtin error interface

func (ClusterValidationError) ErrorName added in v0.3.0

func (e ClusterValidationError) ErrorName() string

ErrorName returns error name.

func (ClusterValidationError) Field added in v0.3.0

func (e ClusterValidationError) Field() string

Field function returns field value.

func (ClusterValidationError) Key added in v0.3.0

func (e ClusterValidationError) Key() bool

Key function returns key value.

func (ClusterValidationError) Reason added in v0.3.0

func (e ClusterValidationError) Reason() string

Reason function returns reason value.

type LifecycleMetadata

type LifecycleMetadata struct {

	// When it has been created
	Created *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	// By whom it has been created
	CreatedById string `protobuf:"bytes,2,opt,name=created_by_id,json=createdById,proto3" json:"created_by_id,omitempty"`
	// When it has been last modified
	LastModified *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
	// By whom it has been last modified
	LastModifiedById string `protobuf:"bytes,4,opt,name=last_modified_by_id,json=lastModifiedById,proto3" json:"last_modified_by_id,omitempty"`
	// By whom it has been deleted
	DeletedById string `protobuf:"bytes,5,opt,name=deleted_by_id,json=deletedById,proto3" json:"deleted_by_id,omitempty"`
	// When it has been deleted
	Deleted *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*LifecycleMetadata) Descriptor deprecated

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

Deprecated: Use LifecycleMetadata.ProtoReflect.Descriptor instead.

func (*LifecycleMetadata) GetCreated

func (x *LifecycleMetadata) GetCreated() *timestamppb.Timestamp

func (*LifecycleMetadata) GetCreatedById

func (x *LifecycleMetadata) GetCreatedById() string

func (*LifecycleMetadata) GetDeleted

func (x *LifecycleMetadata) GetDeleted() *timestamppb.Timestamp

func (*LifecycleMetadata) GetDeletedById

func (x *LifecycleMetadata) GetDeletedById() string

func (*LifecycleMetadata) GetLastModified

func (x *LifecycleMetadata) GetLastModified() *timestamppb.Timestamp

func (*LifecycleMetadata) GetLastModifiedById

func (x *LifecycleMetadata) GetLastModifiedById() string

func (*LifecycleMetadata) ProtoMessage

func (*LifecycleMetadata) ProtoMessage()

func (*LifecycleMetadata) ProtoReflect

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

func (*LifecycleMetadata) Reset

func (x *LifecycleMetadata) Reset()

func (*LifecycleMetadata) String

func (x *LifecycleMetadata) String() string

func (*LifecycleMetadata) Validate added in v0.3.0

func (m *LifecycleMetadata) Validate() error

Validate checks the field values on LifecycleMetadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LifecycleMetadata) ValidateAll added in v0.3.0

func (m *LifecycleMetadata) ValidateAll() error

ValidateAll checks the field values on LifecycleMetadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LifecycleMetadataMultiError, or nil if none found.

type LifecycleMetadataMultiError added in v0.3.0

type LifecycleMetadataMultiError []error

LifecycleMetadataMultiError is an error wrapping multiple validation errors returned by LifecycleMetadata.ValidateAll() if the designated constraints aren't met.

func (LifecycleMetadataMultiError) AllErrors added in v0.3.0

func (m LifecycleMetadataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LifecycleMetadataMultiError) Error added in v0.3.0

Error returns a concatenation of all the error messages it wraps.

type LifecycleMetadataValidationError added in v0.3.0

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

LifecycleMetadataValidationError is the validation error returned by LifecycleMetadata.Validate if the designated constraints aren't met.

func (LifecycleMetadataValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (LifecycleMetadataValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (LifecycleMetadataValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (LifecycleMetadataValidationError) Field added in v0.3.0

Field function returns field value.

func (LifecycleMetadataValidationError) Key added in v0.3.0

Key function returns key value.

func (LifecycleMetadataValidationError) Reason added in v0.3.0

Reason function returns reason value.

type Tenant

type Tenant struct {

	// Unique identifier of the tenant (UUID 128-bit number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the tenant
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Prefix for namespaces and other resources related to the tenant.
	// DNS compatibility is ensured on validation. E.g. no more than 12
	// characters.
	Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// Metadata about the projection
	Metadata *LifecycleMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Tenant within Monoskope

func (*Tenant) Descriptor deprecated

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

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetId

func (x *Tenant) GetId() string

func (*Tenant) GetMetadata

func (x *Tenant) GetMetadata() *LifecycleMetadata

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) GetPrefix

func (x *Tenant) GetPrefix() string

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

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

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

func (*Tenant) Validate added in v0.3.0

func (m *Tenant) Validate() error

Validate checks the field values on Tenant with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tenant) ValidateAll added in v0.3.0

func (m *Tenant) ValidateAll() error

ValidateAll checks the field values on Tenant with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantMultiError, or nil if none found.

type TenantClusterBinding added in v0.3.0

type TenantClusterBinding struct {

	// Unique identifier of the binding (UUID 128-bit number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique identifier of the cluster (UUID 128-bit number)
	ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Unique identifier of the tenant (UUID 128-bit number)
	TenantId string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Metadata about the projection
	Metadata *LifecycleMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

TenantClusterBinding represents which tenant has access to what cluster

func (*TenantClusterBinding) Descriptor deprecated added in v0.3.0

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

Deprecated: Use TenantClusterBinding.ProtoReflect.Descriptor instead.

func (*TenantClusterBinding) GetClusterId added in v0.3.0

func (x *TenantClusterBinding) GetClusterId() string

func (*TenantClusterBinding) GetId added in v0.3.0

func (x *TenantClusterBinding) GetId() string

func (*TenantClusterBinding) GetMetadata added in v0.3.0

func (x *TenantClusterBinding) GetMetadata() *LifecycleMetadata

func (*TenantClusterBinding) GetTenantId added in v0.3.0

func (x *TenantClusterBinding) GetTenantId() string

func (*TenantClusterBinding) ProtoMessage added in v0.3.0

func (*TenantClusterBinding) ProtoMessage()

func (*TenantClusterBinding) ProtoReflect added in v0.3.0

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

func (*TenantClusterBinding) Reset added in v0.3.0

func (x *TenantClusterBinding) Reset()

func (*TenantClusterBinding) String added in v0.3.0

func (x *TenantClusterBinding) String() string

func (*TenantClusterBinding) Validate added in v0.3.0

func (m *TenantClusterBinding) Validate() error

Validate checks the field values on TenantClusterBinding with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TenantClusterBinding) ValidateAll added in v0.3.0

func (m *TenantClusterBinding) ValidateAll() error

ValidateAll checks the field values on TenantClusterBinding with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantClusterBindingMultiError, or nil if none found.

type TenantClusterBindingMultiError added in v0.3.0

type TenantClusterBindingMultiError []error

TenantClusterBindingMultiError is an error wrapping multiple validation errors returned by TenantClusterBinding.ValidateAll() if the designated constraints aren't met.

func (TenantClusterBindingMultiError) AllErrors added in v0.3.0

func (m TenantClusterBindingMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantClusterBindingMultiError) Error added in v0.3.0

Error returns a concatenation of all the error messages it wraps.

type TenantClusterBindingValidationError added in v0.3.0

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

TenantClusterBindingValidationError is the validation error returned by TenantClusterBinding.Validate if the designated constraints aren't met.

func (TenantClusterBindingValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (TenantClusterBindingValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (TenantClusterBindingValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (TenantClusterBindingValidationError) Field added in v0.3.0

Field function returns field value.

func (TenantClusterBindingValidationError) Key added in v0.3.0

Key function returns key value.

func (TenantClusterBindingValidationError) Reason added in v0.3.0

Reason function returns reason value.

type TenantMultiError added in v0.3.0

type TenantMultiError []error

TenantMultiError is an error wrapping multiple validation errors returned by Tenant.ValidateAll() if the designated constraints aren't met.

func (TenantMultiError) AllErrors added in v0.3.0

func (m TenantMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantMultiError) Error added in v0.3.0

func (m TenantMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TenantUser

type TenantUser struct {

	// Unique identifier of the user (UUID 128-bit number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the user
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Email address of the user
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// Roles of the user within the tenant
	TenantRoles []string `protobuf:"bytes,4,rep,name=tenant_roles,json=tenantRoles,proto3" json:"tenant_roles,omitempty"`
	// Unique identifier of the tenant (UUID 128-bit number)
	TenantId string `protobuf:"bytes,5,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Metadata about the projection
	Metadata *LifecycleMetadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

User of a Tenant

func (*TenantUser) Descriptor deprecated

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

Deprecated: Use TenantUser.ProtoReflect.Descriptor instead.

func (*TenantUser) GetEmail

func (x *TenantUser) GetEmail() string

func (*TenantUser) GetId

func (x *TenantUser) GetId() string

func (*TenantUser) GetMetadata

func (x *TenantUser) GetMetadata() *LifecycleMetadata

func (*TenantUser) GetName

func (x *TenantUser) GetName() string

func (*TenantUser) GetTenantId

func (x *TenantUser) GetTenantId() string

func (*TenantUser) GetTenantRoles

func (x *TenantUser) GetTenantRoles() []string

func (*TenantUser) ProtoMessage

func (*TenantUser) ProtoMessage()

func (*TenantUser) ProtoReflect

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

func (*TenantUser) Reset

func (x *TenantUser) Reset()

func (*TenantUser) String

func (x *TenantUser) String() string

func (*TenantUser) Validate added in v0.3.0

func (m *TenantUser) Validate() error

Validate checks the field values on TenantUser with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TenantUser) ValidateAll added in v0.3.0

func (m *TenantUser) ValidateAll() error

ValidateAll checks the field values on TenantUser with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TenantUserMultiError, or nil if none found.

type TenantUserMultiError added in v0.3.0

type TenantUserMultiError []error

TenantUserMultiError is an error wrapping multiple validation errors returned by TenantUser.ValidateAll() if the designated constraints aren't met.

func (TenantUserMultiError) AllErrors added in v0.3.0

func (m TenantUserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TenantUserMultiError) Error added in v0.3.0

func (m TenantUserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TenantUserValidationError added in v0.3.0

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

TenantUserValidationError is the validation error returned by TenantUser.Validate if the designated constraints aren't met.

func (TenantUserValidationError) Cause added in v0.3.0

func (e TenantUserValidationError) Cause() error

Cause function returns cause value.

func (TenantUserValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (TenantUserValidationError) ErrorName added in v0.3.0

func (e TenantUserValidationError) ErrorName() string

ErrorName returns error name.

func (TenantUserValidationError) Field added in v0.3.0

Field function returns field value.

func (TenantUserValidationError) Key added in v0.3.0

Key function returns key value.

func (TenantUserValidationError) Reason added in v0.3.0

func (e TenantUserValidationError) Reason() string

Reason function returns reason value.

type TenantValidationError added in v0.3.0

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

TenantValidationError is the validation error returned by Tenant.Validate if the designated constraints aren't met.

func (TenantValidationError) Cause added in v0.3.0

func (e TenantValidationError) Cause() error

Cause function returns cause value.

func (TenantValidationError) Error added in v0.3.0

func (e TenantValidationError) Error() string

Error satisfies the builtin error interface

func (TenantValidationError) ErrorName added in v0.3.0

func (e TenantValidationError) ErrorName() string

ErrorName returns error name.

func (TenantValidationError) Field added in v0.3.0

func (e TenantValidationError) Field() string

Field function returns field value.

func (TenantValidationError) Key added in v0.3.0

func (e TenantValidationError) Key() bool

Key function returns key value.

func (TenantValidationError) Reason added in v0.3.0

func (e TenantValidationError) Reason() string

Reason function returns reason value.

type User

type User struct {

	// Unique identifier of the user (UUID 128-bit number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the user
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Email address of the user
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// Roles of the user
	Roles []*UserRoleBinding `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
	// Metadata about the projection
	Metadata *LifecycleMetadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Source the user originates from, e.g. "monoskope"
	Source common.UserSource `protobuf:"varint,6,opt,name=source,proto3,enum=common.UserSource" json:"source,omitempty"`
	// contains filtered or unexported fields
}

User within Monoskope

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetMetadata

func (x *User) GetMetadata() *LifecycleMetadata

func (*User) GetName

func (x *User) GetName() string

func (*User) GetRoles

func (x *User) GetRoles() []*UserRoleBinding

func (*User) GetSource added in v0.3.0

func (x *User) GetSource() common.UserSource

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate added in v0.3.0

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*User) ValidateAll added in v0.3.0

func (m *User) ValidateAll() error

ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.

type UserMultiError added in v0.3.0

type UserMultiError []error

UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.

func (UserMultiError) AllErrors added in v0.3.0

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error added in v0.3.0

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserRoleBinding

type UserRoleBinding struct {

	// Unique identifier of the user role binding (UUID 128-bit number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique identifier of the user (UUID 128-bit number)
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// Name of the role
	Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	// Scope of the role
	Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"`
	// Target resource of the role
	Resource string `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"`
	// Metadata about the projection
	Metadata *LifecycleMetadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*UserRoleBinding) Descriptor deprecated

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

Deprecated: Use UserRoleBinding.ProtoReflect.Descriptor instead.

func (*UserRoleBinding) GetId

func (x *UserRoleBinding) GetId() string

func (*UserRoleBinding) GetMetadata

func (x *UserRoleBinding) GetMetadata() *LifecycleMetadata

func (*UserRoleBinding) GetResource

func (x *UserRoleBinding) GetResource() string

func (*UserRoleBinding) GetRole

func (x *UserRoleBinding) GetRole() string

func (*UserRoleBinding) GetScope

func (x *UserRoleBinding) GetScope() string

func (*UserRoleBinding) GetUserId

func (x *UserRoleBinding) GetUserId() string

func (*UserRoleBinding) ProtoMessage

func (*UserRoleBinding) ProtoMessage()

func (*UserRoleBinding) ProtoReflect

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

func (*UserRoleBinding) Reset

func (x *UserRoleBinding) Reset()

func (*UserRoleBinding) String

func (x *UserRoleBinding) String() string

func (*UserRoleBinding) Validate added in v0.3.0

func (m *UserRoleBinding) Validate() error

Validate checks the field values on UserRoleBinding with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UserRoleBinding) ValidateAll added in v0.3.0

func (m *UserRoleBinding) ValidateAll() error

ValidateAll checks the field values on UserRoleBinding with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserRoleBindingMultiError, or nil if none found.

type UserRoleBindingMultiError added in v0.3.0

type UserRoleBindingMultiError []error

UserRoleBindingMultiError is an error wrapping multiple validation errors returned by UserRoleBinding.ValidateAll() if the designated constraints aren't met.

func (UserRoleBindingMultiError) AllErrors added in v0.3.0

func (m UserRoleBindingMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserRoleBindingMultiError) Error added in v0.3.0

Error returns a concatenation of all the error messages it wraps.

type UserRoleBindingValidationError added in v0.3.0

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

UserRoleBindingValidationError is the validation error returned by UserRoleBinding.Validate if the designated constraints aren't met.

func (UserRoleBindingValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (UserRoleBindingValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (UserRoleBindingValidationError) ErrorName added in v0.3.0

func (e UserRoleBindingValidationError) ErrorName() string

ErrorName returns error name.

func (UserRoleBindingValidationError) Field added in v0.3.0

Field function returns field value.

func (UserRoleBindingValidationError) Key added in v0.3.0

Key function returns key value.

func (UserRoleBindingValidationError) Reason added in v0.3.0

Reason function returns reason value.

type UserValidationError added in v0.3.0

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

UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.

func (UserValidationError) Cause added in v0.3.0

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error added in v0.3.0

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName added in v0.3.0

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field added in v0.3.0

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key added in v0.3.0

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason added in v0.3.0

func (e UserValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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