projects

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

This section is empty.

Types

type Client added in v1.1.5

type Client struct {
	*apihelper.Client
}

Client for the projects

func New added in v1.1.5

func New(wectx config.Context) *Client

New Client

func (*Client) Create added in v1.1.5

func (c *Client) Create(ctx context.Context, project Project) (p Project, err error)

Create on the backend

func (*Client) CreateOrUpdate added in v1.1.5

func (c *Client) CreateOrUpdate(ctx context.Context, project Project) (pRec Project, created bool, err error)

CreateOrUpdate project

func (*Client) Get added in v1.1.5

func (c *Client) Get(ctx context.Context, id string) (project Project, err error)

Get project by ID

func (*Client) GetDeploymentOrder added in v1.2.2

func (c *Client) GetDeploymentOrder(ctx context.Context, projectID, groupUID string) (order []string, err error)

GetDeploymentOrder gets the order of a given deployment

func (*Client) GetWithServices added in v1.2.6

func (c *Client) GetWithServices(ctx context.Context, id string) (project Project, err error)

GetWithServices project by ID with a list of its services

func (*Client) List added in v1.1.5

func (c *Client) List(ctx context.Context) (list []Project, err error)

List projects

func (*Client) ListWithServices added in v1.2.6

func (c *Client) ListWithServices(ctx context.Context) (list []Project, err error)

ListWithServices projects with a list of its services

func (c *Client) Unlink(ctx context.Context, projectID string) error

Unlink project

func (*Client) Update added in v1.1.5

func (c *Client) Update(ctx context.Context, project Project) (p Project, err error)

Update project

type Project

type Project struct {
	ProjectID   string `json:"projectId"`
	Health      string `json:"health,omitempty"`
	Description string `json:"description,omitempty"`

	Services services.Services `json:"services,omitempty"`
}

Project structure

Jump to

Keyboard shortcuts

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