Documentation
¶
Index ¶
- type Client
- func (a *Client) GetReleaseV1(params *GetReleaseV1Params, opts ...ClientOption) (*GetReleaseV1OK, error)
- func (a *Client) ListProductsV1(params *ListProductsV1Params, opts ...ClientOption) (*ListProductsV1OK, error)
- func (a *Client) ListReleasesV1(params *ListReleasesV1Params, opts ...ClientOption) (*ListReleasesV1OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetReleaseV1Default
- func (o *GetReleaseV1Default) Code() int
- func (o *GetReleaseV1Default) Error() string
- func (o *GetReleaseV1Default) GetPayload() *models.Error
- func (o *GetReleaseV1Default) IsClientError() bool
- func (o *GetReleaseV1Default) IsCode(code int) bool
- func (o *GetReleaseV1Default) IsRedirect() bool
- func (o *GetReleaseV1Default) IsServerError() bool
- func (o *GetReleaseV1Default) IsSuccess() bool
- func (o *GetReleaseV1Default) String() string
- type GetReleaseV1OK
- func (o *GetReleaseV1OK) Code() int
- func (o *GetReleaseV1OK) Error() string
- func (o *GetReleaseV1OK) GetPayload() *models.ProductReleaseResponseV1
- func (o *GetReleaseV1OK) IsClientError() bool
- func (o *GetReleaseV1OK) IsCode(code int) bool
- func (o *GetReleaseV1OK) IsRedirect() bool
- func (o *GetReleaseV1OK) IsServerError() bool
- func (o *GetReleaseV1OK) IsSuccess() bool
- func (o *GetReleaseV1OK) String() string
- type GetReleaseV1Params
- func (o *GetReleaseV1Params) SetContext(ctx context.Context)
- func (o *GetReleaseV1Params) SetDefaults()
- func (o *GetReleaseV1Params) SetHTTPClient(client *http.Client)
- func (o *GetReleaseV1Params) SetLicenseClass(licenseClass *string)
- func (o *GetReleaseV1Params) SetProduct(product string)
- func (o *GetReleaseV1Params) SetTimeout(timeout time.Duration)
- func (o *GetReleaseV1Params) SetVersion(version string)
- func (o *GetReleaseV1Params) WithContext(ctx context.Context) *GetReleaseV1Params
- func (o *GetReleaseV1Params) WithDefaults() *GetReleaseV1Params
- func (o *GetReleaseV1Params) WithHTTPClient(client *http.Client) *GetReleaseV1Params
- func (o *GetReleaseV1Params) WithLicenseClass(licenseClass *string) *GetReleaseV1Params
- func (o *GetReleaseV1Params) WithProduct(product string) *GetReleaseV1Params
- func (o *GetReleaseV1Params) WithTimeout(timeout time.Duration) *GetReleaseV1Params
- func (o *GetReleaseV1Params) WithVersion(version string) *GetReleaseV1Params
- func (o *GetReleaseV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReleaseV1Reader
- type ListProductsV1Default
- func (o *ListProductsV1Default) Code() int
- func (o *ListProductsV1Default) Error() string
- func (o *ListProductsV1Default) GetPayload() *models.Error
- func (o *ListProductsV1Default) IsClientError() bool
- func (o *ListProductsV1Default) IsCode(code int) bool
- func (o *ListProductsV1Default) IsRedirect() bool
- func (o *ListProductsV1Default) IsServerError() bool
- func (o *ListProductsV1Default) IsSuccess() bool
- func (o *ListProductsV1Default) String() string
- type ListProductsV1OK
- func (o *ListProductsV1OK) Code() int
- func (o *ListProductsV1OK) Error() string
- func (o *ListProductsV1OK) GetPayload() models.ProductListResponse
- func (o *ListProductsV1OK) IsClientError() bool
- func (o *ListProductsV1OK) IsCode(code int) bool
- func (o *ListProductsV1OK) IsRedirect() bool
- func (o *ListProductsV1OK) IsServerError() bool
- func (o *ListProductsV1OK) IsSuccess() bool
- func (o *ListProductsV1OK) String() string
- type ListProductsV1Params
- func NewListProductsV1Params() *ListProductsV1Params
- func NewListProductsV1ParamsWithContext(ctx context.Context) *ListProductsV1Params
- func NewListProductsV1ParamsWithHTTPClient(client *http.Client) *ListProductsV1Params
- func NewListProductsV1ParamsWithTimeout(timeout time.Duration) *ListProductsV1Params
- func (o *ListProductsV1Params) SetContext(ctx context.Context)
- func (o *ListProductsV1Params) SetDefaults()
- func (o *ListProductsV1Params) SetHTTPClient(client *http.Client)
- func (o *ListProductsV1Params) SetTimeout(timeout time.Duration)
- func (o *ListProductsV1Params) WithContext(ctx context.Context) *ListProductsV1Params
- func (o *ListProductsV1Params) WithDefaults() *ListProductsV1Params
- func (o *ListProductsV1Params) WithHTTPClient(client *http.Client) *ListProductsV1Params
- func (o *ListProductsV1Params) WithTimeout(timeout time.Duration) *ListProductsV1Params
- func (o *ListProductsV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListProductsV1Reader
- type ListReleasesV1Default
- func (o *ListReleasesV1Default) Code() int
- func (o *ListReleasesV1Default) Error() string
- func (o *ListReleasesV1Default) GetPayload() *models.Error
- func (o *ListReleasesV1Default) IsClientError() bool
- func (o *ListReleasesV1Default) IsCode(code int) bool
- func (o *ListReleasesV1Default) IsRedirect() bool
- func (o *ListReleasesV1Default) IsServerError() bool
- func (o *ListReleasesV1Default) IsSuccess() bool
- func (o *ListReleasesV1Default) String() string
- type ListReleasesV1OK
- func (o *ListReleasesV1OK) Code() int
- func (o *ListReleasesV1OK) Error() string
- func (o *ListReleasesV1OK) GetPayload() models.ProductReleasesResponseV1
- func (o *ListReleasesV1OK) IsClientError() bool
- func (o *ListReleasesV1OK) IsCode(code int) bool
- func (o *ListReleasesV1OK) IsRedirect() bool
- func (o *ListReleasesV1OK) IsServerError() bool
- func (o *ListReleasesV1OK) IsSuccess() bool
- func (o *ListReleasesV1OK) String() string
- type ListReleasesV1Params
- func NewListReleasesV1Params() *ListReleasesV1Params
- func NewListReleasesV1ParamsWithContext(ctx context.Context) *ListReleasesV1Params
- func NewListReleasesV1ParamsWithHTTPClient(client *http.Client) *ListReleasesV1Params
- func NewListReleasesV1ParamsWithTimeout(timeout time.Duration) *ListReleasesV1Params
- func (o *ListReleasesV1Params) SetAfter(after *strfmt.DateTime)
- func (o *ListReleasesV1Params) SetContext(ctx context.Context)
- func (o *ListReleasesV1Params) SetDefaults()
- func (o *ListReleasesV1Params) SetHTTPClient(client *http.Client)
- func (o *ListReleasesV1Params) SetLicenseClass(licenseClass *string)
- func (o *ListReleasesV1Params) SetLimit(limit *int64)
- func (o *ListReleasesV1Params) SetProduct(product string)
- func (o *ListReleasesV1Params) SetTimeout(timeout time.Duration)
- func (o *ListReleasesV1Params) WithAfter(after *strfmt.DateTime) *ListReleasesV1Params
- func (o *ListReleasesV1Params) WithContext(ctx context.Context) *ListReleasesV1Params
- func (o *ListReleasesV1Params) WithDefaults() *ListReleasesV1Params
- func (o *ListReleasesV1Params) WithHTTPClient(client *http.Client) *ListReleasesV1Params
- func (o *ListReleasesV1Params) WithLicenseClass(licenseClass *string) *ListReleasesV1Params
- func (o *ListReleasesV1Params) WithLimit(limit *int64) *ListReleasesV1Params
- func (o *ListReleasesV1Params) WithProduct(product string) *ListReleasesV1Params
- func (o *ListReleasesV1Params) WithTimeout(timeout time.Duration) *ListReleasesV1Params
- func (o *ListReleasesV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListReleasesV1Reader
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 operations API
func (*Client) GetReleaseV1 ¶
func (a *Client) GetReleaseV1(params *GetReleaseV1Params, opts ...ClientOption) (*GetReleaseV1OK, error)
GetReleaseV1 gets the metadata for a specific product release
All metadata for a single product release is returned.
func (*Client) ListProductsV1 ¶
func (a *Client) ListProductsV1(params *ListProductsV1Params, opts ...ClientOption) (*ListProductsV1OK, error)
ListProductsV1 lists product names
The names of all products on the releases site are returned.
func (*Client) ListReleasesV1 ¶
func (a *Client) ListReleasesV1(params *ListReleasesV1Params, opts ...ClientOption) (*ListReleasesV1OK, error)
ListReleasesV1 lists releases Get the release metadata for multiple releases. This endpoint uses pagination for products
with many releases. Results are ordered by release creation time from newest to oldest.
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 { GetReleaseV1(params *GetReleaseV1Params, opts ...ClientOption) (*GetReleaseV1OK, error) ListProductsV1(params *ListProductsV1Params, opts ...ClientOption) (*ListProductsV1OK, error) ListReleasesV1(params *ListReleasesV1Params, opts ...ClientOption) (*ListReleasesV1OK, 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 operations API client.
type GetReleaseV1Default ¶
GetReleaseV1Default describes a response with status code -1, with default header values.
an error condition
func NewGetReleaseV1Default ¶
func NewGetReleaseV1Default(code int) *GetReleaseV1Default
NewGetReleaseV1Default creates a GetReleaseV1Default with default headers values
func (*GetReleaseV1Default) Code ¶
func (o *GetReleaseV1Default) Code() int
Code gets the status code for the get release v1 default response
func (*GetReleaseV1Default) Error ¶
func (o *GetReleaseV1Default) Error() string
func (*GetReleaseV1Default) GetPayload ¶
func (o *GetReleaseV1Default) GetPayload() *models.Error
func (*GetReleaseV1Default) IsClientError ¶
func (o *GetReleaseV1Default) IsClientError() bool
IsClientError returns true when this get release v1 default response has a 4xx status code
func (*GetReleaseV1Default) IsCode ¶
func (o *GetReleaseV1Default) IsCode(code int) bool
IsCode returns true when this get release v1 default response a status code equal to that given
func (*GetReleaseV1Default) IsRedirect ¶
func (o *GetReleaseV1Default) IsRedirect() bool
IsRedirect returns true when this get release v1 default response has a 3xx status code
func (*GetReleaseV1Default) IsServerError ¶
func (o *GetReleaseV1Default) IsServerError() bool
IsServerError returns true when this get release v1 default response has a 5xx status code
func (*GetReleaseV1Default) IsSuccess ¶
func (o *GetReleaseV1Default) IsSuccess() bool
IsSuccess returns true when this get release v1 default response has a 2xx status code
func (*GetReleaseV1Default) String ¶
func (o *GetReleaseV1Default) String() string
type GetReleaseV1OK ¶
type GetReleaseV1OK struct { /* The ETag for this release metadata */ ETag string Payload *models.ProductReleaseResponseV1 }
GetReleaseV1OK describes a response with status code 200, with default header values.
OK (releases retrieved)
func NewGetReleaseV1OK ¶
func NewGetReleaseV1OK() *GetReleaseV1OK
NewGetReleaseV1OK creates a GetReleaseV1OK with default headers values
func (*GetReleaseV1OK) Code ¶
func (o *GetReleaseV1OK) Code() int
Code gets the status code for the get release v1 o k response
func (*GetReleaseV1OK) Error ¶
func (o *GetReleaseV1OK) Error() string
func (*GetReleaseV1OK) GetPayload ¶
func (o *GetReleaseV1OK) GetPayload() *models.ProductReleaseResponseV1
func (*GetReleaseV1OK) IsClientError ¶
func (o *GetReleaseV1OK) IsClientError() bool
IsClientError returns true when this get release v1 o k response has a 4xx status code
func (*GetReleaseV1OK) IsCode ¶
func (o *GetReleaseV1OK) IsCode(code int) bool
IsCode returns true when this get release v1 o k response a status code equal to that given
func (*GetReleaseV1OK) IsRedirect ¶
func (o *GetReleaseV1OK) IsRedirect() bool
IsRedirect returns true when this get release v1 o k response has a 3xx status code
func (*GetReleaseV1OK) IsServerError ¶
func (o *GetReleaseV1OK) IsServerError() bool
IsServerError returns true when this get release v1 o k response has a 5xx status code
func (*GetReleaseV1OK) IsSuccess ¶
func (o *GetReleaseV1OK) IsSuccess() bool
IsSuccess returns true when this get release v1 o k response has a 2xx status code
func (*GetReleaseV1OK) String ¶
func (o *GetReleaseV1OK) String() string
type GetReleaseV1Params ¶
type GetReleaseV1Params struct { /* LicenseClass. If specified, restrict responses to releases having this license class. This is only used when fetching the "latest" release, as specifying a version to fetch necessarily also specifies the license class. */ LicenseClass *string /* Product. The product name. */ Product string /* Version. The product version or `latest`. */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetReleaseV1Params contains all the parameters to send to the API endpoint
for the get release v1 operation. Typically these are written to a http.Request.
func NewGetReleaseV1Params ¶
func NewGetReleaseV1Params() *GetReleaseV1Params
NewGetReleaseV1Params creates a new GetReleaseV1Params 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 NewGetReleaseV1ParamsWithContext ¶
func NewGetReleaseV1ParamsWithContext(ctx context.Context) *GetReleaseV1Params
NewGetReleaseV1ParamsWithContext creates a new GetReleaseV1Params object with the ability to set a context for a request.
func NewGetReleaseV1ParamsWithHTTPClient ¶
func NewGetReleaseV1ParamsWithHTTPClient(client *http.Client) *GetReleaseV1Params
NewGetReleaseV1ParamsWithHTTPClient creates a new GetReleaseV1Params object with the ability to set a custom HTTPClient for a request.
func NewGetReleaseV1ParamsWithTimeout ¶
func NewGetReleaseV1ParamsWithTimeout(timeout time.Duration) *GetReleaseV1Params
NewGetReleaseV1ParamsWithTimeout creates a new GetReleaseV1Params object with the ability to set a timeout on a request.
func (*GetReleaseV1Params) SetContext ¶
func (o *GetReleaseV1Params) SetContext(ctx context.Context)
SetContext adds the context to the get release v1 params
func (*GetReleaseV1Params) SetDefaults ¶
func (o *GetReleaseV1Params) SetDefaults()
SetDefaults hydrates default values in the get release v1 params (not the query body).
All values with no default are reset to their zero value.
func (*GetReleaseV1Params) SetHTTPClient ¶
func (o *GetReleaseV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get release v1 params
func (*GetReleaseV1Params) SetLicenseClass ¶
func (o *GetReleaseV1Params) SetLicenseClass(licenseClass *string)
SetLicenseClass adds the licenseClass to the get release v1 params
func (*GetReleaseV1Params) SetProduct ¶
func (o *GetReleaseV1Params) SetProduct(product string)
SetProduct adds the product to the get release v1 params
func (*GetReleaseV1Params) SetTimeout ¶
func (o *GetReleaseV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get release v1 params
func (*GetReleaseV1Params) SetVersion ¶
func (o *GetReleaseV1Params) SetVersion(version string)
SetVersion adds the version to the get release v1 params
func (*GetReleaseV1Params) WithContext ¶
func (o *GetReleaseV1Params) WithContext(ctx context.Context) *GetReleaseV1Params
WithContext adds the context to the get release v1 params
func (*GetReleaseV1Params) WithDefaults ¶
func (o *GetReleaseV1Params) WithDefaults() *GetReleaseV1Params
WithDefaults hydrates default values in the get release v1 params (not the query body).
All values with no default are reset to their zero value.
func (*GetReleaseV1Params) WithHTTPClient ¶
func (o *GetReleaseV1Params) WithHTTPClient(client *http.Client) *GetReleaseV1Params
WithHTTPClient adds the HTTPClient to the get release v1 params
func (*GetReleaseV1Params) WithLicenseClass ¶
func (o *GetReleaseV1Params) WithLicenseClass(licenseClass *string) *GetReleaseV1Params
WithLicenseClass adds the licenseClass to the get release v1 params
func (*GetReleaseV1Params) WithProduct ¶
func (o *GetReleaseV1Params) WithProduct(product string) *GetReleaseV1Params
WithProduct adds the product to the get release v1 params
func (*GetReleaseV1Params) WithTimeout ¶
func (o *GetReleaseV1Params) WithTimeout(timeout time.Duration) *GetReleaseV1Params
WithTimeout adds the timeout to the get release v1 params
func (*GetReleaseV1Params) WithVersion ¶
func (o *GetReleaseV1Params) WithVersion(version string) *GetReleaseV1Params
WithVersion adds the version to the get release v1 params
func (*GetReleaseV1Params) WriteToRequest ¶
func (o *GetReleaseV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetReleaseV1Reader ¶
type GetReleaseV1Reader struct {
// contains filtered or unexported fields
}
GetReleaseV1Reader is a Reader for the GetReleaseV1 structure.
func (*GetReleaseV1Reader) ReadResponse ¶
func (o *GetReleaseV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListProductsV1Default ¶
type ListProductsV1Default struct { Payload *models.Error // contains filtered or unexported fields }
ListProductsV1Default describes a response with status code -1, with default header values.
an error condition
func NewListProductsV1Default ¶
func NewListProductsV1Default(code int) *ListProductsV1Default
NewListProductsV1Default creates a ListProductsV1Default with default headers values
func (*ListProductsV1Default) Code ¶
func (o *ListProductsV1Default) Code() int
Code gets the status code for the list products v1 default response
func (*ListProductsV1Default) Error ¶
func (o *ListProductsV1Default) Error() string
func (*ListProductsV1Default) GetPayload ¶
func (o *ListProductsV1Default) GetPayload() *models.Error
func (*ListProductsV1Default) IsClientError ¶
func (o *ListProductsV1Default) IsClientError() bool
IsClientError returns true when this list products v1 default response has a 4xx status code
func (*ListProductsV1Default) IsCode ¶
func (o *ListProductsV1Default) IsCode(code int) bool
IsCode returns true when this list products v1 default response a status code equal to that given
func (*ListProductsV1Default) IsRedirect ¶
func (o *ListProductsV1Default) IsRedirect() bool
IsRedirect returns true when this list products v1 default response has a 3xx status code
func (*ListProductsV1Default) IsServerError ¶
func (o *ListProductsV1Default) IsServerError() bool
IsServerError returns true when this list products v1 default response has a 5xx status code
func (*ListProductsV1Default) IsSuccess ¶
func (o *ListProductsV1Default) IsSuccess() bool
IsSuccess returns true when this list products v1 default response has a 2xx status code
func (*ListProductsV1Default) String ¶
func (o *ListProductsV1Default) String() string
type ListProductsV1OK ¶
type ListProductsV1OK struct { /* The ETag for this resource */ ETag string Payload models.ProductListResponse }
ListProductsV1OK describes a response with status code 200, with default header values.
OK (list retrieved)
func NewListProductsV1OK ¶
func NewListProductsV1OK() *ListProductsV1OK
NewListProductsV1OK creates a ListProductsV1OK with default headers values
func (*ListProductsV1OK) Code ¶
func (o *ListProductsV1OK) Code() int
Code gets the status code for the list products v1 o k response
func (*ListProductsV1OK) Error ¶
func (o *ListProductsV1OK) Error() string
func (*ListProductsV1OK) GetPayload ¶
func (o *ListProductsV1OK) GetPayload() models.ProductListResponse
func (*ListProductsV1OK) IsClientError ¶
func (o *ListProductsV1OK) IsClientError() bool
IsClientError returns true when this list products v1 o k response has a 4xx status code
func (*ListProductsV1OK) IsCode ¶
func (o *ListProductsV1OK) IsCode(code int) bool
IsCode returns true when this list products v1 o k response a status code equal to that given
func (*ListProductsV1OK) IsRedirect ¶
func (o *ListProductsV1OK) IsRedirect() bool
IsRedirect returns true when this list products v1 o k response has a 3xx status code
func (*ListProductsV1OK) IsServerError ¶
func (o *ListProductsV1OK) IsServerError() bool
IsServerError returns true when this list products v1 o k response has a 5xx status code
func (*ListProductsV1OK) IsSuccess ¶
func (o *ListProductsV1OK) IsSuccess() bool
IsSuccess returns true when this list products v1 o k response has a 2xx status code
func (*ListProductsV1OK) String ¶
func (o *ListProductsV1OK) String() string
type ListProductsV1Params ¶
type ListProductsV1Params struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListProductsV1Params contains all the parameters to send to the API endpoint
for the list products v1 operation. Typically these are written to a http.Request.
func NewListProductsV1Params ¶
func NewListProductsV1Params() *ListProductsV1Params
NewListProductsV1Params creates a new ListProductsV1Params 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 NewListProductsV1ParamsWithContext ¶
func NewListProductsV1ParamsWithContext(ctx context.Context) *ListProductsV1Params
NewListProductsV1ParamsWithContext creates a new ListProductsV1Params object with the ability to set a context for a request.
func NewListProductsV1ParamsWithHTTPClient ¶
func NewListProductsV1ParamsWithHTTPClient(client *http.Client) *ListProductsV1Params
NewListProductsV1ParamsWithHTTPClient creates a new ListProductsV1Params object with the ability to set a custom HTTPClient for a request.
func NewListProductsV1ParamsWithTimeout ¶
func NewListProductsV1ParamsWithTimeout(timeout time.Duration) *ListProductsV1Params
NewListProductsV1ParamsWithTimeout creates a new ListProductsV1Params object with the ability to set a timeout on a request.
func (*ListProductsV1Params) SetContext ¶
func (o *ListProductsV1Params) SetContext(ctx context.Context)
SetContext adds the context to the list products v1 params
func (*ListProductsV1Params) SetDefaults ¶
func (o *ListProductsV1Params) SetDefaults()
SetDefaults hydrates default values in the list products v1 params (not the query body).
All values with no default are reset to their zero value.
func (*ListProductsV1Params) SetHTTPClient ¶
func (o *ListProductsV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list products v1 params
func (*ListProductsV1Params) SetTimeout ¶
func (o *ListProductsV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list products v1 params
func (*ListProductsV1Params) WithContext ¶
func (o *ListProductsV1Params) WithContext(ctx context.Context) *ListProductsV1Params
WithContext adds the context to the list products v1 params
func (*ListProductsV1Params) WithDefaults ¶
func (o *ListProductsV1Params) WithDefaults() *ListProductsV1Params
WithDefaults hydrates default values in the list products v1 params (not the query body).
All values with no default are reset to their zero value.
func (*ListProductsV1Params) WithHTTPClient ¶
func (o *ListProductsV1Params) WithHTTPClient(client *http.Client) *ListProductsV1Params
WithHTTPClient adds the HTTPClient to the list products v1 params
func (*ListProductsV1Params) WithTimeout ¶
func (o *ListProductsV1Params) WithTimeout(timeout time.Duration) *ListProductsV1Params
WithTimeout adds the timeout to the list products v1 params
func (*ListProductsV1Params) WriteToRequest ¶
func (o *ListProductsV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListProductsV1Reader ¶
type ListProductsV1Reader struct {
// contains filtered or unexported fields
}
ListProductsV1Reader is a Reader for the ListProductsV1 structure.
func (*ListProductsV1Reader) ReadResponse ¶
func (o *ListProductsV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListReleasesV1Default ¶
type ListReleasesV1Default struct { Payload *models.Error // contains filtered or unexported fields }
ListReleasesV1Default describes a response with status code -1, with default header values.
an error condition
func NewListReleasesV1Default ¶
func NewListReleasesV1Default(code int) *ListReleasesV1Default
NewListReleasesV1Default creates a ListReleasesV1Default with default headers values
func (*ListReleasesV1Default) Code ¶
func (o *ListReleasesV1Default) Code() int
Code gets the status code for the list releases v1 default response
func (*ListReleasesV1Default) Error ¶
func (o *ListReleasesV1Default) Error() string
func (*ListReleasesV1Default) GetPayload ¶
func (o *ListReleasesV1Default) GetPayload() *models.Error
func (*ListReleasesV1Default) IsClientError ¶
func (o *ListReleasesV1Default) IsClientError() bool
IsClientError returns true when this list releases v1 default response has a 4xx status code
func (*ListReleasesV1Default) IsCode ¶
func (o *ListReleasesV1Default) IsCode(code int) bool
IsCode returns true when this list releases v1 default response a status code equal to that given
func (*ListReleasesV1Default) IsRedirect ¶
func (o *ListReleasesV1Default) IsRedirect() bool
IsRedirect returns true when this list releases v1 default response has a 3xx status code
func (*ListReleasesV1Default) IsServerError ¶
func (o *ListReleasesV1Default) IsServerError() bool
IsServerError returns true when this list releases v1 default response has a 5xx status code
func (*ListReleasesV1Default) IsSuccess ¶
func (o *ListReleasesV1Default) IsSuccess() bool
IsSuccess returns true when this list releases v1 default response has a 2xx status code
func (*ListReleasesV1Default) String ¶
func (o *ListReleasesV1Default) String() string
type ListReleasesV1OK ¶
type ListReleasesV1OK struct { /* The ETag for this resource */ ETag string Payload models.ProductReleasesResponseV1 }
ListReleasesV1OK describes a response with status code 200, with default header values.
OK (releases retrieved)
func NewListReleasesV1OK ¶
func NewListReleasesV1OK() *ListReleasesV1OK
NewListReleasesV1OK creates a ListReleasesV1OK with default headers values
func (*ListReleasesV1OK) Code ¶
func (o *ListReleasesV1OK) Code() int
Code gets the status code for the list releases v1 o k response
func (*ListReleasesV1OK) Error ¶
func (o *ListReleasesV1OK) Error() string
func (*ListReleasesV1OK) GetPayload ¶
func (o *ListReleasesV1OK) GetPayload() models.ProductReleasesResponseV1
func (*ListReleasesV1OK) IsClientError ¶
func (o *ListReleasesV1OK) IsClientError() bool
IsClientError returns true when this list releases v1 o k response has a 4xx status code
func (*ListReleasesV1OK) IsCode ¶
func (o *ListReleasesV1OK) IsCode(code int) bool
IsCode returns true when this list releases v1 o k response a status code equal to that given
func (*ListReleasesV1OK) IsRedirect ¶
func (o *ListReleasesV1OK) IsRedirect() bool
IsRedirect returns true when this list releases v1 o k response has a 3xx status code
func (*ListReleasesV1OK) IsServerError ¶
func (o *ListReleasesV1OK) IsServerError() bool
IsServerError returns true when this list releases v1 o k response has a 5xx status code
func (*ListReleasesV1OK) IsSuccess ¶
func (o *ListReleasesV1OK) IsSuccess() bool
IsSuccess returns true when this list releases v1 o k response has a 2xx status code
func (*ListReleasesV1OK) String ¶
func (o *ListReleasesV1OK) String() string
type ListReleasesV1Params ¶
type ListReleasesV1Params struct { /* After. This timestamp is used as a pagination marker, indicating that only releases that occurred prior to it should be retrieved. When fetching subsequent pages, this parameter should be set to the creation timestamp of the oldest release listed on the current page. Format: date-time */ After *strfmt.DateTime /* LicenseClass. If specified, only releases with a matching license class will be returned. For example, if set to `enterprise`, only enterprise releases would be returned. */ LicenseClass *string /* Limit. The maximum number of releases requested. At most 20 releases can be fetched with a single request. Default: 10 */ Limit *int64 /* Product. The product name. */ Product string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListReleasesV1Params contains all the parameters to send to the API endpoint
for the list releases v1 operation. Typically these are written to a http.Request.
func NewListReleasesV1Params ¶
func NewListReleasesV1Params() *ListReleasesV1Params
NewListReleasesV1Params creates a new ListReleasesV1Params 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 NewListReleasesV1ParamsWithContext ¶
func NewListReleasesV1ParamsWithContext(ctx context.Context) *ListReleasesV1Params
NewListReleasesV1ParamsWithContext creates a new ListReleasesV1Params object with the ability to set a context for a request.
func NewListReleasesV1ParamsWithHTTPClient ¶
func NewListReleasesV1ParamsWithHTTPClient(client *http.Client) *ListReleasesV1Params
NewListReleasesV1ParamsWithHTTPClient creates a new ListReleasesV1Params object with the ability to set a custom HTTPClient for a request.
func NewListReleasesV1ParamsWithTimeout ¶
func NewListReleasesV1ParamsWithTimeout(timeout time.Duration) *ListReleasesV1Params
NewListReleasesV1ParamsWithTimeout creates a new ListReleasesV1Params object with the ability to set a timeout on a request.
func (*ListReleasesV1Params) SetAfter ¶
func (o *ListReleasesV1Params) SetAfter(after *strfmt.DateTime)
SetAfter adds the after to the list releases v1 params
func (*ListReleasesV1Params) SetContext ¶
func (o *ListReleasesV1Params) SetContext(ctx context.Context)
SetContext adds the context to the list releases v1 params
func (*ListReleasesV1Params) SetDefaults ¶
func (o *ListReleasesV1Params) SetDefaults()
SetDefaults hydrates default values in the list releases v1 params (not the query body).
All values with no default are reset to their zero value.
func (*ListReleasesV1Params) SetHTTPClient ¶
func (o *ListReleasesV1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list releases v1 params
func (*ListReleasesV1Params) SetLicenseClass ¶
func (o *ListReleasesV1Params) SetLicenseClass(licenseClass *string)
SetLicenseClass adds the licenseClass to the list releases v1 params
func (*ListReleasesV1Params) SetLimit ¶
func (o *ListReleasesV1Params) SetLimit(limit *int64)
SetLimit adds the limit to the list releases v1 params
func (*ListReleasesV1Params) SetProduct ¶
func (o *ListReleasesV1Params) SetProduct(product string)
SetProduct adds the product to the list releases v1 params
func (*ListReleasesV1Params) SetTimeout ¶
func (o *ListReleasesV1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list releases v1 params
func (*ListReleasesV1Params) WithAfter ¶
func (o *ListReleasesV1Params) WithAfter(after *strfmt.DateTime) *ListReleasesV1Params
WithAfter adds the after to the list releases v1 params
func (*ListReleasesV1Params) WithContext ¶
func (o *ListReleasesV1Params) WithContext(ctx context.Context) *ListReleasesV1Params
WithContext adds the context to the list releases v1 params
func (*ListReleasesV1Params) WithDefaults ¶
func (o *ListReleasesV1Params) WithDefaults() *ListReleasesV1Params
WithDefaults hydrates default values in the list releases v1 params (not the query body).
All values with no default are reset to their zero value.
func (*ListReleasesV1Params) WithHTTPClient ¶
func (o *ListReleasesV1Params) WithHTTPClient(client *http.Client) *ListReleasesV1Params
WithHTTPClient adds the HTTPClient to the list releases v1 params
func (*ListReleasesV1Params) WithLicenseClass ¶
func (o *ListReleasesV1Params) WithLicenseClass(licenseClass *string) *ListReleasesV1Params
WithLicenseClass adds the licenseClass to the list releases v1 params
func (*ListReleasesV1Params) WithLimit ¶
func (o *ListReleasesV1Params) WithLimit(limit *int64) *ListReleasesV1Params
WithLimit adds the limit to the list releases v1 params
func (*ListReleasesV1Params) WithProduct ¶
func (o *ListReleasesV1Params) WithProduct(product string) *ListReleasesV1Params
WithProduct adds the product to the list releases v1 params
func (*ListReleasesV1Params) WithTimeout ¶
func (o *ListReleasesV1Params) WithTimeout(timeout time.Duration) *ListReleasesV1Params
WithTimeout adds the timeout to the list releases v1 params
func (*ListReleasesV1Params) WriteToRequest ¶
func (o *ListReleasesV1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListReleasesV1Reader ¶
type ListReleasesV1Reader struct {
// contains filtered or unexported fields
}
ListReleasesV1Reader is a Reader for the ListReleasesV1 structure.
func (*ListReleasesV1Reader) ReadResponse ¶
func (o *ListReleasesV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.