artifacts

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-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 ExternalRef

type ExternalRef struct {
	URL    string `json:"url"`
	Expand bool   `json:"expand,omitempty"`
}

type Ref

type Ref struct {
	Kind     RefKind      `json:"kind"`
	Name     string       `json:"name,omitempty"`
	Stored   *StoredRef   `json:"stored,omitempty"`
	External *ExternalRef `json:"external,omitempty"`
}

func NewExternalRef

func NewExternalRef(name string, url string, expand bool) Ref

func NewStoredRef

func NewStoredRef(key jobdb.ArtifactKey) Ref

func RefFromArtifact

func RefFromArtifact(artifact jobdb.Artifact) (Ref, error)

func (Ref) Identity

func (r Ref) Identity() string

func (Ref) IsZero

func (r Ref) IsZero() bool

func (Ref) NameValue

func (r Ref) NameValue() string

func (Ref) SizeBytes

func (r Ref) SizeBytes() int64

func (Ref) StoredKey

func (r Ref) StoredKey() (jobdb.ArtifactKey, bool)

func (Ref) Validate

func (r Ref) Validate() error

type RefKind

type RefKind string
const (
	RefKindStored   RefKind = "stored"
	RefKindExternal RefKind = "external"
)

type StoredRef

type StoredRef struct {
	Key jobdb.ArtifactKey `json:"key"`
}

Jump to

Keyboard shortcuts

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