Documentation ¶
Index ¶
Constants ¶
View Source
const ContextEnvName = "RHOAS_CONTEXT"
Variables ¶
This section is empty.
Functions ¶
func DefaultDir ¶
DefaultDir returns the default parent directory of the context file
Types ¶
type Context ¶
type Context struct { Contexts map[string]ServiceConfig `json:"contexts,omitempty"` CurrentContext string `json:"current_context"` }
Context is a type which describes the properties of context file
type File ¶
type File struct{}
File is a type which describes a context file
func (*File) Load ¶
Load loads the profiles from the context file. If the context file doesn't exist it will return an empty context object.
Click to show internal directories.
Click to hide internal directories.