Documentation
¶
Index ¶
- Variables
- func Copy(src, dst string) (int64, error)
- func DownloadFile(filepath string, url string) error
- func ExpandPath(path string) string
- func FileExists(name string) bool
- func FileToString(filePath string) string
- func GetBuildsDir() (string, error)
- func GetConfigDir() (string, error)
- func GetWorkflowsDir() (string, error)
- func IsDirectory(path string) (bool, error)
- func LinesCount(s string) int
- func ListBuildRecipes() ([]string, error)
- func ListWorkflows() ([]string, error)
- func MakeFolder(path string)
- func MatchesFleetName(label, name string) bool
- func ReadBuildFile(nameOrPath string) (*models.BuildRecipe, error)
- func ReadModuleFile(path string) (*models.Module, error)
- func ReadWorkflowFile(nameOrPath string) (*models.Workflow, error)
- func ReplaceBuildVars(text string, vars map[string]string) string
- func ReplaceWorkflowVars(text string, vars map[string]string) string
- func RunCommand(command string, background bool)
- func SaveBuildRecipe(recipe *models.BuildRecipe) error
- func SaveWorkflow(workflow *models.Workflow) error
- func SetLogLevel(level string)
- func SetProxy(proxyURL string)
- func StringToFile(filePath, text string)
- func Unzip(src, dest string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logrus.New()
Functions ¶
func DownloadFile ¶
func ExpandPath ¶
func FileExists ¶
func FileToString ¶
func GetBuildsDir ¶
func GetConfigDir ¶
func GetWorkflowsDir ¶
func IsDirectory ¶
func LinesCount ¶
func ListBuildRecipes ¶
func ListWorkflows ¶
func MakeFolder ¶
func MakeFolder(path string)
func MatchesFleetName ¶
MatchesFleetName determines if a box label matches the given fleet name. If the name ends with -{number}, only exact matches are returned (e.g., "droplet-2" only matches "droplet-2"). Otherwise, prefix matching is used (e.g., "droplet" matches "droplet-1", "droplet-2", etc.).
func ReadBuildFile ¶
func ReadBuildFile(nameOrPath string) (*models.BuildRecipe, error)
func RunCommand ¶
func SaveBuildRecipe ¶
func SaveBuildRecipe(recipe *models.BuildRecipe) error
func SaveWorkflow ¶
func SetLogLevel ¶
func SetLogLevel(level string)
func StringToFile ¶
func StringToFile(filePath, text string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.