Documentation
¶
Index ¶
- type Client
- func (a *Client) GetWorkspace(params *GetWorkspaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkspaceOK, error)
- func (a *Client) GetWorkspaces(params *GetWorkspacesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkspacesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetWorkspaceNotFound
- func (o *GetWorkspaceNotFound) Code() int
- func (o *GetWorkspaceNotFound) Error() string
- func (o *GetWorkspaceNotFound) GetPayload() *models.Errors
- func (o *GetWorkspaceNotFound) IsClientError() bool
- func (o *GetWorkspaceNotFound) IsCode(code int) bool
- func (o *GetWorkspaceNotFound) IsRedirect() bool
- func (o *GetWorkspaceNotFound) IsServerError() bool
- func (o *GetWorkspaceNotFound) IsSuccess() bool
- func (o *GetWorkspaceNotFound) String() string
- type GetWorkspaceOK
- func (o *GetWorkspaceOK) Code() int
- func (o *GetWorkspaceOK) Error() string
- func (o *GetWorkspaceOK) GetPayload() *models.Workspace
- func (o *GetWorkspaceOK) IsClientError() bool
- func (o *GetWorkspaceOK) IsCode(code int) bool
- func (o *GetWorkspaceOK) IsRedirect() bool
- func (o *GetWorkspaceOK) IsServerError() bool
- func (o *GetWorkspaceOK) IsSuccess() bool
- func (o *GetWorkspaceOK) String() string
- type GetWorkspaceParams
- func (o *GetWorkspaceParams) SetContext(ctx context.Context)
- func (o *GetWorkspaceParams) SetDefaults()
- func (o *GetWorkspaceParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkspaceParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkspaceParams) SetWorkspaceToken(workspaceToken string)
- func (o *GetWorkspaceParams) WithContext(ctx context.Context) *GetWorkspaceParams
- func (o *GetWorkspaceParams) WithDefaults() *GetWorkspaceParams
- func (o *GetWorkspaceParams) WithHTTPClient(client *http.Client) *GetWorkspaceParams
- func (o *GetWorkspaceParams) WithTimeout(timeout time.Duration) *GetWorkspaceParams
- func (o *GetWorkspaceParams) WithWorkspaceToken(workspaceToken string) *GetWorkspaceParams
- func (o *GetWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkspaceReader
- type GetWorkspacesOK
- func (o *GetWorkspacesOK) Code() int
- func (o *GetWorkspacesOK) Error() string
- func (o *GetWorkspacesOK) GetPayload() *models.Workspaces
- func (o *GetWorkspacesOK) IsClientError() bool
- func (o *GetWorkspacesOK) IsCode(code int) bool
- func (o *GetWorkspacesOK) IsRedirect() bool
- func (o *GetWorkspacesOK) IsServerError() bool
- func (o *GetWorkspacesOK) IsSuccess() bool
- func (o *GetWorkspacesOK) String() string
- type GetWorkspacesParams
- func (o *GetWorkspacesParams) SetContext(ctx context.Context)
- func (o *GetWorkspacesParams) SetDefaults()
- func (o *GetWorkspacesParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkspacesParams) SetLimit(limit *int32)
- func (o *GetWorkspacesParams) SetPage(page *int32)
- func (o *GetWorkspacesParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkspacesParams) WithContext(ctx context.Context) *GetWorkspacesParams
- func (o *GetWorkspacesParams) WithDefaults() *GetWorkspacesParams
- func (o *GetWorkspacesParams) WithHTTPClient(client *http.Client) *GetWorkspacesParams
- func (o *GetWorkspacesParams) WithLimit(limit *int32) *GetWorkspacesParams
- func (o *GetWorkspacesParams) WithPage(page *int32) *GetWorkspacesParams
- func (o *GetWorkspacesParams) WithTimeout(timeout time.Duration) *GetWorkspacesParams
- func (o *GetWorkspacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkspacesReader
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 for workspaces API
func (*Client) GetWorkspace ¶
func (a *Client) GetWorkspace(params *GetWorkspaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspaceOK, error)
GetWorkspace Return a specific Workspace.
func (*Client) GetWorkspaces ¶
func (a *Client) GetWorkspaces(params *GetWorkspacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspacesOK, error)
GetWorkspaces Return all Workspaces that the current API token has access to.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetWorkspace(params *GetWorkspaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspaceOK, error) GetWorkspaces(params *GetWorkspacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspacesOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new workspaces API client.
type GetWorkspaceNotFound ¶
GetWorkspaceNotFound describes a response with status code 404, with default header values.
NotFound
func NewGetWorkspaceNotFound ¶
func NewGetWorkspaceNotFound() *GetWorkspaceNotFound
NewGetWorkspaceNotFound creates a GetWorkspaceNotFound with default headers values
func (*GetWorkspaceNotFound) Code ¶
func (o *GetWorkspaceNotFound) Code() int
Code gets the status code for the get workspace not found response
func (*GetWorkspaceNotFound) Error ¶
func (o *GetWorkspaceNotFound) Error() string
func (*GetWorkspaceNotFound) GetPayload ¶
func (o *GetWorkspaceNotFound) GetPayload() *models.Errors
func (*GetWorkspaceNotFound) IsClientError ¶
func (o *GetWorkspaceNotFound) IsClientError() bool
IsClientError returns true when this get workspace not found response has a 4xx status code
func (*GetWorkspaceNotFound) IsCode ¶
func (o *GetWorkspaceNotFound) IsCode(code int) bool
IsCode returns true when this get workspace not found response a status code equal to that given
func (*GetWorkspaceNotFound) IsRedirect ¶
func (o *GetWorkspaceNotFound) IsRedirect() bool
IsRedirect returns true when this get workspace not found response has a 3xx status code
func (*GetWorkspaceNotFound) IsServerError ¶
func (o *GetWorkspaceNotFound) IsServerError() bool
IsServerError returns true when this get workspace not found response has a 5xx status code
func (*GetWorkspaceNotFound) IsSuccess ¶
func (o *GetWorkspaceNotFound) IsSuccess() bool
IsSuccess returns true when this get workspace not found response has a 2xx status code
func (*GetWorkspaceNotFound) String ¶
func (o *GetWorkspaceNotFound) String() string
type GetWorkspaceOK ¶
GetWorkspaceOK describes a response with status code 200, with default header values.
GetWorkspaceOK get workspace o k
func NewGetWorkspaceOK ¶
func NewGetWorkspaceOK() *GetWorkspaceOK
NewGetWorkspaceOK creates a GetWorkspaceOK with default headers values
func (*GetWorkspaceOK) Code ¶
func (o *GetWorkspaceOK) Code() int
Code gets the status code for the get workspace o k response
func (*GetWorkspaceOK) Error ¶
func (o *GetWorkspaceOK) Error() string
func (*GetWorkspaceOK) GetPayload ¶
func (o *GetWorkspaceOK) GetPayload() *models.Workspace
func (*GetWorkspaceOK) IsClientError ¶
func (o *GetWorkspaceOK) IsClientError() bool
IsClientError returns true when this get workspace o k response has a 4xx status code
func (*GetWorkspaceOK) IsCode ¶
func (o *GetWorkspaceOK) IsCode(code int) bool
IsCode returns true when this get workspace o k response a status code equal to that given
func (*GetWorkspaceOK) IsRedirect ¶
func (o *GetWorkspaceOK) IsRedirect() bool
IsRedirect returns true when this get workspace o k response has a 3xx status code
func (*GetWorkspaceOK) IsServerError ¶
func (o *GetWorkspaceOK) IsServerError() bool
IsServerError returns true when this get workspace o k response has a 5xx status code
func (*GetWorkspaceOK) IsSuccess ¶
func (o *GetWorkspaceOK) IsSuccess() bool
IsSuccess returns true when this get workspace o k response has a 2xx status code
func (*GetWorkspaceOK) String ¶
func (o *GetWorkspaceOK) String() string
type GetWorkspaceParams ¶
type GetWorkspaceParams struct { // WorkspaceToken. WorkspaceToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkspaceParams contains all the parameters to send to the API endpoint
for the get workspace operation. Typically these are written to a http.Request.
func NewGetWorkspaceParams ¶
func NewGetWorkspaceParams() *GetWorkspaceParams
NewGetWorkspaceParams creates a new GetWorkspaceParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetWorkspaceParamsWithContext ¶
func NewGetWorkspaceParamsWithContext(ctx context.Context) *GetWorkspaceParams
NewGetWorkspaceParamsWithContext creates a new GetWorkspaceParams object with the ability to set a context for a request.
func NewGetWorkspaceParamsWithHTTPClient ¶
func NewGetWorkspaceParamsWithHTTPClient(client *http.Client) *GetWorkspaceParams
NewGetWorkspaceParamsWithHTTPClient creates a new GetWorkspaceParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkspaceParamsWithTimeout ¶
func NewGetWorkspaceParamsWithTimeout(timeout time.Duration) *GetWorkspaceParams
NewGetWorkspaceParamsWithTimeout creates a new GetWorkspaceParams object with the ability to set a timeout on a request.
func (*GetWorkspaceParams) SetContext ¶
func (o *GetWorkspaceParams) SetContext(ctx context.Context)
SetContext adds the context to the get workspace params
func (*GetWorkspaceParams) SetDefaults ¶
func (o *GetWorkspaceParams) SetDefaults()
SetDefaults hydrates default values in the get workspace params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkspaceParams) SetHTTPClient ¶
func (o *GetWorkspaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workspace params
func (*GetWorkspaceParams) SetTimeout ¶
func (o *GetWorkspaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workspace params
func (*GetWorkspaceParams) SetWorkspaceToken ¶
func (o *GetWorkspaceParams) SetWorkspaceToken(workspaceToken string)
SetWorkspaceToken adds the workspaceToken to the get workspace params
func (*GetWorkspaceParams) WithContext ¶
func (o *GetWorkspaceParams) WithContext(ctx context.Context) *GetWorkspaceParams
WithContext adds the context to the get workspace params
func (*GetWorkspaceParams) WithDefaults ¶
func (o *GetWorkspaceParams) WithDefaults() *GetWorkspaceParams
WithDefaults hydrates default values in the get workspace params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkspaceParams) WithHTTPClient ¶
func (o *GetWorkspaceParams) WithHTTPClient(client *http.Client) *GetWorkspaceParams
WithHTTPClient adds the HTTPClient to the get workspace params
func (*GetWorkspaceParams) WithTimeout ¶
func (o *GetWorkspaceParams) WithTimeout(timeout time.Duration) *GetWorkspaceParams
WithTimeout adds the timeout to the get workspace params
func (*GetWorkspaceParams) WithWorkspaceToken ¶
func (o *GetWorkspaceParams) WithWorkspaceToken(workspaceToken string) *GetWorkspaceParams
WithWorkspaceToken adds the workspaceToken to the get workspace params
func (*GetWorkspaceParams) WriteToRequest ¶
func (o *GetWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkspaceReader ¶
type GetWorkspaceReader struct {
// contains filtered or unexported fields
}
GetWorkspaceReader is a Reader for the GetWorkspace structure.
func (*GetWorkspaceReader) ReadResponse ¶
func (o *GetWorkspaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkspacesOK ¶
type GetWorkspacesOK struct {
Payload *models.Workspaces
}
GetWorkspacesOK describes a response with status code 200, with default header values.
GetWorkspacesOK get workspaces o k
func NewGetWorkspacesOK ¶
func NewGetWorkspacesOK() *GetWorkspacesOK
NewGetWorkspacesOK creates a GetWorkspacesOK with default headers values
func (*GetWorkspacesOK) Code ¶
func (o *GetWorkspacesOK) Code() int
Code gets the status code for the get workspaces o k response
func (*GetWorkspacesOK) Error ¶
func (o *GetWorkspacesOK) Error() string
func (*GetWorkspacesOK) GetPayload ¶
func (o *GetWorkspacesOK) GetPayload() *models.Workspaces
func (*GetWorkspacesOK) IsClientError ¶
func (o *GetWorkspacesOK) IsClientError() bool
IsClientError returns true when this get workspaces o k response has a 4xx status code
func (*GetWorkspacesOK) IsCode ¶
func (o *GetWorkspacesOK) IsCode(code int) bool
IsCode returns true when this get workspaces o k response a status code equal to that given
func (*GetWorkspacesOK) IsRedirect ¶
func (o *GetWorkspacesOK) IsRedirect() bool
IsRedirect returns true when this get workspaces o k response has a 3xx status code
func (*GetWorkspacesOK) IsServerError ¶
func (o *GetWorkspacesOK) IsServerError() bool
IsServerError returns true when this get workspaces o k response has a 5xx status code
func (*GetWorkspacesOK) IsSuccess ¶
func (o *GetWorkspacesOK) IsSuccess() bool
IsSuccess returns true when this get workspaces o k response has a 2xx status code
func (*GetWorkspacesOK) String ¶
func (o *GetWorkspacesOK) String() string
type GetWorkspacesParams ¶
type GetWorkspacesParams struct { /* Limit. The amount of results to return. The maximum is 1000. Format: int32 */ Limit *int32 /* Page. The page of results to return. Format: int32 */ Page *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkspacesParams contains all the parameters to send to the API endpoint
for the get workspaces operation. Typically these are written to a http.Request.
func NewGetWorkspacesParams ¶
func NewGetWorkspacesParams() *GetWorkspacesParams
NewGetWorkspacesParams creates a new GetWorkspacesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetWorkspacesParamsWithContext ¶
func NewGetWorkspacesParamsWithContext(ctx context.Context) *GetWorkspacesParams
NewGetWorkspacesParamsWithContext creates a new GetWorkspacesParams object with the ability to set a context for a request.
func NewGetWorkspacesParamsWithHTTPClient ¶
func NewGetWorkspacesParamsWithHTTPClient(client *http.Client) *GetWorkspacesParams
NewGetWorkspacesParamsWithHTTPClient creates a new GetWorkspacesParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkspacesParamsWithTimeout ¶
func NewGetWorkspacesParamsWithTimeout(timeout time.Duration) *GetWorkspacesParams
NewGetWorkspacesParamsWithTimeout creates a new GetWorkspacesParams object with the ability to set a timeout on a request.
func (*GetWorkspacesParams) SetContext ¶
func (o *GetWorkspacesParams) SetContext(ctx context.Context)
SetContext adds the context to the get workspaces params
func (*GetWorkspacesParams) SetDefaults ¶
func (o *GetWorkspacesParams) SetDefaults()
SetDefaults hydrates default values in the get workspaces params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkspacesParams) SetHTTPClient ¶
func (o *GetWorkspacesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workspaces params
func (*GetWorkspacesParams) SetLimit ¶
func (o *GetWorkspacesParams) SetLimit(limit *int32)
SetLimit adds the limit to the get workspaces params
func (*GetWorkspacesParams) SetPage ¶
func (o *GetWorkspacesParams) SetPage(page *int32)
SetPage adds the page to the get workspaces params
func (*GetWorkspacesParams) SetTimeout ¶
func (o *GetWorkspacesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workspaces params
func (*GetWorkspacesParams) WithContext ¶
func (o *GetWorkspacesParams) WithContext(ctx context.Context) *GetWorkspacesParams
WithContext adds the context to the get workspaces params
func (*GetWorkspacesParams) WithDefaults ¶
func (o *GetWorkspacesParams) WithDefaults() *GetWorkspacesParams
WithDefaults hydrates default values in the get workspaces params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkspacesParams) WithHTTPClient ¶
func (o *GetWorkspacesParams) WithHTTPClient(client *http.Client) *GetWorkspacesParams
WithHTTPClient adds the HTTPClient to the get workspaces params
func (*GetWorkspacesParams) WithLimit ¶
func (o *GetWorkspacesParams) WithLimit(limit *int32) *GetWorkspacesParams
WithLimit adds the limit to the get workspaces params
func (*GetWorkspacesParams) WithPage ¶
func (o *GetWorkspacesParams) WithPage(page *int32) *GetWorkspacesParams
WithPage adds the page to the get workspaces params
func (*GetWorkspacesParams) WithTimeout ¶
func (o *GetWorkspacesParams) WithTimeout(timeout time.Duration) *GetWorkspacesParams
WithTimeout adds the timeout to the get workspaces params
func (*GetWorkspacesParams) WriteToRequest ¶
func (o *GetWorkspacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkspacesReader ¶
type GetWorkspacesReader struct {
// contains filtered or unexported fields
}
GetWorkspacesReader is a Reader for the GetWorkspaces structure.
func (*GetWorkspacesReader) ReadResponse ¶
func (o *GetWorkspacesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.