Documentation ¶
Index ¶
Constants ¶
const (
TarBuildContextPrefix = "tar://"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzureBlob ¶ added in v0.14.0
type AzureBlob struct {
// contains filtered or unexported fields
}
AzureBlob struct for Azure Blob Storage processing
func (*AzureBlob) UnpackTarFromBuildContext ¶ added in v0.14.0
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 ¶ added in v1.0.0
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 ¶ added in v0.10.0
type Git struct {
// contains filtered or unexported fields
}
Git unifies calls to download and unpack the build context.
func (*Git) UnpackTarFromBuildContext ¶ added in v0.10.0
UnpackTarFromBuildContext will provide the directory where Git Repository is Cloned
type HTTPSTar ¶ added in v1.4.0
type HTTPSTar struct {
// contains filtered or unexported fields
}
HTTPSTar struct for https tar.gz files processing
func (*HTTPSTar) UnpackTarFromBuildContext ¶ added in v1.4.0
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
type Tar ¶ added in v0.19.0
type Tar struct {
// contains filtered or unexported fields
}
Tar unifies calls to download and unpack the build context.
func (*Tar) UnpackTarFromBuildContext ¶ added in v0.19.0
UnpackTarFromBuildContext unpack the compressed tar file