release

package
v0.1.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Overview

Package release defines provider-independent commands for registering immutable application artifacts.

Index

Constants

View Source
const (
	ArtifactOCIImage = "OCIImage"
)

Variables

This section is empty.

Functions

func Validate

func Validate(command RegisterCommand) error

Types

type Artifact

type Artifact struct {
	Kind      string `json:"kind"`
	Reference string `json:"reference"`
}

type Provenance

type Provenance struct {
	Producer      string `json:"producer"`
	ExternalRunID string `json:"externalRunId,omitempty"`
	URL           string `json:"url,omitempty"`
}

type RegisterCommand

type RegisterCommand struct {
	Artifact   Artifact   `json:"artifact"`
	Source     Source     `json:"source"`
	Provenance Provenance `json:"provenance"`
}

type Source

type Source struct {
	Provider   string `json:"provider"`
	Repository string `json:"repository"`
	Revision   string `json:"revision"`
	Ref        string `json:"ref,omitempty"`
}

Jump to

Keyboard shortcuts

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