model

package
v0.3.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrActivationNotFound = errors.New("bundles: activation not found")
)

Functions

This section is empty.

Types

type Activation

type Activation struct {
	ID                       string
	Version                  int64
	ExtensionName            string
	BundleName               string
	ProfileName              string
	Scope                    Scope
	WorkspaceID              string
	SpecContentHash          string
	NetworkRequirementDigest string
	ConfirmedBy              string
	ConfirmedAt              string
	CreatedAt                time.Time
	UpdatedAt                time.Time
}

func (Activation) Normalize

func (a Activation) Normalize() Activation

func (Activation) Validate

func (a Activation) Validate() error

func (Activation) Validated

func (a Activation) Validated() (Activation, error)

type InventoryItem

type InventoryItem struct {
	ActivationID  string
	ResourceKind  string
	ResourceID    string
	ResourceName  string
	RecordedAtUTC time.Time
}

func (InventoryItem) Normalize

func (i InventoryItem) Normalize() InventoryItem

func (InventoryItem) Validate

func (i InventoryItem) Validate() error

func (InventoryItem) Validated

func (i InventoryItem) Validated() (InventoryItem, error)

type Scope

type Scope string
const (
	ScopeGlobal    Scope = "global"
	ScopeWorkspace Scope = "workspace"
)

func (Scope) Normalize

func (s Scope) Normalize() Scope

func (Scope) Validate

func (s Scope) Validate(workspaceID string) error

Jump to

Keyboard shortcuts

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