v1alpha

package
v0.0.13-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 3 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 {
	Architecture() common.Architecture
	OperatingSystem() common.OperatingSystem
}

BuildContext is an interface that provides a context for builds

type BuildRequest

type BuildRequest interface {
}

BuildRequest is a generic interface for build requests

type BuildRequestOutput

type BuildRequestOutput interface {
	AddFile(file BuiltFile)
	Files() []BuiltFile
}

BuildRequestOutput is an interface for the results of a build request

type BuildRequestProvider

type BuildRequestProvider interface {
	Initialize(options ...BuildRequestProviderOption) error
	Execute(buildContext BuildContext, buildRequest BuildRequest) (BuildRequestOutput, error)
}

BuildRequestProvider is a provider that processes build requests

type BuildRequestProviderOption

type BuildRequestProviderOption interface {
	Apply(BuildRequestProvider) error
}

BuildRequestProviderOption is a option for a BuildRequestProvider

type BuiltFile

type BuiltFile interface {
	Name() string
	User() string
	Group() string
	Body() []byte
	Size() int
	Mode() os.FileMode
	Type() pkg.FileType
}

BuiltFile represents a built file

type DockerBuildRequest

type DockerBuildRequest struct {
	Dockerfile     string               `yaml:"dockerfile"`             // Dockerfile is the contents of the Dockerfile
	DockerIgnore   string               `yaml:"dockerignore,omitempty"` // DockerIgnore is the contents of the .dockerignore file
	Tags           []string             `yaml:"tags,omitempty"`         // Tags are tags to apply to the built docker image
	BuildArgs      map[string]string    `yaml:"buildargs,omitempty"`    // BuildArgs are arguments to pass while building the docker image
	ExtraFiles     common.EmbeddedFiles `yaml:"files, omitempty"`       // ExtraFiles are files to include in the docker build process
	BuildDirectory string               `yaml:"buildDirectory"`         // BuildDirectory is the output directory where built files are generated
}

DockerBuildRequest represents a request a build request using docker

Jump to

Keyboard shortcuts

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