artifact

package
v1.0.0-beta.15 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package artifact defines artifact metadata shared by the engine and CLI.

Index

Constants

View Source
const ModuleDimension = "module"

Variables

This section is empty.

Functions

func IsStaticDimension

func IsStaticDimension(identifier string) bool

IsStaticDimension identifies keys available without loading collections.

Types

type Dimension

type Dimension struct {
	Kind           string
	CollectionType string
	Identifier     string `field:"true" doc:"Stable identifier: collection schema path, type:TypeName for an artifact type, or module."`
	Name           string `field:"true" doc:"Short name used to select this dimension."`
	QualifiedName  string `field:"true" doc:"Qualified name used when the short name is ambiguous."`
	ItemType       string `field:"true" doc:"The collection item or artifact type name, or empty for the module dimension."`
	KeyName        string `field:"true" doc:"The collection key argument name, or name for a static dimension."`
	KeyDescription string `field:"true" doc:"The collection key argument description, or empty for a static dimension."`
}

Dimension describes a schema axis, independent of its runtime keys.

func (*Dimension) Type

func (*Dimension) Type() *ast.Type

type Dimensions

type Dimensions []*Dimension

Dimensions is the set of dimensions in a selected schema scope.

func (Dimensions) DisplayName

func (dims Dimensions) DisplayName(dim *Dimension) string

DisplayName returns the shortest unambiguous name for a dimension.

func (Dimensions) Names

func (dims Dimensions) Names(dim *Dimension, wholeCollection bool) []string

Names lists selectors from shortest to most qualified. Collection boundaries provide parent identity; their fields are needed in names only on a conflict.

func (Dimensions) Resolve

func (dims Dimensions) Resolve(name string) (string, error)

Resolve binds an identifier or alias. Unknown names remain valid selectors that match no artifacts.

Jump to

Keyboard shortcuts

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