setup

package
v0.0.0-...-2cf41ae Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableService

func DisableService(ctx context.Context, name string) error

DisableService disables the service.

func DisableTimer

func DisableTimer(ctx context.Context, name string) error

DisableTimer disables the timer.

func ExistsService

func ExistsService(ctx context.Context, name string) (bool, error)

ExistsService returns true if the service unit exists.

func HostVM

func HostVM(ctx context.Context) error

HostVM setup vmx-enabled instance

func IsActiveService

func IsActiveService(ctx context.Context, name string) (bool, error)

IsActiveService returns true is the service is active.

func RestartService

func RestartService(ctx context.Context, name string) error

RestartService restarts the service simply.

func ServiceFile

func ServiceFile(name string) string

ServiceFile returns the filesystem path of a systemd service.

func StartService

func StartService(ctx context.Context, name string) error

StartService does following: 1. systemctl daemon-reload 2. systemctl enable NAME.service 3. systemctl start NAME.service

func StartTimer

func StartTimer(ctx context.Context, name string) error

StartTimer does following: 1. systemctl daemon-reload 2. systemctl enable NAME.timer 3. systemctl start NAME.timer

func StopService

func StopService(ctx context.Context, name string) error

StopService stops the service.

func StopTimer

func StopTimer(ctx context.Context, name string) error

StopTimer stops the timer.

func TimerFile

func TimerFile(name string) string

TimerFile returns the filesystem path of a systemd timer.

func VMXEnabled

func VMXEnabled(ctx context.Context, project string, artifacts *ArtifactSet, optionalPackages []string) error

VMXEnabled setup vmx-enabled instance

Types

type ArtifactSet

type ArtifactSet struct {
	GoVersion       string
	EtcdVersion     string
	PlacematVersion string
	CoreOSVersion   string
	CtVersion       string
	DebPackages     []string
}

ArtifactSet represents a set of artifacts for GCP instance.

Jump to

Keyboard shortcuts

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