package
0.4.0-alpha.0
Repository: https://github.com/konveyor/move2kube-api.git
Documentation: pkg.go.dev
# Functions
CopyFile copies a file from src to dst.
NewFileSystem returns a new IFileSystem object which manages workspaces and projects in the filesystem.
# Constants
ARCHIVES_DIR is the directory where the archive files for project inputs are stored.
CONFIGS_DIR is the directory where the configs files project inputs are stored.
CUSTOMIZATIONS_DIR is the directory where the customizations directory project inputs are stored.
DATABASE_FILENAME is the database filename.
DEFAULT_DIRECTORY_PERMISSIONS is the default permissions used when creating new directories.
DEFAULT_FILE_PERMISSIONS is the default permissions used when creating new files.
EXPANDED_DIR is the directory where the archive files for project inputs are expanded and stored.
INPUTS_DIR is the directory where project inputs are stored.
M2K_CLI_LOG_FILE is the name of the log file that the CLI writes to.
M2K_PLAN_FILENAME is the name of the plan file generated by Move2Kube CLI.
M2K_PLAN_PROGRESS_SERVER_METADATA_FILE is the name of the file containing the plan progress server metadata.
M2K_QA_SERVER_METADATA_FILE is the name of the file containing the QA server metadata.
PROJECT_METADATA_FILE is the name of the file containing the project metadata.
PROJECT_OUTPUTS_DIR is the directory where project outputs are stored.
PROJECT_PLAN_DIR is the directory where planning is done.
PROJECTS_BUCKET is the projects bucket.
PROJECTS_DIR is the name of the directory where the projects are stored.
SOURCES_DIR is the directory where the sources directory project inputs are stored.
WORKSPACES_BUCKET is the workspaces bucket.
WORKSPACES_DIR is the name of the directory where the workspaces are stored.
# Variables
LOG_LEVEL_REGEXP is the regexp used to capture the loglevel from the CLI output.
TIMESTAMP_REGEXP is the regexp used to replace the the timestamp in the CLI output with a different message.
VALID_ARCHIVE_EXTS is the list of archive formats that are supported.
# Structs
FileSystem implements the IFileSystem interface and manages the workspace and project data in the filesystem.
# Interfaces
IFileSystem defines an interface that can manage Move2Kube workspaces and projects.