Documentation ¶
Index ¶
- Variables
- type DockerBuilder
- func (b *DockerBuilder) Build(ctx context.Context, buildID string, buildCtx io.Reader) error
- func (b *DockerBuilder) BuildAndPush(ctx context.Context, buildID, namespace, reponame string, buildCtx io.Reader) error
- func (b *DockerBuilder) GetBuilder() string
- func (b *DockerBuilder) GetImageURI(ctx context.Context, buildID, namespace, reponame string) string
- func (b *DockerBuilder) Logs(ctx context.Context, buildID string) ([]types.LogEntry, error)
- func (b *DockerBuilder) Push(ctx context.Context, buildID, namespace, reponame string) error
- func (b *DockerBuilder) Upload(ctx context.Context, buildID string, buildCtx io.Reader) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBuildFailed is returned when a build fails. ErrBuildFailed = &types.Error{ Code: http.StatusBadRequest, Message: "Build failed - check the logs for more information", Suggestion: "Make sure your Dockerfile is valid", } )
Functions ¶
This section is empty.
Types ¶
type DockerBuilder ¶
type DockerBuilder struct {
// contains filtered or unexported fields
}
DockerBuilder is a Docker builder that implements the builder.Builder interface.
func NewBuilder ¶
func NewBuilder(logger builder.LogDriver, registryURI string) *DockerBuilder
func (*DockerBuilder) BuildAndPush ¶
func (*DockerBuilder) GetBuilder ¶
func (b *DockerBuilder) GetBuilder() string
func (*DockerBuilder) GetImageURI ¶
func (b *DockerBuilder) GetImageURI(ctx context.Context, buildID, namespace, reponame string) string
Click to show internal directories.
Click to hide internal directories.