filesystem

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const FlowCacheDirEnvVar = "FLOW_CACHE_DIR"
View Source
const FlowConfigDirEnvVar = "FLOW_CONFIG_DIR"
View Source
const WorkspaceConfigFileName = "flow.yaml"

Variables

This section is empty.

Functions

func CachedDataDirPath

func CachedDataDirPath() string

func ConfigDirPath

func ConfigDirPath() string

func CopyFile

func CopyFile(src, dst string) error

func DefaultWorkspaceDir

func DefaultWorkspaceDir() string

func EnsureCachedDataDir

func EnsureCachedDataDir() error

func EnsureConfigDir

func EnsureConfigDir() error

func EnsureDefaultWorkspace

func EnsureDefaultWorkspace() error

func EnsureExecutableDir

func EnsureExecutableDir(workspacePath, subPath string) error

func EnsureLogsDir

func EnsureLogsDir() error

func EnsureWorkspaceConfig

func EnsureWorkspaceConfig(workspaceName, workspacePath string) error

func EnsureWorkspaceDir

func EnsureWorkspaceDir(workspacePath string) error

func InitConfig added in v0.5.0

func InitConfig() error

func InitWorkspaceConfig

func InitWorkspaceConfig(name, path string) error

func LatestCachedDataDir

func LatestCachedDataDir() string

func LatestCachedDataFilePath

func LatestCachedDataFilePath(cacheKey string) string

func LoadConfig

func LoadConfig() (*config.Config, error)

func LoadFlowFile

func LoadFlowFile(cfgFile string) (*executable.FlowFile, error)

func LoadFlowFileTemplate

func LoadFlowFileTemplate(flowfileName, templatePath string) (*executable.Template, error)

func LoadFlowFileTemplates added in v0.6.0

func LoadFlowFileTemplates(templatePaths map[string]string) (executable.TemplateList, error)

func LoadLatestCachedData

func LoadLatestCachedData(cacheKey string) ([]byte, error)

func LoadWorkspaceConfig

func LoadWorkspaceConfig(workspaceName, workspacePath string) (*workspace.Workspace, error)

func LoadWorkspaceFlowFiles

func LoadWorkspaceFlowFiles(
	logger io.Logger,
	workspaceCfg *workspace.Workspace,
) (executable.FlowFileList, error)

func LogsDir

func LogsDir() string

func UserConfigFilePath

func UserConfigFilePath() string

func WorkspaceConfigExists

func WorkspaceConfigExists(workspacePath string) bool

func WriteConfig added in v0.5.0

func WriteConfig(config *config.Config) error

func WriteFlowFile

func WriteFlowFile(cfgFile string, cfg *executable.FlowFile) error

func WriteLatestCachedData

func WriteLatestCachedData(cacheKey string, data []byte) error

func WriteWorkspaceConfig

func WriteWorkspaceConfig(workspacePath string, config *workspace.Workspace) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL