Versions in this module Expand all Collapse all v0 v0.2.0 Aug 30, 2023 Changes in this version + var DefaultSettings = Settings + var ErrDisabled = errors.New("disabled") + var ErrProjectNotFound = errors.New("project not found") + var ErrRecordNotFound = errors.New("record not found") + func DecodePageToken(token string, cursor any) error + func EncodePageToken(cursor Cursor) (string, error) + type Actor struct + ID string + Metadata map[string]string + Type string + type Cursor interface + Empty func() bool + type ID uuid.UUID + func MustNewID() ID + func MustParseID(s string) ID + func NewID() (ID, error) + func ParseID(s string) (ID, error) + func (id *ID) Scan(src interface{}) error + func (id ID) IsEmpty() bool + func (id ID) String() string + func (id ID) Value() (driver.Value, error) + type Operation struct + ID string + Metadata map[string]string + Status OperationStatus + Time time.Time + TraceContext TraceContext + Type string + type OperationStatus int + const OperationStatusFailed + const OperationStatusSucceeded + const OperationStatusUnspecified + func (s OperationStatus) Int() int + type Project struct + CreateTime time.Time + DeleteRecordEnabled types.BoolValue + DisplayName string + ID ID + UpdateRecordEnabled types.BoolValue + type ProjectCursor struct + LastID *ID + func NewProjectCursor(projects []Project, pageSize int32) ProjectCursor + func (p ProjectCursor) Empty() bool + type ProjectUpdate struct + DeleteRecordEnabled types.BoolValue + DisplayName string + UpdateDeleteRecordEnabled bool + UpdateDisplayName bool + UpdateRecordEnabled types.BoolValue + UpdateUpdateRecordEnabled bool + type Record struct + Actor Actor + CreateTime time.Time + ID ID + Labels map[string]string + Operation Operation + ProjectID ID + Resource Resource + type RecordCursor struct + LastID *ID + LastOperationTime *time.Time + func NewRecordCursor(records []Record, pageSize int32) RecordCursor + func (p RecordCursor) Empty() bool + type RecordFilter struct + ActorID string + ActorType string + Labels map[string]string + OperationID string + OperationTimeFrom time.Time + OperationTimeTo time.Time + OperationType string + ResourceID string + ResourceType string + type RecordUpdate struct + Actor Actor + Labels map[string]string + Operation Operation + Resource Resource + UpdateActor bool + UpdateLabels bool + UpdateOperation bool + UpdateResource bool + type RecordsRestrictions struct + Actor RecordsRestrictionsActor + Labels RestrictionsKeyValue + Operation RecordsRestrictionsOperation + Resource RecordsRestrictionsResource + func (r RecordsRestrictions) Validate() error + type RecordsRestrictionsActor struct + ID RestrictionsString + Metadata RestrictionsKeyValue + Type RestrictionsString + func (r RecordsRestrictionsActor) Validate() error + type RecordsRestrictionsOperation struct + ID RestrictionsString + Metadata RestrictionsKeyValue + Type RestrictionsString + func (r RecordsRestrictionsOperation) Validate() error + type RecordsRestrictionsResource struct + Changes RecordsRestrictionsResourceChanges + ID RestrictionsString + Metadata RestrictionsKeyValue + Type RestrictionsString + func (r RecordsRestrictionsResource) Validate() error + type RecordsRestrictionsResourceChanges struct + Description RestrictionsString + Name RestrictionsString + NewValue RestrictionsBytes + OldValue RestrictionsBytes + TotalMaxCount int + func (r RecordsRestrictionsResourceChanges) Validate() error + type RecordsSettings struct + DeleteEnabled bool + Restrictions RecordsRestrictions + UpdateEnabled bool + func (r RecordsSettings) Validate() error + type Resource struct + Changes []ResourceChange + ID string + Metadata map[string]string + Type string + type ResourceChange struct + Description string + Name string + NewValue json.RawMessage + OldValue json.RawMessage + type RestrictionsBytes struct + MaxSizeBytes int + func (r RestrictionsBytes) Validate() error + type RestrictionsKeyValue struct + KeyMaxSizeBytes int + TotalMaxSizeBytes int + ValueMaxSizeBytes int + func (r RestrictionsKeyValue) Validate() error + type RestrictionsString struct + MaxSizeBytes int + func (r RestrictionsString) Validate() error + type Settings struct + Records RecordsSettings + func (s Settings) Validate() error + type TraceContext struct + Traceparent string + Tracestate string + func (tc TraceContext) IsZero() bool