packer

package
v0.1.61 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: GPL-3.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PackageMetadataFile = "Pack.yaml"
)

Variables

This section is empty.

Functions

func Download added in v0.1.36

func Download(URL *url.URL) ([]byte, error)

func Init added in v0.1.57

func Init(name string) error

func ParseYAML

func ParseYAML(name string, yamlBytes []byte, variablesBytes []byte, set []string) ([]json.RawMessage, error)

func ReadYAMLFile

func ReadYAMLFile(path string) ([]byte, error)

Types

type Client added in v0.1.57

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

func NewClient added in v0.1.57

func NewClient(credentials *ocicredentials.Credentials) (*Client, error)

func (*Client) CreatePackage added in v0.1.57

func (c *Client) CreatePackage(ctx context.Context, signer *signature.Signer, repository string, outputDir string) (*PackageMetadata, error)

func (*Client) DownloadPackage added in v0.1.57

func (c *Client) DownloadPackage(ctx context.Context, repository, tag, outputDir string) (*PackageMetadata, error)

func (*Client) TestLogin added in v0.1.60

func (c *Client) TestLogin(ctx context.Context) error

func (*Client) UploadPackage added in v0.1.57

func (c *Client) UploadPackage(ctx context.Context, packagePath, repository, tag string) error

func (*Client) VerifyDownloadedPackage added in v0.1.60

func (c *Client) VerifyDownloadedPackage(packagePath string) error

type Definition added in v0.1.56

type Definition struct {
	File       string
	Definition *common.Request
}

func Parse

func Parse(name string, bytes []byte, variables []byte, set []string) ([]*Definition, error)

type Pack added in v0.1.36

type Pack struct {
	Name        string
	Version     string
	Definitions []*Definition `yaml:"-"`
	Variables   []byte        `yaml:"-"`
}

func New added in v0.1.36

func New() *Pack

func Read added in v0.1.26

func Read(path string, set []string, relations *relations.RelationRegistry) (*Pack, error)

type PackageMetadata added in v0.1.57

type PackageMetadata struct {
	Name    string `yaml:"name" json:"name"`
	Version string `yaml:"version" json:"version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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