file

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 11 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 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 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 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 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