packer

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: GPL-3.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultRegistry     = "registry.simplecontainer.io"
	PackageMetadataFile = "Pack.yaml"
	DefaultMediaType    = "application/vnd.simplecontainer.pack.v1+json"
)

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(config *Config) (*Client, error)

func (*Client) CreatePackage added in v0.1.57

func (c *Client) CreatePackage(ctx context.Context, sourceDir, 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) UploadPackage added in v0.1.57

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

type Config added in v0.1.57

type Config struct {
	Registry  string
	Username  string
	Password  string
	Insecure  bool
	PlainHTTP bool
	Debug     bool
}

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"`
}

Jump to

Keyboard shortcuts

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