Documentation ¶
Overview ¶
Package dtp provides APIs to build a high-level frontend that simply transforms the Dockerfiles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectDockerfileTransform ¶
func InjectDockerfileTransform(transform DockerfileTransform, client client.Client) (err error)
InjectDockerfileTransform modifies provided client to use a proxy that transforms user-supplied Dockerfile.
func NewDockerfileTransformingLLBProxy ¶
func NewDockerfileTransformingLLBProxy(client pb.LLBBridgeClient, opts map[string]string, transform DockerfileTransform) pb.LLBBridgeClient
NewDockerfileTransformingLLBProxy returns a new proxy for the given client object. It applies the specified transform to the Dockerfile after it was read from the build context.
Types ¶
type DockerfileTransform ¶
DockerfileTransform specifies a function used to transform source Dockerfile into desired form. Note that resulting Dockerfile must be valid.
Click to show internal directories.
Click to hide internal directories.