Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2024 Changes in this version + type ClusterListFilters struct + IDIn []string + IncludeDeleted bool + Limit uint32 + NameIn []string + StateIn []ClusterState + StateNotIn []ClusterState + VersionEq *uint64 + VersionGte *uint64 + VersionLte *uint64 + type ClusterRecord struct + Metadata core.Metadata + Name string + Status ClusterStatus + type ClusterState string + const ClusterStateActive + const ClusterStateInActive + const ClusterStatePending + const ClusterStateUnknown + func ClusterStateFromString(s string) ClusterState + func (s ClusterState) ToString() string + type ClusterStatus struct + Message string + State ClusterState + type CreateRequest struct + Name string + type CreateResponse struct + Record ClusterRecord + type DeleteRequest struct + Metadata core.Metadata + type GetResponse struct + Record ClusterRecord + type Ledger interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + Delete func(context.Context, *DeleteRequest) error + GetByID func(context.Context, string) (*GetResponse, error) + GetByName func(context.Context, string) (*GetResponse, error) + List func(context.Context, *ListRequest) (*ListResponse, error) + UpdateStatus func(context.Context, *UpdateStateRequest) (*UpdateResponse, error) + func NewLedger(repo Repository) Ledger + type ListRequest struct + Filters ClusterListFilters + type ListResponse struct + Records []ClusterRecord + type Repository interface + Delete func(context.Context, core.Metadata) error + GetByID func(context.Context, string) (ClusterRecord, error) + GetByName func(context.Context, string) (ClusterRecord, error) + Insert func(context.Context, ClusterRecord) error + List func(context.Context, ClusterListFilters) ([]ClusterRecord, error) + UpdateStatus func(context.Context, core.Metadata, ClusterStatus) error + type UpdateResponse struct + Record ClusterRecord + type UpdateStateRequest struct + Metadata core.Metadata + Status ClusterStatus