satlabcommands

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerHostBoxIdentifier

func GetDockerHostBoxIdentifier(ctx context.Context, executor executor.IExecCommander) (string, error)

GetHostIdentifier gets the host identifier value.

Note that this command always returns the identifier in lowercase.

func GetHostIP

func GetHostIP(ctx context.Context, executor executor.IExecCommander) (string, error)

GetHostIP gets the host ip.

func GetMacAddress

func GetMacAddress(ctx context.Context, executor executor.IExecCommander) (string, error)

GetMacAddress gets hostname and mac address of satlab.

func GetSatlabStartTime

func GetSatlabStartTime(ctx context.Context, executor executor.IExecCommander) (*timestamp.Timestamp, error)

GetSatlabStartTime gets start time and uptime of satlab.

func GetSatlabVersion

func GetSatlabVersion(ctx context.Context, executor executor.IExecCommander) (string, error)

GetSatlabVersion gets the Satlab version from docker container `compose` label.

Types

type Decision

type Decision int

Decision is a classification of a line in a file. Lines may be kept, modified, or deleted. Functions that process lines of text are split conceptually into a decision which classifies lines and a transformation which only applies to selected lines.

const (
	Unknown Decision = iota
	Keep
	Reject
	// Modify is used only by replacing things.
	Modify
)

type OSVersion

type OSVersion struct {
	// Version the ChromeOS verison
	Version     string
	Track       string
	Description string
}

OSVersion contains the OS version information from the command `get_host_os_version`

func GetOsVersion

func GetOsVersion(ctx context.Context, executor executor.IExecCommander) (*OSVersion, error)

GetOsVersion gets the OS GetOsVersion

Jump to

Keyboard shortcuts

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