Documentation
¶
Index ¶
- Constants
- func CachedDataDirPath() string
- func ConfigDirPath() string
- func CopyFile(src, dst string) error
- func EnsureCachedDataDir() error
- func EnsureConfigDir() error
- func EnsureExecutableDir(workspacePath, subPath string) error
- func EnsureLogsDir() error
- func EnsureWorkspaceConfig(workspaceName, workspacePath string) error
- func EnsureWorkspaceDir(workspacePath string) error
- func InitConfig() error
- func InitWorkspaceConfig(name, path string) error
- func LoadConfig() (*config.Config, error)
- func LoadFlowFile(cfgFile string) (*executable.FlowFile, error)
- func LoadFlowFileTemplate(flowfileName, templatePath string) (*executable.Template, error)
- func LoadFlowFileTemplates(templatePaths map[string]string) (executable.TemplateList, error)
- func LoadWorkspaceConfig(workspaceName, workspacePath string) (*workspace.Workspace, error)
- func LoadWorkspaceFlowFiles(workspaceCfg *workspace.Workspace) (executable.FlowFileList, error)
- func LogsDir() string
- func StateDirPath() string
- func UserConfigFilePath() string
- func WorkspaceConfigExists(workspacePath string) bool
- func WriteConfig(config *config.Config) error
- func WriteFlowFile(cfgFile string, cfg *executable.FlowFile) error
- func WriteWorkspaceConfig(workspacePath string, config *workspace.Workspace) error
Constants ¶
View Source
const FlowCacheDirEnvVar = "FLOW_CACHE_DIR"
View Source
const FlowConfigDirEnvVar = "FLOW_CONFIG_DIR"
View Source
const FlowStateDirEnvVar = "FLOW_STATE_DIR"
View Source
const WorkspaceConfigFileName = "flow.yaml"
Variables ¶
This section is empty.
Functions ¶
func CachedDataDirPath ¶
func CachedDataDirPath() string
func ConfigDirPath ¶
func ConfigDirPath() string
func EnsureCachedDataDir ¶
func EnsureCachedDataDir() error
func EnsureConfigDir ¶
func EnsureConfigDir() error
func EnsureExecutableDir ¶
func EnsureLogsDir ¶
func EnsureLogsDir() error
func EnsureWorkspaceConfig ¶
func EnsureWorkspaceDir ¶
func InitConfig ¶
func InitConfig() error
func InitWorkspaceConfig ¶
func LoadConfig ¶
func LoadFlowFile ¶
func LoadFlowFile(cfgFile string) (*executable.FlowFile, error)
func LoadFlowFileTemplate ¶
func LoadFlowFileTemplate(flowfileName, templatePath string) (*executable.Template, error)
func LoadFlowFileTemplates ¶
func LoadFlowFileTemplates(templatePaths map[string]string) (executable.TemplateList, error)
func LoadWorkspaceConfig ¶
func LoadWorkspaceFlowFiles ¶
func LoadWorkspaceFlowFiles( workspaceCfg *workspace.Workspace, ) (executable.FlowFileList, error)
func StateDirPath ¶
func StateDirPath() string
StateDirPath returns the platform-appropriate directory for persistent state data (logs, history) that is not configuration and should not be treated as disposable cache.
Platform defaults:
- macOS: ~/Library/Logs/flow
- Linux: $XDG_STATE_HOME/flow (defaults to ~/.local/state/flow)
- Windows: %LOCALAPPDATA%\flow
func UserConfigFilePath ¶
func UserConfigFilePath() string
func WorkspaceConfigExists ¶
func WriteConfig ¶
func WriteFlowFile ¶
func WriteFlowFile(cfgFile string, cfg *executable.FlowFile) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.