Documentation
¶
Index ¶
Constants ¶
View Source
const ( SectionStartingBuild = "Starting build" SectionInstallingSystemPackages = "Installing system packages" SectionInstallingPythonPrerequisites = "Installing Python prerequisites" SectionInstallingPython = "Installing Python" SectionInstallingPythonRequirements = "Installing Python requirements" SectionInstallingPythonPackages = "Installing Python packages" SectionInstallingCog = "Installing Cog" SectionCopyingCode = "Copying code" SectionPreInstall = "Running pre-install script" )
View Source
const SectionPrefix = "### --> "
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerfileGenerator ¶
type DockerfileGenerator struct { Config *model.Config Arch string Dir string // these are here to make this type testable GOOS string GOARCH string // contains filtered or unexported fields }
func NewDockerfileGenerator ¶
func NewDockerfileGenerator(config *model.Config, arch string, dir string) *DockerfileGenerator
func (*DockerfileGenerator) Cleanup ¶
func (g *DockerfileGenerator) Cleanup() error
func (*DockerfileGenerator) Generate ¶
func (g *DockerfileGenerator) Generate() (string, error)
func (*DockerfileGenerator) GenerateBase ¶
func (g *DockerfileGenerator) GenerateBase() (string, error)
type ImageBuilder ¶
type LocalImageBuilder ¶
type LocalImageBuilder struct {
// contains filtered or unexported fields
}
func NewLocalImageBuilder ¶
func NewLocalImageBuilder(registry string) *LocalImageBuilder
func (*LocalImageBuilder) Cleanup ¶
func (b *LocalImageBuilder) Cleanup(dockerTag string) error
type MockBuildFunc ¶
type MockImageBuilder ¶
type MockImageBuilder struct {
// contains filtered or unexported fields
}
func NewMockImageBuilder ¶
func NewMockImageBuilder(buildFunc MockBuildFunc) *MockImageBuilder
func (*MockImageBuilder) Cleanup ¶
func (m *MockImageBuilder) Cleanup(imageURI string) error
Click to show internal directories.
Click to hide internal directories.