epinject

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DockerDefaultEntrypoint = []string{""}

To remove the entrypoint and reset it back to the docker default, return this value for Entrypoint. The docker commit API recognizes this value specially to reset the entrypoint.

Functions

func AlterEntrypoint

func AlterEntrypoint(
	ctx context.Context,
	image string,
	f func(cur []string) (*NewEntrypoint, error),
) (string, error)

Types

type InjectFile

type InjectFile struct {
	Reader io.Reader
	Info   os.FileInfo
}

type NewEntrypoint

type NewEntrypoint struct {
	NewImage    string
	Entrypoint  []string
	InjectFiles map[string]InjectFile
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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