cli

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright © 2020 Yale University

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var (
	SpinupClient *spinup.Client
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CmdVersion

type CmdVersion struct {
	AppVersion string
	BuildTime  string
	GitCommit  string
	GitRef     string
}
var (
	Version *CmdVersion
)

type ResourceSummary

type ResourceSummary struct {
	ID       string `json:"id"`
	IP       string `json:"ip,omitempty"`
	Name     string `json:"name"`
	Status   string `json:"status"`
	Type     string `json:"type"`
	Flavor   string `json:"flavor"`
	Security string `json:"security"`
	SpaceID  string `json:"space_id,omitempty"`
	Beta     bool   `json:"beta"`
	Size     string `json:"size"`
	TryIT    bool   `json:"tryit"`
	State    string `json:"state,omitempty"`
}

type SpaceOutput

type SpaceOutput struct {
	*spinup.Space
	Resources []*spinup.Resource `json:",omitempty"`
}

type SpacesOutput

type SpacesOutput struct {
	*spinup.Space
	ResourceCount int `json:"resource_count"`
}

Jump to

Keyboard shortcuts

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