Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2024 Changes in this version + type ComputeCapabilityListFilters struct + IDIn []string + IncludeDeleted bool + Limit uint32 + NameIn []string + StateIn []ComputeCapabilityState + StateNotIn []ComputeCapabilityState + TypeIn []string + VersionEq *uint64 + VersionGte *uint64 + VersionLte *uint64 + type ComputeCapabilityRecord struct + Metadata core.Metadata + Name string + Score uint32 + Status ComputeCapabilityStatus + Type string + type ComputeCapabilityState string + const ComputeCapabilityStateActive + const ComputeCapabilityStateInActive + const ComputeCapabilityStatePending + const ComputeCapabilityStateUnknown + func ComputeCapabilityStateFromString(s string) ComputeCapabilityState + func (s ComputeCapabilityState) ToString() string + type ComputeCapabilityStatus struct + Message string + State ComputeCapabilityState + type CreateRequest struct + Name string + Score uint32 + Type string + type CreateResponse struct + Record ComputeCapabilityRecord + type DeleteRequest struct + Metadata core.Metadata + type GetResponse struct + Record ComputeCapabilityRecord + 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 ComputeCapabilityListFilters + type ListResponse struct + Records []ComputeCapabilityRecord + type Repository interface + Delete func(context.Context, core.Metadata) error + GetByID func(context.Context, string) (ComputeCapabilityRecord, error) + GetByName func(context.Context, string) (ComputeCapabilityRecord, error) + Insert func(context.Context, ComputeCapabilityRecord) error + List func(context.Context, ComputeCapabilityListFilters) ([]ComputeCapabilityRecord, error) + UpdateState func(context.Context, core.Metadata, ComputeCapabilityStatus) error + type UpdateResponse struct + Record ComputeCapabilityRecord + type UpdateStateRequest struct + Metadata core.Metadata + Status ComputeCapabilityStatus