Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultUid = 1001
View Source
const DefaultUsername = "somebody"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetadataOptions ¶ added in v0.1.3
func (*MetadataOptions) GetCreatedBy ¶ added in v0.1.3
func (o *MetadataOptions) GetCreatedBy() string
type Options ¶ added in v0.1.2
type Options struct { WorkingDir string // Username is the name of the Linux user // that the container will run as. Username string // Uid is the numerical ID of the Linux user // that the container will run as. Uid int // Shell is the default shell that will be opened // whenever a user connects. If not provided // it will default to /bin/sh Shell string Entrypoint []string Command []string ForceEntrypoint bool Metadata MetadataOptions FS fs.FullFS }
func (*Options) GetUsername ¶ added in v0.1.2
GetUsername returns the nominated username or the DefaultUsername
Click to show internal directories.
Click to hide internal directories.