command

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command is a structure that holds information for VirtCustomize command.

func NewAddGPGCommand

func NewAddGPGCommand(image string, repository *repositories.Configuration) *Command

NewAddGPGCommand creates a new add gpg command.

func NewAddRepositoryCommand

func NewAddRepositoryCommand(image string, repository *repositories.Configuration) *Command

NewAddRepositoryCommand creates a new add repository command.

func NewCommand

func NewCommand(image string, command string, arguments ...interface{}) *Command

NewCommand creates a new VirtCustomize command.

func NewInstallCommand

func NewInstallCommand(image string, packages []string) *Command

NewInstallCommand creates a new install command.

func NewUpdateCommand

func NewUpdateCommand(image string) *Command

NewUpdateCommand creates a new update command.

func NewUploadCommand

func NewUploadCommand(image string, source string, target string) *Command

NewUploadCommand creates a new upload command.

func (*Command) BuildExecutionerCommand

func (command *Command) BuildExecutionerCommand() []string

BuildExecutionerCommand builds the command to run.

func (*Command) GetArguments

func (command *Command) GetArguments() []string

GetArguments returns the list of arguments to pass to the command.

func (*Command) GetCommand

func (command *Command) GetCommand() string

GetCommand returns the command to run.

func (*Command) GetImage

func (command *Command) GetImage() string

GetImage returns the path to the image to customize.

func (*Command) GetOrder

func (command *Command) GetOrder() int

GetOrder returns the order of the command.

func (*Command) SetOrder

func (command *Command) SetOrder(order int) *Command

SetOrder sets the order of the command.

Jump to

Keyboard shortcuts

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