Documentation
¶
Index ¶
- Constants
- Variables
- func CachedDataDirPath() string
- func ConfigDirPath() string
- func EnsureCachedDataDir() error
- func EnsureConfigDir() error
- func EnsureDefaultWorkspace() error
- func EnsureLogsDir() error
- func EnsureWorkspaceConfig(workspaceName, workspacePath string) error
- func EnsureWorkspaceDir(workspacePath string) error
- func InitUserConfig() error
- func InitWorkspaceConfig(name, path string) error
- func LatestCachedDataFilePath(cacheKey string) string
- func LoadExecutableDefinition(definitionFile string) (*config.ExecutableDefinition, error)
- func LoadLatestCachedData(cacheKey string) ([]byte, error)
- func LoadUserConfig() (*config.UserConfig, error)
- func LoadWorkspaceConfig(workspaceName, workspacePath string) (*config.WorkspaceConfig, error)
- func LoadWorkspaceExecutableDefinitions(logger *io.Logger, workspaceCfg *config.WorkspaceConfig) (config.ExecutableDefinitionList, error)
- func WriteLatestCachedData(cacheKey string, data []byte) error
- func WriteUserConfig(config *config.UserConfig) error
- func WriteWorkspaceConfig(workspacePath string, config *config.WorkspaceConfig) error
Constants ¶
View Source
const ( WorkspaceConfigFileName = "flow.yaml" ExecutableDefinitionExt = ".flow" )
Variables ¶
View Source
var ( UserConfigPath = ConfigDirPath() + "/config.yaml" DefaultWorkspacePath = CachedDataDirPath() + "/default" LatestCacheDataPath = CachedDataDirPath() + "/latestcache" LogsDirPath = CachedDataDirPath() + "/logs" )
Functions ¶
func CachedDataDirPath ¶
func CachedDataDirPath() string
func ConfigDirPath ¶
func ConfigDirPath() string
func EnsureCachedDataDir ¶
func EnsureCachedDataDir() error
func EnsureConfigDir ¶
func EnsureConfigDir() error
func EnsureDefaultWorkspace ¶
func EnsureDefaultWorkspace() error
func EnsureLogsDir ¶ added in v0.1.1
func EnsureLogsDir() error
func EnsureWorkspaceConfig ¶
func EnsureWorkspaceDir ¶
func InitUserConfig ¶
func InitUserConfig() error
func InitWorkspaceConfig ¶
func LoadExecutableDefinition ¶
func LoadExecutableDefinition(definitionFile string) (*config.ExecutableDefinition, error)
func LoadLatestCachedData ¶
func LoadUserConfig ¶
func LoadUserConfig() (*config.UserConfig, error)
func LoadWorkspaceConfig ¶
func LoadWorkspaceConfig(workspaceName, workspacePath string) (*config.WorkspaceConfig, error)
func LoadWorkspaceExecutableDefinitions ¶
func LoadWorkspaceExecutableDefinitions( logger *io.Logger, workspaceCfg *config.WorkspaceConfig, ) (config.ExecutableDefinitionList, error)
func WriteLatestCachedData ¶
func WriteUserConfig ¶
func WriteUserConfig(config *config.UserConfig) error
func WriteWorkspaceConfig ¶
func WriteWorkspaceConfig(workspacePath string, config *config.WorkspaceConfig) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.