dtp

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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

type DockerfileTransform func(dockerfile []byte) ([]byte, error)

DockerfileTransform specifies a function used to transform source Dockerfile into desired form. Note that resulting Dockerfile must be valid.

Directories

Path Synopsis
Package dtp_mock is a generated GoMock package.
Package dtp_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL