Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DriverName is the name for the driver
DriverName = "docker"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerBuildContextFactorier ¶
type DockerBuildContextFactorier interface {
GenerateDockerBuildContext(context interface{}) (DockerBuildContexter, error)
}
DockerBuildContextFactorier defines a docker build context factory
type DockerBuildContexter ¶
type DockerBuildContexter interface {
GenerateContextFilesystem() (*filesystem.ContextFilesystem, error)
}
DockerBuildContexter defines a docker build context
type DockerDriver ¶
type DockerDriver struct {
// contains filtered or unexported fields
}
DockerDriver is a driver for Docker
func NewDockerDriver ¶
func NewDockerDriver(driver DockerDriverer, ref repository.ImageReferenceNamer, writer io.Writer) (*DockerDriver, error)
NewDockerDriver creates a new DockerDriver
func (*DockerDriver) Build ¶
func (d *DockerDriver) Build(ctx context.Context, i *image.Image, options *image.BuildDriverOptions) error
Build performs the build. In case the build could not performed it returns an error
type DockerDriverer ¶
type DockerDriverer interface { WithDockerfile(string) WithImageName(string) WithPullParentImage() WithPushAfterBuild() WithResponse(io.Writer, string) WithUseNormalizedNamed() WithRemoveAfterPush() AddAuth(string, string, string) error AddPushAuth(string, string) error AddBuildArgs(string, string) error AddBuildContext(...*builder.DockerDriverContextOptions) error AddLabel(string, string) error AddTags(...string) error Run(context.Context) error }
DockerDriverer defines a docker driver
Click to show internal directories.
Click to hide internal directories.