Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CLIVersion is the version of the CLI. CLIVersion = "0.9.1" // DefaultApiServer is the default iobeam server. DefaultApiServer = "https://api.iobeam.com" )
Variables ¶
This section is empty.
Functions ¶
func DeleteProfile ¶ added in v0.4.0
DeleteProfile removes a profile from the system.
func GetProfileList ¶
GetProfileList returns a list of available profiles.
func ReadDefaultConfig ¶
func ReadDefaultConfig() (*iobeamConfig, error)
func SwitchProfile ¶
SwitchProfile attempts to change the active profile.
Types ¶
type Profile ¶
type Profile struct { Name string `json:"-"` Server string `json:"server"` ActiveProject uint64 `json:"active_project"` ActiveUser uint64 `json:"active_user"` ActiveUserEmail string `json:"activer_user_email"` }
Profile represents a CLI profile, which is similar to a workspace that tracks active user, project, and other metadata.
func InitProfile ¶
InitProfile creates a new profile on the system named 'name'.
func InitProfileWithServer ¶
InitProfileWithServer creates a new profile on the system named 'name' and uses 'server' for the API server.
func ReadProfile ¶
ReadProfile attempts to read and create a *Profile object.
func (*Profile) UpdateActiveProject ¶
UpdateActiveProject changes the active project id of p.
Click to show internal directories.
Click to hide internal directories.