Documentation
¶
Index ¶
- func UnwrapError(r *http.Response) error
- type Client
- type ConceptsClient
- func (c ConceptsClient) Get(ctx context.Context, identifier concepts.ConceptIdentifier) (*api.ConceptPayload, *Response, error)
- func (c ConceptsClient) GetFromRepository(ctx context.Context, repo string, identifier concepts.ConceptIdentifier) (*api.ConceptPayload, *Response, error)
- func (c ConceptsClient) List(ctx context.Context, options *ListOptions) (*api.ConceptsPayload, *Response, error)
- func (c ConceptsClient) ListByTag(ctx context.Context, s string, options *ListOptions) (*api.ConceptsPayload, *Response, error)
- func (c ConceptsClient) ListFromRepository(ctx context.Context, repo string, options *ListOptions) (*api.ConceptsPayload, *Response, error)
- type ConceptsService
- type ErrorResponse
- type ListOptions
- type RepositoriesClient
- func (r RepositoriesClient) Delete(ctx context.Context, name string) (*Response, error)
- func (r RepositoriesClient) Get(ctx context.Context, name string) (*api.RepositoryPayload, *Response, error)
- func (r RepositoriesClient) List(ctx context.Context, options *ListOptions) (*api.RepositoriesPayload, *Response, error)
- func (r RepositoriesClient) Put(ctx context.Context, name, giturl, gitref string) (*Response, error)
- type RepositoriesService
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnwrapError ¶
Types ¶
type Client ¶
type Client struct {
BaseURL *url.URL
Concepts ConceptsService
Repositories RepositoriesService
// contains filtered or unexported fields
}
type ConceptsClient ¶
type ConceptsClient struct {
// contains filtered or unexported fields
}
func (ConceptsClient) Get ¶
func (c ConceptsClient) Get(ctx context.Context, identifier concepts.ConceptIdentifier) (*api.ConceptPayload, *Response, error)
func (ConceptsClient) GetFromRepository ¶
func (c ConceptsClient) GetFromRepository(ctx context.Context, repo string, identifier concepts.ConceptIdentifier) (*api.ConceptPayload, *Response, error)
func (ConceptsClient) List ¶
func (c ConceptsClient) List(ctx context.Context, options *ListOptions) (*api.ConceptsPayload, *Response, error)
func (ConceptsClient) ListByTag ¶
func (c ConceptsClient) ListByTag(ctx context.Context, s string, options *ListOptions) (*api.ConceptsPayload, *Response, error)
func (ConceptsClient) ListFromRepository ¶ added in v0.7.0
func (c ConceptsClient) ListFromRepository(ctx context.Context, repo string, options *ListOptions) (*api.ConceptsPayload, *Response, error)
type ConceptsService ¶
type ConceptsService interface {
Get(context.Context, concepts.ConceptIdentifier) (*api.ConceptPayload, *Response, error)
GetFromRepository(context.Context, string, concepts.ConceptIdentifier) (*api.ConceptPayload, *Response, error)
List(context.Context, *ListOptions) (*api.ConceptsPayload, *Response, error)
ListFromRepository(context.Context, string, *ListOptions) (*api.ConceptsPayload, *Response, error)
ListByTag(context.Context, string, *ListOptions) (*api.ConceptsPayload, *Response, error)
}
type ErrorResponse ¶
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
type ListOptions ¶
type ListOptions struct {
// Which page to list.
Page int `url:"page,omitempty"`
// Results per page.
Limit int `url:"limit,omitempty"`
}
ListOptions defines paramaters to be used with List Operations
type RepositoriesClient ¶
type RepositoriesClient struct {
// contains filtered or unexported fields
}
func (RepositoriesClient) Get ¶
func (r RepositoriesClient) Get(ctx context.Context, name string) (*api.RepositoryPayload, *Response, error)
func (RepositoriesClient) List ¶
func (r RepositoriesClient) List(ctx context.Context, options *ListOptions) (*api.RepositoriesPayload, *Response, error)
type RepositoriesService ¶
type RepositoriesService interface {
Get(ctx context.Context, name string) (*api.RepositoryPayload, *Response, error)
List(ctx context.Context, options *ListOptions) (*api.RepositoriesPayload, *Response, error)
Put(ctx context.Context, name, giturl, gitref string) (*Response, error)
Delete(ctx context.Context, name string) (*Response, error)
}
Click to show internal directories.
Click to hide internal directories.