artifacts

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: AGPL-3.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 swf.ArtifactKey) Ref

func RefFromArtifact

func RefFromArtifact(artifact swf.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() (swf.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 swf.ArtifactKey `json:"key"`
}

Jump to

Keyboard shortcuts

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