projections

package
v0.3.6-dev0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_domain_projections_certificate_proto protoreflect.FileDescriptor
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 Certificate

type Certificate struct {

	// Unique identifier of the certificate (UUID 128-bit number)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique identifier of the referenced aggregate (UUID 128-bit number)
	ReferencedAggregateId string `` /* 126-byte string literal not displayed */
	// Type of the aggregate referenced
	AggregateType string `protobuf:"bytes,3,opt,name=aggregate_type,json=aggregateType,proto3" json:"aggregate_type,omitempty"`
	// actual certificate
	Certificate []byte `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// bundle of CA certificates for the certificate managed
	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
}

Certficates can exist for any aggregate and are mainted by the control plane.

func (*Certificate) Descriptor deprecated

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

Deprecated: Use Certificate.ProtoReflect.Descriptor instead.

func (*Certificate) GetAggregateType

func (x *Certificate) GetAggregateType() string

func (*Certificate) GetCaCertBundle

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

func (*Certificate) GetCertificate

func (x *Certificate) GetCertificate() []byte

func (*Certificate) GetId

func (x *Certificate) GetId() string

func (*Certificate) GetMetadata

func (x *Certificate) GetMetadata() *LifecycleMetadata

func (*Certificate) GetReferencedAggregateId

func (x *Certificate) GetReferencedAggregateId() string

func (*Certificate) ProtoMessage

func (*Certificate) ProtoMessage()

func (*Certificate) ProtoReflect

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

func (*Certificate) Reset

func (x *Certificate) Reset()

func (*Certificate) String

func (x *Certificate) String() string

func (*Certificate) Validate added in v0.3.0

func (m *Certificate) Validate() error

Validate checks the field values on Certificate 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 (*Certificate) ValidateAll added in v0.3.0

func (m *Certificate) ValidateAll() error

ValidateAll checks the field values on Certificate 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 CertificateMultiError, or nil if none found.

type CertificateMultiError added in v0.3.0

type CertificateMultiError []error

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

func (CertificateMultiError) AllErrors added in v0.3.0

func (m CertificateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CertificateMultiError) Error added in v0.3.0

func (m CertificateMultiError) Error() string

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

type CertificateValidationError added in v0.3.0

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

CertificateValidationError is the validation error returned by Certificate.Validate if the designated constraints aren't met.

func (CertificateValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (CertificateValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (CertificateValidationError) ErrorName added in v0.3.0

func (e CertificateValidationError) ErrorName() string

ErrorName returns error name.

func (CertificateValidationError) Field added in v0.3.0

Field function returns field value.

func (CertificateValidationError) Key added in v0.3.0

Key function returns key value.

func (CertificateValidationError) Reason added in v0.3.0

Reason function returns reason value.

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"`
	// Bootstrap token for cluster authentication
	BootstrapToken string `protobuf:"bytes,7,opt,name=bootstrap_token,json=bootstrapToken,proto3" json:"bootstrap_token,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) GetBootstrapToken

func (x *Cluster) GetBootstrapToken() 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 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 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