buildcontext

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildContext

type BuildContext interface {
	// Unpacks a build context and returns the directory where it resides
	UnpackTarFromBuildContext() (string, error)
}

BuildContext unifies calls to download and unpack the build context.

func GetBuildContext

func GetBuildContext(srcContext string) (BuildContext, error)

GetBuildContext parses srcContext for the prefix and returns related buildcontext parser

type Dir

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

Dir unifies calls to download and unpack the build context.

func (*Dir) UnpackTarFromBuildContext

func (f *Dir) UnpackTarFromBuildContext() (string, error)

UnpackTarFromBuildContext just provides a directory with already extracted content

type GCS

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

GCS struct for Google Cloud Storage processing

func (*GCS) UnpackTarFromBuildContext

func (g *GCS) UnpackTarFromBuildContext() (string, error)

type S3

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

S3 unifies calls to download and unpack the build context.

func (*S3) UnpackTarFromBuildContext

func (s *S3) UnpackTarFromBuildContext() (string, error)

UnpackTarFromBuildContext download and untar a file from s3

Jump to

Keyboard shortcuts

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