Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheUpdateError ¶
type CacheUpdateError struct {
Err error
}
func NewCacheUpdateError ¶
func NewCacheUpdateError(err error) CacheUpdateError
func (CacheUpdateError) Error ¶
func (e CacheUpdateError) Error() string
func (CacheUpdateError) Unwrap ¶
func (e CacheUpdateError) Unwrap() error
type ExecutableCache ¶
type ExecutableCache interface {
Update() error
GetExecutableByRef(ref executable.Ref) (*executable.Executable, error)
GetExecutableList() (executable.ExecutableList, error)
}
func NewExecutableCache ¶
func NewExecutableCache(wsCache WorkspaceCache) ExecutableCache
type ExecutableCacheData ¶
type ExecutableCacheData struct {
// Map of executable ref to config path
ExecutableMap map[executable.Ref]string `json:"executableMap" yaml:"executableMap"`
// Map of executable alias ref to primary executable ref
AliasMap map[executable.Ref]executable.Ref `json:"aliasMap" yaml:"aliasMap"`
// Map of config paths to their workspace / workspace path
ConfigMap map[string]WorkspaceInfo `json:"configMap" yaml:"configMap"`
// contains filtered or unexported fields
}
type ExecutableCacheImpl ¶
type ExecutableCacheImpl struct {
Data *ExecutableCacheData `json:",inline" yaml:",inline"`
WorkspaceCache WorkspaceCache `json:"-" yaml:"-"`
}
func (*ExecutableCacheImpl) GetExecutableByRef ¶
func (c *ExecutableCacheImpl) GetExecutableByRef(ref executable.Ref) (*executable.Executable, error)
func (*ExecutableCacheImpl) GetExecutableList ¶
func (c *ExecutableCacheImpl) GetExecutableList() (executable.ExecutableList, error)
func (*ExecutableCacheImpl) Update ¶
func (c *ExecutableCacheImpl) Update() error
type ExecutableNotFoundError ¶
type ExecutableNotFoundError struct {
Ref string
}
func NewExecutableNotFoundError ¶
func NewExecutableNotFoundError(ref string) ExecutableNotFoundError
func (ExecutableNotFoundError) Error ¶
func (e ExecutableNotFoundError) Error() string
func (ExecutableNotFoundError) Unwrap ¶
func (e ExecutableNotFoundError) Unwrap() error
type WorkspaceCache ¶
type WorkspaceCache interface {
Update() error
GetData() *WorkspaceCacheData
GetLatestData() (*WorkspaceCacheData, error)
GetWorkspaceConfigList() (workspace.WorkspaceList, error)
}
func NewWorkspaceCache ¶
func NewWorkspaceCache() WorkspaceCache
type WorkspaceCacheData ¶
type WorkspaceCacheImpl ¶
type WorkspaceCacheImpl struct {
Data *WorkspaceCacheData
}
func (*WorkspaceCacheImpl) GetData ¶
func (c *WorkspaceCacheImpl) GetData() *WorkspaceCacheData
func (*WorkspaceCacheImpl) GetLatestData ¶
func (c *WorkspaceCacheImpl) GetLatestData() (*WorkspaceCacheData, error)
func (*WorkspaceCacheImpl) GetWorkspaceConfigList ¶
func (c *WorkspaceCacheImpl) GetWorkspaceConfigList() (workspace.WorkspaceList, error)
func (*WorkspaceCacheImpl) Update ¶
func (c *WorkspaceCacheImpl) Update() error
type WorkspaceInfo ¶
Click to show internal directories.
Click to hide internal directories.