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.
type IContext ¶
type IContext interface { Load() (*Context, error) Save(*Context) error Remove() error Location() (string, error) }
IContext is an interface which describes functions for context file
type ServiceConfig ¶
type ServiceConfig struct { KafkaID string `json:"kafkaID"` ServiceRegistryID string `json:"serviceregistryID"` }
ServiceConfig is a map of identifiers for the application services
Click to show internal directories.
Click to hide internal directories.