Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyInitialized = fmt.Errorf("project files already exist")
ErrAlreadyInitialized is used when scaffolding is being run on a project that is already setup.
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct { Version string // Organize contains a mapping of files relative to Scaffold src, to be // copied into dst, relative to dst. Missing intermediate directories will // be created as needed. Organize map[string]string `json:"organize"` }
Manifest defines the scaffold manifest model.
type Option ¶
type Option func(*Scaffold)
Option defines a functional option that modifies a new Scaffold in the constructor.
type Scaffold ¶
type Scaffold struct {
// contains filtered or unexported fields
}
Scaffold defines a Vervet API project scaffold.
func New ¶
New returns a new Scaffold loaded from source directory `src` for operation on destination directory `dst`. The Scaffold src must contain a `manifest.yaml` which defines how dst will be provisioned.
Click to show internal directories.
Click to hide internal directories.