workingdir
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
const (// TempDir is a directory inside the build context inside which// we place files referenced by MagicDirectives.TempDir = ".envbuilder.tmp")
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeWorkingDir¶
type WorkingDir struct {// contains filtered or unexported fields}
WorkingDir is a working directory for envbuilder. Itwill also be present in images built by envbuilder.
var (// Default is the default working directory for Envbuilder.// This defaults to /.envbuilder. It should only be used when Envbuilder// is known to be running as root inside a container.DefaultWorkingDir// Directives are directives automatically appended to Dockerfiles// when pushing the image. These directives allow the built image to be// 're-used'.Directives =fmt.Sprintf(`COPY --chmod=0755 %[1]s/envbuilder %[2]s/bin/envbuilderCOPY --chmod=0644 %[1]s/image %[2]s/imageUSER rootWORKDIR /ENTRYPOINT ["%[2]s/bin/envbuilder"]`,TempDir, defaultWorkingDirBase))
func (WorkingDir)Built¶
func (mWorkingDir) Built()string
Built is a file that is created in the workspacewhen envbuilder has already been run. This is usedto skip building when a container is restarting.e.g. docker stop -> docker start
func (WorkingDir)Features¶
func (mWorkingDir) Features()string
Features is a directory that contains feature files.
func (WorkingDir)Image¶
func (mWorkingDir) Image()string
Image is a file that is created in the image whenenvbuilder has already been run. This is used to skipthe destructive initial build step when 'resuming' envbuilderfrom a previously built image.
func (WorkingDir)Join¶
func (mWorkingDir) Join(paths ...string)string
Join returns the result of filepath.Join([m.Path, paths...]).
func (WorkingDir)Path¶
func (mWorkingDir) Path()string
String returns the string representation of the WorkingDir.