buildcontext

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TarBuildContextPrefix = "tar://"
)

Variables

This section is empty.

Functions

func UploadToBucket added in v0.24.0

func UploadToBucket(r io.Reader, dest string) error

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

func (b *AzureBlob) UnpackTarFromBuildContext() (string, error)

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 BuildOptions struct {
	GitBranch            string
	GitSingleBranch      bool
	GitRecurseSubmodules bool
}

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 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

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

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

func (h *HTTPSTar) UnpackTarFromBuildContext() (directory string, err error)

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

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

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

func (t *Tar) UnpackTarFromBuildContext() (string, error)

UnpackTarFromBuildContext unpack the compressed tar file

Jump to

Keyboard shortcuts

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