Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultName = builders.S2I
DefaultName when no WithName option is provided to NewBuilder
Variables ¶
View Source
var DefaultBuilderImages = map[string]string{
"node": "registry.access.redhat.com/ubi8/nodejs-16",
"typescript": "registry.access.redhat.com/ubi8/nodejs-16",
"quarkus": "registry.access.redhat.com/ubi8/openjdk-17",
}
DefaultBuilderImages for s2i builders indexed by Runtime Language
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder of functions using the s2i subsystem.
func NewBuilder ¶
NewBuilder creates a new instance of a Builder with static defaults.
type DockerClient ¶
type DockerClient interface {
ImageBuild(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
ImageInspectWithRaw(ctx context.Context, image string) (types.ImageInspect, []byte, error)
}
DockerClient is subset of dockerClient.CommonAPIClient required by this package
type Option ¶
type Option func(*Builder)
func WithDockerClient ¶
func WithDockerClient(cli DockerClient) Option
func WithImpl ¶
WithImpl sets an optional S2I Builder implementation override to use in place of what will be generated by the S2I build "strategy" system based on the config. Used for mocking the implementation during tests.
func WithPlatform ¶
Click to show internal directories.
Click to hide internal directories.