file

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 EnsureExecutableDir added in v0.1.3

func EnsureExecutableDir(workspacePath, subPath string) error

func EnsureLogsDir added in v0.1.1

func EnsureLogsDir() error

func EnsureWorkspaceConfig

func EnsureWorkspaceConfig(workspaceName, workspacePath string) error

func EnsureWorkspaceDir

func EnsureWorkspaceDir(workspacePath string) error

func InitExecutables added in v0.1.3

func InitExecutables(
	template *config.ExecutableDefinitionTemplate,
	ws *config.WorkspaceConfig,
	name, subPath string,
) error

func InitUserConfig

func InitUserConfig() error

func InitWorkspaceConfig

func InitWorkspaceConfig(name, path string) error

func LatestCachedDataFilePath

func LatestCachedDataFilePath(cacheKey string) string

func LoadExecutableDefinition

func LoadExecutableDefinition(definitionFile string) (*config.ExecutableDefinition, error)

func LoadExecutableDefinitionTemplate added in v0.1.3

func LoadExecutableDefinitionTemplate(templateFile string) (*config.ExecutableDefinitionTemplate, error)

func LoadLatestCachedData

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

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 RenderAndWriteExecutablesTemplate added in v0.1.3

func RenderAndWriteExecutablesTemplate(
	definitionTemplate *config.ExecutableDefinitionTemplate,
	ws *config.WorkspaceConfig,
	name, subPath string,
) error

func WriteExecutableDefinition added in v0.1.3

func WriteExecutableDefinition(definitionFile string, definition *config.ExecutableDefinition) error

func WriteLatestCachedData

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

func WriteUserConfig

func WriteUserConfig(config *config.UserConfig) error

func WriteWorkspaceConfig

func WriteWorkspaceConfig(workspacePath string, config *config.WorkspaceConfig) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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