Documentation
¶
Overview ¶
Package state handles workspace state file loading, saving, and validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAPIVersion = errors.New("apiVersion must be flow/v1") ErrInvalidKind = errors.New("kind must be State") ErrMissingRepos = errors.New("spec.repos must not be empty") ErrMissingRepoURL = errors.New("url is required") ErrMissingRepoBranch = errors.New("branch is required") )
Validation errors for state files.
Functions ¶
Types ¶
type Metadata ¶
type Metadata struct {
Name string `yaml:"name,omitempty"`
Description string `yaml:"description,omitempty"`
Created string `yaml:"created"`
}
Metadata contains workspace identification.
type Repo ¶
type Repo struct {
URL string `yaml:"url"`
Branch string `yaml:"branch"`
Path string `yaml:"path,omitempty"`
}
Repo defines a single repository in the workspace.
Click to show internal directories.
Click to hide internal directories.