package
1.12.5
Repository: https://github.com/joyent/conch-shell.git
Documentation: pkg.go.dev

# Functions

Bail is a --json aware way of dying.
BuildAPI builds a Conch object.
BuildAPIAndVerifyLogin builds a Conch object using the Config data and calls VerifyLogin.
CleanVersion removes a "v" prefix, and anything after a dash For example, pass in v2.99.10-abcde-dirty and get back a semver containing 2.29.10 Why? Git and Semver differ in their notions of what those extra bits mean.
DDP pretty prints a structure to stderr.
No description provided by the author
No description provided by the author
DisplayDevices is an abstraction to make sure that the output of Devices is uniform, be it tables, json, or full json.
FindShortUUID takes a string and tries to find a UUID in a list of UUIDs that match by prefix (first 4 bytes).
GetMarkdownTable returns a tablewriter configured to output markdown compatible text.
No description provided by the author
No description provided by the author
InteractiveForcePasswordChange is an abstraction for the process of prompting a user for a new password, validating it, and issuing the API calls to execute the change.
IsPasswordSane verifies that the given password follows the current rules and restrictions.
JSONOut marshals an interface to JSON.
JSONOutIndent marshals an interface to indented JSON.
LatestGithubRelease returns some fields from the latest Github Release that matches our major version.
MagicDatacenterID takes a string and tries to find a valid global datacenter UUID.
MagicProductID takes a string and tries to find a valid UUID.
MagicRackID takes a string and tries to find a valid global rack UUID.
MagicRackLayoutSlotID takes a string and tries to find a valid UUID.
MagicRackRoleID takes a string and tries to find a valid UUID.
MagicRoomID takes a string and tries to find a valid global UUID.
MagicValidationID takes a string and tries to find a valid UUID.
MagicValidationPlanID takes a string and tries to find a valid UUID.
MagicWorkspaceID takes a string and tries to find a valid UUID.
MagicWorkspaceRackID takes a workspace UUID and a string and tries to find a valid rack UUID.
No description provided by the author
TimeStr ensures that all Times are formatted using .Local() and DateFormat.
No description provided by the author
WriteConfig serializes the Config struct to disk.
No description provided by the author

# Constants

DateFormat should be used in date formatting calls to ensure uniformity of output.
No description provided by the author
No description provided by the author
RefreshTokenTime represent when a JWT token will be refreshed, based on this many seconds left on the expiry time.

# Variables

ActiveProfile represents, well, the active profile.
API is a global Conch API object.
No description provided by the author
Config is a global Config object.
No description provided by the author
Debug decides if we should put the API in debug mode Yes, this is a bit of a kludge.
No description provided by the author
Useful for preventing automations from creating and deleting tokens.
Used in shell development.
Useful for preventing automations from accessing admin commands.
These variables are provided by the build environment.
No description provided by the author
JSON tells us if we should output JSON.
These variables are provided by the build environment.
No description provided by the author
Trace decides if we should trace the HTTP transactions Yes, this is a bit of a kludge.
UserAgent will be used as the http user agent when making API calls.
These variables are provided by the build environment.

# Structs

GithubAsset represents a file inside of a github release.
GithubRelease represents a 'release' for a Github project.

# Type aliases

No description provided by the author