artifacts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DraftVersion = "0.1.0-draft"

Variables

This section is empty.

Functions

func SupportedVersions

func SupportedVersions() []string

Types

type Digest

type Digest struct {
	Algorithm string `json:"algorithm"`
	Value     string `json:"value"`
}

type FileLock

type FileLock struct {
	Path   string `json:"path"`
	Bytes  int    `json:"bytes"`
	SHA256 string `json:"sha256"`
}

type Lock

type Lock struct {
	FormatVersion int        `json:"formatVersion"`
	SpecVersion   string     `json:"specVersion"`
	Source        LockSource `json:"source"`
	BundleDigest  Digest     `json:"bundleDigest"`
	Files         []FileLock `json:"files"`
}

type LockSource

type LockSource struct {
	Repository    string `json:"repository"`
	Kind          string `json:"kind"`
	BaseCommit    string `json:"baseCommit"`
	Ref           string `json:"ref,omitempty"`
	WorktreeDirty bool   `json:"worktreeDirty"`
}

type Set

type Set struct {
	// contains filtered or unexported fields
}

func Load

func Load(version string) (*Set, error)

func (*Set) Case

func (s *Set) Case(relative string) ([]byte, error)

func (*Set) File

func (s *Set) File(relative string) (FileLock, bool)

func (*Set) Lock

func (s *Set) Lock() Lock

func (*Set) Manifest

func (s *Set) Manifest() ([]byte, error)

func (*Set) ManifestSchema

func (s *Set) ManifestSchema() ([]byte, error)

func (*Set) Read

func (s *Set) Read(relative string) ([]byte, error)

func (*Set) Schema

func (s *Set) Schema() ([]byte, error)

type UnsupportedVersionError

type UnsupportedVersionError struct {
	Version string
}

func (*UnsupportedVersionError) Error

func (e *UnsupportedVersionError) Error() string

Jump to

Keyboard shortcuts

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