# Functions
No description provided by the author
No description provided by the author
ContextExists checks to see if context exist in config.
GetContext gets the specified context by domain name Returns the matching Context struct.
GetCurrentContext gets the current contxt set in the config Is a convenience wrapp around config.GetCurrentContext() Returns full Context struct.
IsCloudContext returns whether current context domain is related to cloud platform or not.
IsCloudDomain returns whether the given domain is related to cloud platform or not.
No description provided by the author
SetContext creates or updates a contexts domain name Returns an error.
Switch switches to context of domain.
No description provided by the author
# Variables
CloudDomainRegex is used to differentiate cloud domain from software domain See https://github.com/astronomer/astrohub-cli/issues/7 for regexp rationale This will need to be handled as part of the permanent solution to issue #432 CloudDomainRegex = regexp.MustCompile(`(?:(pr\d{4,6})\.|^)(?:cloud\.|)astronomer(?:-(dev|stage|perf))?\.io$`).