Documentation
¶
Index ¶
- Variables
- func AddDomain(ctx context.Context, projectID string, domain string) (err error)
- func CreateFromJSON(ctx context.Context, filename string) error
- func RemoveDomain(ctx context.Context, projectID string, domain string) (err error)
- func Restart(ctx context.Context, id string) error
- func Unlink(ctx context.Context, projectID string) error
- func Validate(ctx context.Context, projectID string) (err error)
- func ValidateOrCreate(id string) (fid string, err error)
- func ValidateOrCreateFromJSON(filename string) (created bool, err error)
- type Project
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrProjectNotFound happens when a project.json is not found ErrProjectNotFound = errors.New("Project not found") // ErrProjectAlreadyExists happens when a Project ID already exists ErrProjectAlreadyExists = errors.New("Project already exists") // ErrInvalidProjectID happens when a Project ID is invalid ErrInvalidProjectID = errors.New("Invalid project ID") // ErrEmptyProjectID happens when trying to access a project, but providing an empty ID ErrEmptyProjectID = errors.New("Can not get project: ID is empty") )
Functions ¶
func CreateFromJSON ¶
CreateFromJSON a project on WeDeploy
func RemoveDomain ¶
RemoveDomain in project
func ValidateOrCreate ¶
ValidateOrCreate project
func ValidateOrCreateFromJSON ¶
ValidateOrCreateFromJSON project
Types ¶
type Project ¶
type Project struct {
ID string `json:"id"`
CustomDomains []string `json:"customDomains,omitempty"`
Health string `json:"health,omitempty"`
HomeContainer string `json:"homeContainer,omitempty"`
Description string `json:"description,omitempty"`
Containers containers.Containers `json:"containers,omitempty"`
}
Project structure
Click to show internal directories.
Click to hide internal directories.