projections

package
v0.3.6-dev25 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertificateProjection

func NewCertificateProjection(id uuid.UUID) eventsourcing.Projection

func NewClusterProjection

func NewClusterProjection(id uuid.UUID) eventsourcing.Projection

func NewTenantClusterBindingProjection added in v0.3.0

func NewTenantClusterBindingProjection(id uuid.UUID) eventsourcing.Projection

func NewTenantProjection

func NewTenantProjection(id uuid.UUID) eventsourcing.Projection

func NewUserProjection

func NewUserProjection(id uuid.UUID) eventsourcing.Projection

Types

type Certificate

type Certificate struct {
	*DomainProjection
	*projections.Certificate
	SigningRequest []byte
}

func (*Certificate) ID

func (p *Certificate) ID() uuid.UUID

ID implements the ID method of the Aggregate interface.

func (*Certificate) Proto

func (p *Certificate) Proto() *projections.Certificate

Proto gets the underlying proto representation.

type Cluster

type Cluster struct {
	*DomainProjection
	*projections.Cluster
}

func (*Cluster) ID

func (p *Cluster) ID() uuid.UUID

ID implements the ID method of the Projection interface.

func (*Cluster) Proto

func (p *Cluster) Proto() *projections.Cluster

Proto gets the underlying proto representation.

type DomainProjection

type DomainProjection struct {
	projections.LifecycleMetadata
	// contains filtered or unexported fields
}

func NewDomainProjection

func NewDomainProjection() *DomainProjection

func (*DomainProjection) IncrementVersion

func (p *DomainProjection) IncrementVersion()

IncrementVersion implements the IncrementVersion method of the Projection interface.

func (*DomainProjection) Version

func (p *DomainProjection) Version() uint64

Version implements the Version method of the Projection interface.

type Tenant

type Tenant struct {
	*DomainProjection
	*projections.Tenant
}

func (*Tenant) ID

func (p *Tenant) ID() uuid.UUID

ID implements the ID method of the Aggregate interface.

func (*Tenant) Proto

func (p *Tenant) Proto() *projections.Tenant

Proto gets the underlying proto representation.

type TenantClusterBinding added in v0.3.0

type TenantClusterBinding struct {
	*DomainProjection
	*projections.TenantClusterBinding
}

func (*TenantClusterBinding) ID added in v0.3.0

func (p *TenantClusterBinding) ID() uuid.UUID

ID implements the ID method of the Aggregate interface.

func (*TenantClusterBinding) Proto added in v0.3.0

Proto gets the underlying proto representation.

type TenantUser

type TenantUser struct {
	*DomainProjection
	*projections.TenantUser
}

func NewTenantUserProjection

func NewTenantUserProjection(tenantId uuid.UUID, user *User, rolebindings []*UserRoleBinding) *TenantUser

func (*TenantUser) ID

func (p *TenantUser) ID() uuid.UUID

ID implements the ID method of the Aggregate interface.

func (*TenantUser) Proto

func (p *TenantUser) Proto() *projections.TenantUser

Proto gets the underlying proto representation.

type User

type User struct {
	*DomainProjection
	*projections.User
}

func (*User) ID

func (p *User) ID() uuid.UUID

ID implements the ID method of the Aggregate interface.

func (*User) Proto

func (p *User) Proto() *projections.User

Proto gets the underlying proto representation.

type UserRoleBinding

type UserRoleBinding struct {
	*DomainProjection
	*projections.UserRoleBinding
}

func NewUserRoleBinding

func NewUserRoleBinding(id uuid.UUID) *UserRoleBinding

func (*UserRoleBinding) ID

func (p *UserRoleBinding) ID() uuid.UUID

ID implements the ID method of the Aggregate interface.

func (*UserRoleBinding) Proto

Proto gets the underlying proto representation.

Jump to

Keyboard shortcuts

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