publish

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package publish Docker manifest and images publisher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTargetedArchitectures added in v0.2.0

func GetTargetedArchitectures(targets []string) (map[string]ArchDescriptor, error)

GetTargetedArchitectures Gets architecture descriptors.

Types

type ArchDescriptor added in v0.2.0

type ArchDescriptor struct {
	OS      string `json:"os"`
	GoARCH  string `json:"go_arch"`
	GoARM   string `json:"go_arm,omitempty"`
	Variant string `json:"variant,omitempty"`
}

ArchDescriptor An architecture descriptor for an architecture.

type DockerPub

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

DockerPub Docker images builder and publisher.

func NewDockerPub

func NewDockerPub(imageName string, versions []string, baseRuntimeImage string, targets map[string]ArchDescriptor, dockerfileTemplate string) (*DockerPub, error)

NewDockerPub Creates a new DockerPub.

func (DockerPub) Clean added in v0.2.0

func (d DockerPub) Clean(dryRun bool) error

Clean Removes generated Dockerfile.

func (DockerPub) Execute

func (d DockerPub) Execute(dryRun bool) error

Execute Executes commands.

type ManifestPub

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

ManifestPub Manifest builder and publisher.

func NewManifestPub

func NewManifestPub(imageName, version string, targets map[string]ArchDescriptor) (*ManifestPub, error)

NewManifestPub Creates a new ManifestPub.

func (ManifestPub) Execute

func (m ManifestPub) Execute(dryRun bool) error

Execute Executes commands.

Jump to

Keyboard shortcuts

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