buildos

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: AGPL-3.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOS

type BuildOS interface {

	// GetCreateNewUserScript returns a script to create a new user
	GetCreateNewUserScript() string

	// GetScriptName returns the script name
	GetScriptName(basefile string) string

	// ExecAndDeleteScriptCommand returns the command to execute a given script and delete the same
	ExecAndDeleteScriptCommand(script string, args ...string) string

	// GetHomeDir returns the home directory for the given user
	GetHomeDir(buildUser string) string

	// GetSuperUser returns the name of the superuser as used in the dockerfile for the platform
	GetSuperUser() string

	// SourceEnvFile sources a given environment file onto the current shell
	SourceEnvFile(envFile string) string

	// RestoreTarFile restores a tar file to a given directory
	RestoreTarFile(tarFile string, directory string) string

	// GetUserDetails represents a command to get the details of a given user
	GetUserDetails(user string) string
}

BuildOS contains the abstractions specific to OS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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