root

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Root

type Root struct {
	ID          basespec.RootID     `json:"id"`
	StorageKey  basespec.StorageKey `json:"storageKey"`
	DisplayName string              `json:"displayName"`
	Description string              `json:"description,omitempty"`
	Revision    uint64              `json:"revision"`
	CreatedAt   time.Time           `json:"createdAt"`
	ModifiedAt  time.Time           `json:"modifiedAt"`
	RetiredAt   *time.Time          `json:"retiredAt,omitempty"`
}

func (Root) Validate

func (r Root) Validate() error

type RootDraft

type RootDraft struct {
	ID          basespec.RootID     `json:"id"                    required:"true"`
	StorageKey  basespec.StorageKey `json:"storageKey"            required:"true"`
	DisplayName string              `json:"displayName"           required:"true"`
	Description string              `json:"description,omitempty"`
}

RootDraft is the caller-owned input for Root creation.

type RootUpdate

type RootUpdate struct {
	ExpectedRevision uint64 `json:"expectedRevision"`
	DisplayName      string `json:"displayName"`
	Description      string `json:"description,omitempty"`
}

RootUpdate is the caller-owned input for a Root metadata update.

Jump to

Keyboard shortcuts

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