Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) CreateProject(ctx context.Context, name string) (*types.Project, error)
- func (c *Client) Dial(adminAddr string) error
- func (c *Client) ListChangeSummaries(ctx context.Context, projectName string, key key.Key) ([]*types.ChangeSummary, error)
- func (c *Client) ListProjects(ctx context.Context) ([]*types.Project, error)
- func (c *Client) UpdateProject(ctx context.Context, id string, fields *types.UpdatableProjectFields) (*types.Project, error)
- type Option
- type Options
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 for admin service.
func (*Client) CreateProject ¶
CreateProject creates a new project.
func (*Client) ListChangeSummaries ¶ added in v0.2.9
func (c *Client) ListChangeSummaries( ctx context.Context, projectName string, key key.Key, ) ([]*types.ChangeSummary, error)
ListChangeSummaries returns the change summaries of the given document.
func (*Client) ListProjects ¶
ListProjects lists all projects.
type Option ¶
type Option func(*Options)
Option configures Options.
func WithLogger ¶
WithLogger configures the Logger of the client.
Click to show internal directories.
Click to hide internal directories.