Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppContext ¶
type AppContext struct {
Location string
Config types.AppConfig
ServiceContexts map[string]*ServiceContext
}
AppContext represents the exosphere application the user is running
func GetAppContext ¶
func GetAppContext(location string) (*AppContext, error)
GetAppContext returns an AppContext for the application found at the passed location by walking up the directory tree until it finds an application.yml
func NewAppContext ¶
func NewAppContext(location string, config types.AppConfig) (*AppContext, error)
NewAppContext returns an AppContext with all the service contexts loaded
func (*AppContext) GetServiceContextByLocation ¶
func (a *AppContext) GetServiceContextByLocation(location string) *ServiceContext
GetServiceContextByLocation returns the service context for the given location
type ServiceContext ¶
type ServiceContext struct {
Config types.ServiceConfig
AppContext *AppContext
Source *types.ServiceSource
Role string
}
ServiceContext represents the exosphere service the user is running
func (*ServiceContext) ID ¶
func (s *ServiceContext) ID() string
ID returns the identifier for the ServiceContext
type UserContext ¶
type UserContext struct {
AppContext *AppContext
ServiceContext *ServiceContext
HasServiceContext bool
}
UserContext represents contextual information about what application/service the user is running
Click to show internal directories.
Click to hide internal directories.