Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetImagesForbidden
- func (o *GetImagesForbidden) Error() string
- func (o *GetImagesForbidden) GetPayload() *models.ServiceErrorResponse
- func (o *GetImagesForbidden) IsClientError() bool
- func (o *GetImagesForbidden) IsCode(code int) bool
- func (o *GetImagesForbidden) IsRedirect() bool
- func (o *GetImagesForbidden) IsServerError() bool
- func (o *GetImagesForbidden) IsSuccess() bool
- func (o *GetImagesForbidden) String() string
- type GetImagesOK
- func (o *GetImagesOK) Error() string
- func (o *GetImagesOK) GetPayload() *models.ImageResult
- func (o *GetImagesOK) IsClientError() bool
- func (o *GetImagesOK) IsCode(code int) bool
- func (o *GetImagesOK) IsRedirect() bool
- func (o *GetImagesOK) IsServerError() bool
- func (o *GetImagesOK) IsSuccess() bool
- func (o *GetImagesOK) String() string
- type GetImagesParams
- func (o *GetImagesParams) SetAPIVersion(aPIVersion *string)
- func (o *GetImagesParams) SetContext(ctx context.Context)
- func (o *GetImagesParams) SetDefaults()
- func (o *GetImagesParams) SetHTTPClient(client *http.Client)
- func (o *GetImagesParams) SetTimeout(timeout time.Duration)
- func (o *GetImagesParams) WithAPIVersion(aPIVersion *string) *GetImagesParams
- func (o *GetImagesParams) WithContext(ctx context.Context) *GetImagesParams
- func (o *GetImagesParams) WithDefaults() *GetImagesParams
- func (o *GetImagesParams) WithHTTPClient(client *http.Client) *GetImagesParams
- func (o *GetImagesParams) WithTimeout(timeout time.Duration) *GetImagesParams
- func (o *GetImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetImagesReader
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 images API
func (*Client) GetImages ¶
func (a *Client) GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, error)
GetImages gets images
Get all images defined in ImageProfile.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v0.2.20
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.2.18
type ClientService interface { GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, 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 images API client.
type GetImagesForbidden ¶
type GetImagesForbidden struct {
Payload *models.ServiceErrorResponse
}
GetImagesForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetImagesForbidden ¶
func NewGetImagesForbidden() *GetImagesForbidden
NewGetImagesForbidden creates a GetImagesForbidden with default headers values
func (*GetImagesForbidden) Error ¶
func (o *GetImagesForbidden) Error() string
func (*GetImagesForbidden) GetPayload ¶ added in v0.2.20
func (o *GetImagesForbidden) GetPayload() *models.ServiceErrorResponse
func (*GetImagesForbidden) IsClientError ¶ added in v0.5.0
func (o *GetImagesForbidden) IsClientError() bool
IsClientError returns true when this get images forbidden response has a 4xx status code
func (*GetImagesForbidden) IsCode ¶ added in v0.5.0
func (o *GetImagesForbidden) IsCode(code int) bool
IsCode returns true when this get images forbidden response a status code equal to that given
func (*GetImagesForbidden) IsRedirect ¶ added in v0.5.0
func (o *GetImagesForbidden) IsRedirect() bool
IsRedirect returns true when this get images forbidden response has a 3xx status code
func (*GetImagesForbidden) IsServerError ¶ added in v0.5.0
func (o *GetImagesForbidden) IsServerError() bool
IsServerError returns true when this get images forbidden response has a 5xx status code
func (*GetImagesForbidden) IsSuccess ¶ added in v0.5.0
func (o *GetImagesForbidden) IsSuccess() bool
IsSuccess returns true when this get images forbidden response has a 2xx status code
func (*GetImagesForbidden) String ¶ added in v0.5.0
func (o *GetImagesForbidden) String() string
type GetImagesOK ¶
type GetImagesOK struct {
Payload *models.ImageResult
}
GetImagesOK describes a response with status code 200, with default header values.
successful operation
func NewGetImagesOK ¶
func NewGetImagesOK() *GetImagesOK
NewGetImagesOK creates a GetImagesOK with default headers values
func (*GetImagesOK) Error ¶
func (o *GetImagesOK) Error() string
func (*GetImagesOK) GetPayload ¶
func (o *GetImagesOK) GetPayload() *models.ImageResult
func (*GetImagesOK) IsClientError ¶ added in v0.5.0
func (o *GetImagesOK) IsClientError() bool
IsClientError returns true when this get images o k response has a 4xx status code
func (*GetImagesOK) IsCode ¶ added in v0.5.0
func (o *GetImagesOK) IsCode(code int) bool
IsCode returns true when this get images o k response a status code equal to that given
func (*GetImagesOK) IsRedirect ¶ added in v0.5.0
func (o *GetImagesOK) IsRedirect() bool
IsRedirect returns true when this get images o k response has a 3xx status code
func (*GetImagesOK) IsServerError ¶ added in v0.5.0
func (o *GetImagesOK) IsServerError() bool
IsServerError returns true when this get images o k response has a 5xx status code
func (*GetImagesOK) IsSuccess ¶ added in v0.5.0
func (o *GetImagesOK) IsSuccess() bool
IsSuccess returns true when this get images o k response has a 2xx status code
func (*GetImagesOK) String ¶ added in v0.5.0
func (o *GetImagesOK) String() string
type GetImagesParams ¶
type GetImagesParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetImagesParams contains all the parameters to send to the API endpoint
for the get images operation. Typically these are written to a http.Request.
func NewGetImagesParams ¶
func NewGetImagesParams() *GetImagesParams
NewGetImagesParams creates a new GetImagesParams 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 NewGetImagesParamsWithContext ¶
func NewGetImagesParamsWithContext(ctx context.Context) *GetImagesParams
NewGetImagesParamsWithContext creates a new GetImagesParams object with the ability to set a context for a request.
func NewGetImagesParamsWithHTTPClient ¶
func NewGetImagesParamsWithHTTPClient(client *http.Client) *GetImagesParams
NewGetImagesParamsWithHTTPClient creates a new GetImagesParams object with the ability to set a custom HTTPClient for a request.
func NewGetImagesParamsWithTimeout ¶
func NewGetImagesParamsWithTimeout(timeout time.Duration) *GetImagesParams
NewGetImagesParamsWithTimeout creates a new GetImagesParams object with the ability to set a timeout on a request.
func (*GetImagesParams) SetAPIVersion ¶
func (o *GetImagesParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get images params
func (*GetImagesParams) SetContext ¶
func (o *GetImagesParams) SetContext(ctx context.Context)
SetContext adds the context to the get images params
func (*GetImagesParams) SetDefaults ¶ added in v0.2.20
func (o *GetImagesParams) SetDefaults()
SetDefaults hydrates default values in the get images params (not the query body).
All values with no default are reset to their zero value.
func (*GetImagesParams) SetHTTPClient ¶
func (o *GetImagesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get images params
func (*GetImagesParams) SetTimeout ¶
func (o *GetImagesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get images params
func (*GetImagesParams) WithAPIVersion ¶
func (o *GetImagesParams) WithAPIVersion(aPIVersion *string) *GetImagesParams
WithAPIVersion adds the aPIVersion to the get images params
func (*GetImagesParams) WithContext ¶
func (o *GetImagesParams) WithContext(ctx context.Context) *GetImagesParams
WithContext adds the context to the get images params
func (*GetImagesParams) WithDefaults ¶ added in v0.2.20
func (o *GetImagesParams) WithDefaults() *GetImagesParams
WithDefaults hydrates default values in the get images params (not the query body).
All values with no default are reset to their zero value.
func (*GetImagesParams) WithHTTPClient ¶
func (o *GetImagesParams) WithHTTPClient(client *http.Client) *GetImagesParams
WithHTTPClient adds the HTTPClient to the get images params
func (*GetImagesParams) WithTimeout ¶
func (o *GetImagesParams) WithTimeout(timeout time.Duration) *GetImagesParams
WithTimeout adds the timeout to the get images params
func (*GetImagesParams) WriteToRequest ¶
func (o *GetImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetImagesReader ¶
type GetImagesReader struct {
// contains filtered or unexported fields
}
GetImagesReader is a Reader for the GetImages structure.
func (*GetImagesReader) ReadResponse ¶
func (o *GetImagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.