util

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotOneArgs    = errors.New("only one arg accepted")
	ErrEmptyName     = errors.New("empty workspace name")
	ErrEmptyFilePath = errors.New("empty configuration file path")
)

Functions

func GetNameFromArgs

func GetNameFromArgs(args []string) (string, error)

GetNameFromArgs returns workspace name specified by args.

func GetValidWorkspaceFromFile

func GetValidWorkspaceFromFile(filePath, name string) (*v1.Workspace, error)

GetValidWorkspaceFromFile gets valid and structured workspace form file.

func ValidateFilePath

func ValidateFilePath(filePath string) error

ValidateFilePath returns the configuration file path is valid or not.

func ValidateName

func ValidateName(name string) error

ValidateName returns the workspace name is valid or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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