Documentation ¶
Index ¶
- func CreateCommandData(commandData protoreflect.ProtoMessage) (*anypb.Any, error)
- func NewCommand(aggregateId uuid.UUID, commandType es.CommandType) *esApi.Command
- func NewCommandWithData(aggregateId uuid.UUID, commandType es.CommandType, ...) *esApi.Command
- func NewCreateClusterCommand(id uuid.UUID) es.Command
- func NewCreateTenantClusterBindingCommand(id uuid.UUID) es.Command
- func NewCreateTenantCommand(id uuid.UUID) es.Command
- func NewCreateUserCommand(id uuid.UUID) es.Command
- func NewCreateUserRoleBindingCommand(id uuid.UUID) es.Command
- func NewDeleteClusterCommand(id uuid.UUID) es.Command
- func NewDeleteTenantClusterBindingCommand(id uuid.UUID) es.Command
- func NewDeleteTenantCommand(id uuid.UUID) es.Command
- func NewDeleteUserCommand(id uuid.UUID) es.Command
- func NewDeleteUserRoleBindingCommand(id uuid.UUID) es.Command
- func NewUpdateClusterCommand(id uuid.UUID) es.Command
- func NewUpdateTenantCommand(id uuid.UUID) es.Command
- func NewUpdateUserCommand(id uuid.UUID) es.Command
- type CreateClusterCommand
- type CreateTenantClusterBindingCommand
- type CreateTenantCommand
- type CreateUserCommand
- type CreateUserRoleBindingCommand
- type DeleteClusterCommand
- type DeleteTenantClusterBindingCommand
- type DeleteTenantCommand
- type DeleteUserCommand
- type DeleteUserRoleBindingCommand
- type UpdateClusterCommand
- type UpdateTenantCommand
- type UpdateUserCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCommandData ¶
func CreateCommandData(commandData protoreflect.ProtoMessage) (*anypb.Any, error)
func NewCommand ¶ added in v0.4.14
NewCommand builds up a new proto command with the given type.
func NewCommandWithData ¶ added in v0.4.14
func NewCommandWithData(aggregateId uuid.UUID, commandType es.CommandType, commandData protoreflect.ProtoMessage) *esApi.Command
NewCommand builds up a new proto command with the given type and data.
func NewCreateClusterCommand ¶
NewCreateClusterCommand creates a CreateClusterCommand.
func NewCreateTenantClusterBindingCommand ¶ added in v0.3.0
func NewCreateTenantCommand ¶
NewCreateTenantCommand creates a CreateTenantCommand.
func NewDeleteClusterCommand ¶
NewDeleteClusterCommand creates a DeleteClusterCommand.
func NewDeleteTenantClusterBindingCommand ¶ added in v0.3.0
NewDeleteTenantClusterBindingCommand creates a DeleteTenantClusterBindingCommand.
func NewDeleteTenantCommand ¶
NewDeleteTenantCommand creates a DeleteTenantCommand.
func NewDeleteUserCommand ¶
NewDeleteUserCommand creates a DeleteUserCommand.
func NewUpdateClusterCommand ¶
NewUpdateClusterCommand creates an UpdateClusterCommand.
func NewUpdateTenantCommand ¶
NewUpdateTenantCommand creates an UpdateTenantCommand.
Types ¶
type CreateClusterCommand ¶
type CreateClusterCommand struct { *es.BaseCommand cmdData.CreateCluster }
CreateClusterCommand is a command for creating a cluster.
type CreateTenantClusterBindingCommand ¶ added in v0.3.0
type CreateTenantClusterBindingCommand struct { *es.BaseCommand cmdData.CreateTenantClusterBindingCommandData }
CreateTenantClusterBindingCommand is a command for giving a tenant access to a cluster.
type CreateTenantCommand ¶
type CreateTenantCommand struct { *es.BaseCommand cmdData.CreateTenantCommandData }
CreateTenantCommand is a command for creating a tenant.
type CreateUserCommand ¶
type CreateUserCommand struct { *es.BaseCommand cmdData.CreateUserCommandData }
CreateUserCommand is a command for creating a user.
type CreateUserRoleBindingCommand ¶
type CreateUserRoleBindingCommand struct { *es.BaseCommand cmdData.CreateUserRoleBindingCommandData }
CreateUserRoleBindingCommand is a command for adding a role to a user.
type DeleteClusterCommand ¶
type DeleteClusterCommand struct {
*es.BaseCommand
}
DeleteClusterCommand is a command for deleting a cluster.
type DeleteTenantClusterBindingCommand ¶ added in v0.3.0
type DeleteTenantClusterBindingCommand struct {
*es.BaseCommand
}
DeleteTenantClusterBindingCommand is a command for deleting a TenantClusterBinding.
type DeleteTenantCommand ¶
type DeleteTenantCommand struct {
*es.BaseCommand
}
DeleteTenantCommand is a command for deleting a tenant.
type DeleteUserCommand ¶
type DeleteUserCommand struct {
*es.BaseCommand
}
DeleteUserCommand is a command for deleting a user.
type DeleteUserRoleBindingCommand ¶
type DeleteUserRoleBindingCommand struct {
*es.BaseCommand
}
DeleteUserRoleBindingCommand is a command for removing a role from a user.
type UpdateClusterCommand ¶
type UpdateClusterCommand struct { *es.BaseCommand cmdData.UpdateCluster }
UpdateClusterCommand is a command for updating a cluster.
type UpdateTenantCommand ¶
type UpdateTenantCommand struct { *es.BaseCommand cmdData.UpdateTenantCommandData }
UpdateTenantCommand is a command for updating a tenant.
type UpdateUserCommand ¶ added in v0.3.0
type UpdateUserCommand struct { *es.BaseCommand cmdData.UpdateUserCommandData }
UpdateUserCommand is a command for updating a user.