Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultState = State{
Version: 1,
}
Functions ¶
func GetDefaultStateDirpath ¶ added in v0.7.7
func GetDefaultStateFilepath ¶
func WriteStateFile ¶
Types ¶
type State ¶
type State struct {
// to convert across old vs. new version of `type State struct`
Version int `json:"version"`
// set for ingestion purpose
IngestionToken *typesv1.EnvironmentToken `json:"ingestion_token,omitempty"`
// update mechanism
LatestKnownVersion *semver.Version `json:"latest_known_version,omitempty"`
LastestKnownVersionUpdatedAt *time.Time `json:"latest_known_version_updated_at"`
// prompts
LastPromptedToSignupAt *time.Time `json:"last_prompted_to_signup_at"`
LastPromptedToEnableLocalhostAt *time.Time `json:"last_prompted_to_enable_localhost_at"`
LoggedInUsername *string `json:"logged_in_username"`
LoggedInOrgID *int64 `json:"logged_in_org_id"`
// preferences set in the CLI/TUI when querying
CurrentEnvironmentID *int64 `json:"current_environment_id,omitempty"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.