subcmds

package
v0.0.0-...-8f07a11 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Package subcmds contains functionality around subcommands of Satlab CLI.

Package subcmds contains functionality around subcommands of Satlab CLI.

Index

Constants

This section is empty.

Variables

View Source
var AddCmd = &subcommands.Command{
	UsageLine: "add <sub-command>",
	CommandRun: func() subcommands.CommandRun {
		c := &addBase{}
		return c
	},
}

AddCmd is the add placeholder command.

View Source
var CCDCmd = &subcommands.Command{
	UsageLine: "ccd <sub-command>",
	ShortDesc: `Commands related to CCD`,
	CommandRun: func() subcommands.CommandRun {
		c := &ccdBase{}
		return c
	},
}

CCDCmd contains the usage and implementation for the ccd command.

View Source
var DeleteCmd = &subcommands.Command{
	UsageLine: "delete <sub-command>",
	CommandRun: func() subcommands.CommandRun {
		c := &deleteBase{}
		return c
	},
}

DeleteCmd contains the usage and implementation for the delete command.

View Source
var GetCmd = &subcommands.Command{
	UsageLine: "get <sub-command>",
	CommandRun: func() subcommands.CommandRun {
		c := &getBase{}
		return c
	},
}

GetCmd is a placeholder command for get.

View Source
var IsSatlabRemoteAccessCmd = &subcommands.Command{
	UsageLine: `is-satlab-remote-access`,
	ShortDesc: `Determine whether the current environment is a satlab remote access container.`,
	CommandRun: func() subcommands.CommandRun {
		r := &IsSatlabRemoteAccessRun{}

		return r
	},
}
View Source
var PruneCmd = &subcommands.Command{
	UsageLine: `prune_cache`,
	ShortDesc: `Clears cache memory downloaded by the Artifact Downloader`,
	CommandRun: func() subcommands.CommandRun {
		c := &prune_base{}
		return c
	},
}
View Source
var RepairCmd = &subcommands.Command{
	UsageLine: "repair <sub-command> (currently runs only verify task, not full repair stack)",
	CommandRun: func() subcommands.CommandRun {
		c := &repairBase{}
		return c
	},
}

RepairCmd is the placeholder command.

View Source
var ServodCmd = &subcommands.Command{
	UsageLine: "servod <sub-command>",
	ShortDesc: "Commands related to servod containers",
	CommandRun: func() subcommands.CommandRun {
		c := &servodBase{}
		return c
	},
}

ServodCmd is the servod placeholder command.

View Source
var SetupCmd = &subcommands.Command{
	UsageLine: "setup [options ...]",
	ShortDesc: "",
	CommandRun: func() subcommands.CommandRun {
		c := &setupCmd{}
		c.Flags.StringVar(&c.Bucket, "bucket", "", "Bucket contain the key")
		c.Flags.StringVar(&c.GSAccessKeyId, "gcs_key_id", "", "GCS bucket key ID")
		c.Flags.StringVar(&c.GSSecretAccessKey, "gcs_key_secret", "", "GCS Bucket key Secret")
		return c
	},
}
View Source
var SupportCmd = &subcommands.Command{
	UsageLine: "support <sub-command>",
	ShortDesc: "Remote Port Forwarding",
	CommandRun: func() subcommands.CommandRun {
		c := &supportBase{}
		return c
	},
}

SupportCmd contains the usage and implementation for the support command.

View Source
var UpdateCmd = &subcommands.Command{
	UsageLine: "update <sub-command>",
	CommandRun: func() subcommands.CommandRun {
		c := &updateBase{}
		return c
	},
}

UpdateCmd is the add placeholder command.

Functions

This section is empty.

Types

type IsSatlabRemoteAccessRun

type IsSatlabRemoteAccessRun struct {
	subcommands.CommandRunBase
	// contains filtered or unexported fields
}

func (*IsSatlabRemoteAccessRun) Run

Run runs the command, prints the error if there is one, and returns an exit status.

Jump to

Keyboard shortcuts

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