Documentation ¶
Index ¶
- Variables
- func BuildImage(ctx context.Context, goBinPath string, base v1.Image, options ...BuildOption) (v1.Image, error)
- func Get(ctx context.Context, ref name.Reference) (*remote.Descriptor, error)
- func Push(ctx context.Context, repo name.Repository, img remote.Taggable, ...) error
- func PushDaemon(ctx context.Context, imgName string, img v1.Image, options ...PushOption) error
- type BuildOption
- type PushOption
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTag = "latest"
Functions ¶
func BuildImage ¶
func Push ¶
func Push(ctx context.Context, repo name.Repository, img remote.Taggable, options ...PushOption) error
Push writes img to the remote repo. The provided img must be either a v1.Image or v1.ImageIndex.
func PushDaemon ¶
PushDaemon writes the provided image to the local Docker daemon.
Types ¶
type BuildOption ¶
type BuildOption func(*buildOptions)
func WithCompressionLevel ¶
func WithCompressionLevel(v int) BuildOption
func WithLabels ¶
func WithLabels(v map[string]string) BuildOption
type PushOption ¶
type PushOption func(*pushOptions)
func WithLogger ¶
func WithLogger(v types.Logger) PushOption
func WithTags ¶
func WithTags(v []string) PushOption
Click to show internal directories.
Click to hide internal directories.