Documentation ¶
Index ¶
- func DisableService(ctx context.Context, name string) error
- func DisableTimer(ctx context.Context, name string) error
- func ExistsService(ctx context.Context, name string) (bool, error)
- func HostVM(ctx context.Context) error
- func IsActiveService(ctx context.Context, name string) (bool, error)
- func RestartService(ctx context.Context, name string) error
- func ServiceFile(name string) string
- func StartService(ctx context.Context, name string) error
- func StartTimer(ctx context.Context, name string) error
- func StopService(ctx context.Context, name string) error
- func StopTimer(ctx context.Context, name string) error
- func TimerFile(name string) string
- func VMXEnabled(ctx context.Context, project string, artifacts *ArtifactSet, ...) error
- type ArtifactSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableService ¶
DisableService disables the service.
func DisableTimer ¶
DisableTimer disables the timer.
func ExistsService ¶
ExistsService returns true if the service unit exists.
func IsActiveService ¶
IsActiveService returns true is the service is active.
func RestartService ¶
RestartService restarts the service simply.
func ServiceFile ¶
ServiceFile returns the filesystem path of a systemd service.
func StartService ¶
StartService does following: 1. systemctl daemon-reload 2. systemctl enable NAME.service 3. systemctl start NAME.service
func StartTimer ¶
StartTimer does following: 1. systemctl daemon-reload 2. systemctl enable NAME.timer 3. systemctl start NAME.timer
func StopService ¶
StopService stops the service.
func VMXEnabled ¶
func VMXEnabled(ctx context.Context, project string, artifacts *ArtifactSet, optionalPackages []string) error
VMXEnabled setup vmx-enabled instance
Types ¶
Click to show internal directories.
Click to hide internal directories.