Documentation
¶
Index ¶
- Constants
- type ApiError
- type Changelog
- type Client
- func (c *Client) CreateChangelog(ctx context.Context, args apitypes.CreateChangelogBody) (Changelog, error)
- func (c *Client) CreateGHSource(ctx context.Context, args CreateGHSourceBody) (GHSource, error)
- func (c *Client) CreateWorkspace(ctx context.Context, args apitypes.CreateWorkspaceBody) (Workspace, error)
- func (c *Client) DeleteChangelog(ctx context.Context, changelogID string) error
- func (c *Client) DeleteChangelogSource(ctx context.Context, changelogID string) error
- func (c *Client) DeleteGHSource(ctx context.Context, sourceID string) error
- func (c *Client) DeleteWorkspace(ctx context.Context, id string) error
- func (c *Client) GetChangelog(ctx context.Context, changelogID string) (Changelog, error)
- func (c *Client) GetFullChangelog(ctx context.Context, args GetFullChangelogParams) (FullChangelog, error)
- func (c *Client) ListChangelogs(ctx context.Context) ([]Changelog, error)
- func (c *Client) ListSources(ctx context.Context) ([]Source, error)
- func (c *Client) NewRequest(ctx context.Context, method, requestPath string, body io.Reader) (*http.Request, error)
- func (c *Client) SetChangelogSource(ctx context.Context, changelogID string, sourceID string) error
- func (c *Client) UpdateChangelog(ctx context.Context, changelogID string, args apitypes.UpdateChangelogBody) (Changelog, error)
- type Config
- type CreateGHSourceBody
- type FullChangelog
- type GHSource
- type GetFullChangelogParams
- type Response
- type Source
- type Workspace
Constants ¶
View Source
const ( DefaultAddress = "https://localhost:6001/api" AuthHeader = "Authorization" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateChangelog ¶
func (*Client) CreateGHSource ¶
func (*Client) CreateWorkspace ¶
func (*Client) DeleteChangelog ¶
func (*Client) DeleteChangelogSource ¶
func (*Client) DeleteGHSource ¶
func (*Client) DeleteWorkspace ¶
func (*Client) GetChangelog ¶
func (*Client) GetFullChangelog ¶
func (c *Client) GetFullChangelog(ctx context.Context, args GetFullChangelogParams) (FullChangelog, error)
func (*Client) ListChangelogs ¶
func (*Client) NewRequest ¶
func (*Client) SetChangelogSource ¶
func (*Client) UpdateChangelog ¶
type CreateGHSourceBody ¶
type CreateGHSourceBody = apitypes.CreateGHSourceBody
type FullChangelog ¶
type FullChangelog = apitypes.FullChangelog
type GHSource ¶
type GHSource = apitypes.CreateGHSourceBody
type GetFullChangelogParams ¶
type Response ¶
func (*Response) DecodeJSON ¶
DecodeJSON will decode the response body to a JSON structure. This will consume the response body, but will not close it. Close must still be called.
Click to show internal directories.
Click to hide internal directories.