Documentation
¶
Index ¶
- type Client
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) CreateProject(ctx context.Context, name string) (*types.ProjectInfo, error)
- func (c *Client) CreateTemplate(ctx context.Context, name, contents string) (*types.TemplateInfo, error)
- func (c *Client) DeleteProject(ctx context.Context, id types.ID) error
- func (c *Client) Dial(ctx context.Context) error
- func (c *Client) FindProject(ctx context.Context, id types.ID) (*types.ProjectInfo, error)
- func (c *Client) FindTemplate(ctx context.Context, id types.ID) (*types.TemplateInfo, error)
- func (c *Client) ListProjects(ctx context.Context) ([]*types.ProjectInfo, error)
- func (c *Client) UpdateProject(ctx context.Context, id types.ID, name string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client that connects to Mongo DB and reads or saves Metis data.
func (*Client) CreateProject ¶
CreateProject creates a new project of the given name.
func (*Client) CreateTemplate ¶
func (c *Client) CreateTemplate(ctx context.Context, name, contents string) (*types.TemplateInfo, error)
CreateTemplate creates a new template.
func (*Client) DeleteProject ¶
DeleteProject deletes the given project.
func (*Client) FindProject ¶
FindProject returns the project of the given ID.
func (*Client) FindTemplate ¶
FindTemplate returns the template of the given ID.
func (*Client) ListProjects ¶
ListProjects returns the list of projects.
Click to show internal directories.
Click to hide internal directories.