Documentation
¶
Index ¶
Constants ¶
const (
TarBuildContextPrefix = "tar://"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureBlob ¶
type AzureBlob struct {
// contains filtered or unexported fields
}
AzureBlob struct for Azure Blob Storage processing
func (*AzureBlob) UnpackTarFromBuildContext ¶
Download context file from given azure blob storage url and unpack it to BuildContextDir
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, opts BuildOptions) (BuildContext, error)
GetBuildContext parses srcContext for the prefix and returns related buildcontext parser
type BuildOptions ¶
type Dir ¶
type Dir struct {
// contains filtered or unexported fields
}
Dir unifies calls to download and unpack the build context.
func (*Dir) UnpackTarFromBuildContext ¶
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 ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git unifies calls to download and unpack the build context.
func (*Git) UnpackTarFromBuildContext ¶
UnpackTarFromBuildContext will provide the directory where Git Repository is Cloned
type HTTPSTar ¶
type HTTPSTar struct {
// contains filtered or unexported fields
}
HTTPSTar struct for https tar.gz files processing
func (*HTTPSTar) UnpackTarFromBuildContext ¶
UnpackTarFromBuildContext downloads context file from https server
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
S3 unifies calls to download and unpack the build context.
func (*S3) UnpackTarFromBuildContext ¶
UnpackTarFromBuildContext download and untar a file from s3