Documentation ¶
Index ¶
- type Builder
- type BuilderOpt
- func WithAssetDir(assetDir string) BuilderOpt
- func WithCTRImageName(ctrImageName string) BuilderOpt
- func WithDebug(debug bool) BuilderOpt
- func WithLoginShell(loginShell string) BuilderOpt
- func WithLoginUser(user string) BuilderOpt
- func WithServices(services []string) BuilderOpt
- func WithVMImageDevice(vmImageDevice string) BuilderOpt
- func WithVMImageMount(vmImageMount string) BuilderOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { AssetDir string CTRImageName string VMImageDevice string VMImageMount string Services []string LoginUser string LoginShell string Debug bool // contains filtered or unexported fields }
func NewBuilder ¶
func NewBuilder(opts ...BuilderOpt) (*Builder, error)
func (*Builder) MakeVMImage ¶
type BuilderOpt ¶
type BuilderOpt func(*Builder)
func WithAssetDir ¶
func WithAssetDir(assetDir string) BuilderOpt
func WithCTRImageName ¶
func WithCTRImageName(ctrImageName string) BuilderOpt
func WithDebug ¶
func WithDebug(debug bool) BuilderOpt
func WithLoginShell ¶
func WithLoginShell(loginShell string) BuilderOpt
func WithLoginUser ¶
func WithLoginUser(user string) BuilderOpt
func WithServices ¶
func WithServices(services []string) BuilderOpt
func WithVMImageDevice ¶
func WithVMImageDevice(vmImageDevice string) BuilderOpt
func WithVMImageMount ¶
func WithVMImageMount(vmImageMount string) BuilderOpt
Click to show internal directories.
Click to hide internal directories.