build

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, drivers []DriverInfo, opt map[string]Options, kubeClientConfig clientcmd.ClientConfig, registrySecretName string, pw progress.Writer) (resp map[string]*client.SolveResponse, err error)

func LoadInputs

func LoadInputs(inp Inputs, target *client.SolveOpt) (func(), error)

func ParseCacheEntry

func ParseCacheEntry(in []string) ([]client.CacheOptionsEntry, error)

func ParseEntitlements

func ParseEntitlements(in []string) ([]entitlements.Entitlement, error)

func ParseOutputs

func ParseOutputs(inp []string) ([]client.ExportEntry, error)

func ParseSSHSpecs

func ParseSSHSpecs(sl []string) (session.Attachable, error)

func ParseSecretSpecs

func ParseSecretSpecs(sl []string) (session.Attachable, error)

Types

type DriverInfo

type DriverInfo struct {
	Driver   driver.Driver
	Name     string
	Platform []specs.Platform
	Err      error
}

type Inputs

type Inputs struct {
	ContextPath    string
	DockerfilePath string
	InStream       io.Reader
}

type Options

type Options struct {
	Inputs      Inputs
	Tags        []string
	Labels      map[string]string
	BuildArgs   map[string]string
	Pull        bool
	ImageIDFile string
	ExtraHosts  []string
	NetworkMode string

	NoCache   bool
	Target    string
	Platforms []specs.Platform
	Exports   []client.ExportEntry
	Session   []session.Attachable

	CacheFrom []client.CacheOptionsEntry
	CacheTo   []client.CacheOptionsEntry

	Allow []entitlements.Entitlement
	// DockerTarget
	FrontendImage string
}

Jump to

Keyboard shortcuts

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