Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Create(ctx context.Context, project Project) (p Project, err error)
- func (c *Client) CreateOrUpdate(ctx context.Context, project Project) (pRec Project, created bool, err error)
- func (c *Client) Get(ctx context.Context, id string) (project Project, err error)
- func (c *Client) List(ctx context.Context) (list []Project, err error)
- func (c *Client) Unlink(ctx context.Context, projectID string) error
- func (c *Client) Update(ctx context.Context, project Project) (p Project, 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 ¶
This section is empty.
Types ¶
type Client ¶ added in v1.1.5
Client for the projects
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
Click to show internal directories.
Click to hide internal directories.