Documentation ¶
Index ¶
- Variables
- func CreateDockerTarContext(w io.Writer, dockerfilePath, context string) error
- func Digest(cli client.ImageAPIClient, ref string) (string, error)
- func GetDockerfileDependencies(workspace string, r io.Reader) ([]string, error)
- func NewImageAPIClient() (client.ImageAPIClient, io.Closer, error)
- func NewMinikubeImageAPIClient() (client.ImageAPIClient, io.Closer, error)
- func RunBuild(cli client.ImageAPIClient, opts *BuildOptions) error
- func RunPush(cli client.ImageAPIClient, ref string, out io.Writer) error
- type AuthConfigHelper
- type BuildOptions
Constants ¶
This section is empty.
Variables ¶
var RetrieveConfig = retrieveImageConfig
For testing.
Functions ¶
func CreateDockerTarContext ¶
func Digest ¶
func Digest(cli client.ImageAPIClient, ref string) (string, error)
Digest returns the image digest for a corresponding reference. The digest is of the form sha256:<image_id>
func GetDockerfileDependencies ¶
GetDockerfileDependencies parses a dockerfile and returns the full paths of all the source files that the resulting docker image depends on.
func NewImageAPIClient ¶
func NewImageAPIClient() (client.ImageAPIClient, io.Closer, error)
NewImageAPIClient returns a docker client based on the environment variables set. It will "negotiate" the highest possible API version supported by both the client and the server if there is a mismatch.
func NewMinikubeImageAPIClient ¶
func NewMinikubeImageAPIClient() (client.ImageAPIClient, io.Closer, error)
NewMinikubeImageAPIClient returns a docker client using the environment variables provided by minikube.
func RunBuild ¶
func RunBuild(cli client.ImageAPIClient, opts *BuildOptions) error
RunBuild performs a docker build and returns nothing
Types ¶
type AuthConfigHelper ¶
type AuthConfigHelper interface { GetAuthConfig(registry string) (types.AuthConfig, error) GetAllAuthConfigs() (map[string]types.AuthConfig, error) }
AuthConfigHelper exists for testing purposes since GetAuthConfig shells out to native store helpers. Ideally this shouldn't be public, but the LocalBuilder needs to use it.
var ( // DefaultAuthHelper is exposed so that other packages can override it for testing DefaultAuthHelper AuthConfigHelper )