Documentation ¶
Index ¶
- type Client
- func (a *Client) GetMeteringReport(params *GetMeteringReportParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetMeteringReportOK, error)
- func (a *Client) ListMeteringReports(params *ListMeteringReportsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListMeteringReportsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetMeteringReportDefault
- type GetMeteringReportForbidden
- type GetMeteringReportOK
- type GetMeteringReportParams
- func NewGetMeteringReportParams() *GetMeteringReportParams
- func NewGetMeteringReportParamsWithContext(ctx context.Context) *GetMeteringReportParams
- func NewGetMeteringReportParamsWithHTTPClient(client *http.Client) *GetMeteringReportParams
- func NewGetMeteringReportParamsWithTimeout(timeout time.Duration) *GetMeteringReportParams
- func (o *GetMeteringReportParams) SetContext(ctx context.Context)
- func (o *GetMeteringReportParams) SetDefaults()
- func (o *GetMeteringReportParams) SetHTTPClient(client *http.Client)
- func (o *GetMeteringReportParams) SetReportName(reportName string)
- func (o *GetMeteringReportParams) SetTimeout(timeout time.Duration)
- func (o *GetMeteringReportParams) WithContext(ctx context.Context) *GetMeteringReportParams
- func (o *GetMeteringReportParams) WithDefaults() *GetMeteringReportParams
- func (o *GetMeteringReportParams) WithHTTPClient(client *http.Client) *GetMeteringReportParams
- func (o *GetMeteringReportParams) WithReportName(reportName string) *GetMeteringReportParams
- func (o *GetMeteringReportParams) WithTimeout(timeout time.Duration) *GetMeteringReportParams
- func (o *GetMeteringReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMeteringReportReader
- type GetMeteringReportUnauthorized
- type ListMeteringReportsDefault
- type ListMeteringReportsForbidden
- type ListMeteringReportsOK
- type ListMeteringReportsParams
- func NewListMeteringReportsParams() *ListMeteringReportsParams
- func NewListMeteringReportsParamsWithContext(ctx context.Context) *ListMeteringReportsParams
- func NewListMeteringReportsParamsWithHTTPClient(client *http.Client) *ListMeteringReportsParams
- func NewListMeteringReportsParamsWithTimeout(timeout time.Duration) *ListMeteringReportsParams
- func (o *ListMeteringReportsParams) SetContext(ctx context.Context)
- func (o *ListMeteringReportsParams) SetDefaults()
- func (o *ListMeteringReportsParams) SetHTTPClient(client *http.Client)
- func (o *ListMeteringReportsParams) SetMaxKeys(maxKeys *int64)
- func (o *ListMeteringReportsParams) SetStartAfter(startAfter *string)
- func (o *ListMeteringReportsParams) SetTimeout(timeout time.Duration)
- func (o *ListMeteringReportsParams) WithContext(ctx context.Context) *ListMeteringReportsParams
- func (o *ListMeteringReportsParams) WithDefaults() *ListMeteringReportsParams
- func (o *ListMeteringReportsParams) WithHTTPClient(client *http.Client) *ListMeteringReportsParams
- func (o *ListMeteringReportsParams) WithMaxKeys(maxKeys *int64) *ListMeteringReportsParams
- func (o *ListMeteringReportsParams) WithStartAfter(startAfter *string) *ListMeteringReportsParams
- func (o *ListMeteringReportsParams) WithTimeout(timeout time.Duration) *ListMeteringReportsParams
- func (o *ListMeteringReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMeteringReportsReader
- type ListMeteringReportsUnauthorized
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 metering API
func (*Client) GetMeteringReport ¶
func (a *Client) GetMeteringReport(params *GetMeteringReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMeteringReportOK, error)
GetMeteringReport Download a specific metering report. Provides an S3 pre signed URL valid for 1 hour. Only available in Kubermatic Enterprise Edition
func (*Client) ListMeteringReports ¶
func (a *Client) ListMeteringReports(params *ListMeteringReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListMeteringReportsOK, error)
ListMeteringReports List metering reports. Only available in Kubermatic Enterprise Edition
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 { GetMeteringReport(params *GetMeteringReportParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMeteringReportOK, error) ListMeteringReports(params *ListMeteringReportsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListMeteringReportsOK, 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 metering API client.
type GetMeteringReportDefault ¶
type GetMeteringReportDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetMeteringReportDefault describes a response with status code -1, with default header values.
errorResponse
func NewGetMeteringReportDefault ¶
func NewGetMeteringReportDefault(code int) *GetMeteringReportDefault
NewGetMeteringReportDefault creates a GetMeteringReportDefault with default headers values
func (*GetMeteringReportDefault) Code ¶
func (o *GetMeteringReportDefault) Code() int
Code gets the status code for the get metering report default response
func (*GetMeteringReportDefault) Error ¶
func (o *GetMeteringReportDefault) Error() string
func (*GetMeteringReportDefault) GetPayload ¶
func (o *GetMeteringReportDefault) GetPayload() *models.ErrorResponse
type GetMeteringReportForbidden ¶
type GetMeteringReportForbidden struct { }
GetMeteringReportForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewGetMeteringReportForbidden ¶
func NewGetMeteringReportForbidden() *GetMeteringReportForbidden
NewGetMeteringReportForbidden creates a GetMeteringReportForbidden with default headers values
func (*GetMeteringReportForbidden) Error ¶
func (o *GetMeteringReportForbidden) Error() string
type GetMeteringReportOK ¶
GetMeteringReportOK describes a response with status code 200, with default header values.
MeteringReportURL
func NewGetMeteringReportOK ¶
func NewGetMeteringReportOK() *GetMeteringReportOK
NewGetMeteringReportOK creates a GetMeteringReportOK with default headers values
func (*GetMeteringReportOK) Error ¶
func (o *GetMeteringReportOK) Error() string
func (*GetMeteringReportOK) GetPayload ¶
func (o *GetMeteringReportOK) GetPayload() models.ReportURL
type GetMeteringReportParams ¶
type GetMeteringReportParams struct { // ReportName. ReportName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMeteringReportParams contains all the parameters to send to the API endpoint
for the get metering report operation. Typically these are written to a http.Request.
func NewGetMeteringReportParams ¶
func NewGetMeteringReportParams() *GetMeteringReportParams
NewGetMeteringReportParams creates a new GetMeteringReportParams 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 NewGetMeteringReportParamsWithContext ¶
func NewGetMeteringReportParamsWithContext(ctx context.Context) *GetMeteringReportParams
NewGetMeteringReportParamsWithContext creates a new GetMeteringReportParams object with the ability to set a context for a request.
func NewGetMeteringReportParamsWithHTTPClient ¶
func NewGetMeteringReportParamsWithHTTPClient(client *http.Client) *GetMeteringReportParams
NewGetMeteringReportParamsWithHTTPClient creates a new GetMeteringReportParams object with the ability to set a custom HTTPClient for a request.
func NewGetMeteringReportParamsWithTimeout ¶
func NewGetMeteringReportParamsWithTimeout(timeout time.Duration) *GetMeteringReportParams
NewGetMeteringReportParamsWithTimeout creates a new GetMeteringReportParams object with the ability to set a timeout on a request.
func (*GetMeteringReportParams) SetContext ¶
func (o *GetMeteringReportParams) SetContext(ctx context.Context)
SetContext adds the context to the get metering report params
func (*GetMeteringReportParams) SetDefaults ¶
func (o *GetMeteringReportParams) SetDefaults()
SetDefaults hydrates default values in the get metering report params (not the query body).
All values with no default are reset to their zero value.
func (*GetMeteringReportParams) SetHTTPClient ¶
func (o *GetMeteringReportParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get metering report params
func (*GetMeteringReportParams) SetReportName ¶
func (o *GetMeteringReportParams) SetReportName(reportName string)
SetReportName adds the reportName to the get metering report params
func (*GetMeteringReportParams) SetTimeout ¶
func (o *GetMeteringReportParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get metering report params
func (*GetMeteringReportParams) WithContext ¶
func (o *GetMeteringReportParams) WithContext(ctx context.Context) *GetMeteringReportParams
WithContext adds the context to the get metering report params
func (*GetMeteringReportParams) WithDefaults ¶
func (o *GetMeteringReportParams) WithDefaults() *GetMeteringReportParams
WithDefaults hydrates default values in the get metering report params (not the query body).
All values with no default are reset to their zero value.
func (*GetMeteringReportParams) WithHTTPClient ¶
func (o *GetMeteringReportParams) WithHTTPClient(client *http.Client) *GetMeteringReportParams
WithHTTPClient adds the HTTPClient to the get metering report params
func (*GetMeteringReportParams) WithReportName ¶
func (o *GetMeteringReportParams) WithReportName(reportName string) *GetMeteringReportParams
WithReportName adds the reportName to the get metering report params
func (*GetMeteringReportParams) WithTimeout ¶
func (o *GetMeteringReportParams) WithTimeout(timeout time.Duration) *GetMeteringReportParams
WithTimeout adds the timeout to the get metering report params
func (*GetMeteringReportParams) WriteToRequest ¶
func (o *GetMeteringReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMeteringReportReader ¶
type GetMeteringReportReader struct {
// contains filtered or unexported fields
}
GetMeteringReportReader is a Reader for the GetMeteringReport structure.
func (*GetMeteringReportReader) ReadResponse ¶
func (o *GetMeteringReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMeteringReportUnauthorized ¶
type GetMeteringReportUnauthorized struct { }
GetMeteringReportUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewGetMeteringReportUnauthorized ¶
func NewGetMeteringReportUnauthorized() *GetMeteringReportUnauthorized
NewGetMeteringReportUnauthorized creates a GetMeteringReportUnauthorized with default headers values
func (*GetMeteringReportUnauthorized) Error ¶
func (o *GetMeteringReportUnauthorized) Error() string
type ListMeteringReportsDefault ¶
type ListMeteringReportsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListMeteringReportsDefault describes a response with status code -1, with default header values.
errorResponse
func NewListMeteringReportsDefault ¶
func NewListMeteringReportsDefault(code int) *ListMeteringReportsDefault
NewListMeteringReportsDefault creates a ListMeteringReportsDefault with default headers values
func (*ListMeteringReportsDefault) Code ¶
func (o *ListMeteringReportsDefault) Code() int
Code gets the status code for the list metering reports default response
func (*ListMeteringReportsDefault) Error ¶
func (o *ListMeteringReportsDefault) Error() string
func (*ListMeteringReportsDefault) GetPayload ¶
func (o *ListMeteringReportsDefault) GetPayload() *models.ErrorResponse
type ListMeteringReportsForbidden ¶
type ListMeteringReportsForbidden struct { }
ListMeteringReportsForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewListMeteringReportsForbidden ¶
func NewListMeteringReportsForbidden() *ListMeteringReportsForbidden
NewListMeteringReportsForbidden creates a ListMeteringReportsForbidden with default headers values
func (*ListMeteringReportsForbidden) Error ¶
func (o *ListMeteringReportsForbidden) Error() string
type ListMeteringReportsOK ¶
type ListMeteringReportsOK struct {
Payload []*models.MeteringReport
}
ListMeteringReportsOK describes a response with status code 200, with default header values.
MeteringReport
func NewListMeteringReportsOK ¶
func NewListMeteringReportsOK() *ListMeteringReportsOK
NewListMeteringReportsOK creates a ListMeteringReportsOK with default headers values
func (*ListMeteringReportsOK) Error ¶
func (o *ListMeteringReportsOK) Error() string
func (*ListMeteringReportsOK) GetPayload ¶
func (o *ListMeteringReportsOK) GetPayload() []*models.MeteringReport
type ListMeteringReportsParams ¶
type ListMeteringReportsParams struct { // MaxKeys. // // Format: int64 MaxKeys *int64 // StartAfter. StartAfter *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListMeteringReportsParams contains all the parameters to send to the API endpoint
for the list metering reports operation. Typically these are written to a http.Request.
func NewListMeteringReportsParams ¶
func NewListMeteringReportsParams() *ListMeteringReportsParams
NewListMeteringReportsParams creates a new ListMeteringReportsParams 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 NewListMeteringReportsParamsWithContext ¶
func NewListMeteringReportsParamsWithContext(ctx context.Context) *ListMeteringReportsParams
NewListMeteringReportsParamsWithContext creates a new ListMeteringReportsParams object with the ability to set a context for a request.
func NewListMeteringReportsParamsWithHTTPClient ¶
func NewListMeteringReportsParamsWithHTTPClient(client *http.Client) *ListMeteringReportsParams
NewListMeteringReportsParamsWithHTTPClient creates a new ListMeteringReportsParams object with the ability to set a custom HTTPClient for a request.
func NewListMeteringReportsParamsWithTimeout ¶
func NewListMeteringReportsParamsWithTimeout(timeout time.Duration) *ListMeteringReportsParams
NewListMeteringReportsParamsWithTimeout creates a new ListMeteringReportsParams object with the ability to set a timeout on a request.
func (*ListMeteringReportsParams) SetContext ¶
func (o *ListMeteringReportsParams) SetContext(ctx context.Context)
SetContext adds the context to the list metering reports params
func (*ListMeteringReportsParams) SetDefaults ¶
func (o *ListMeteringReportsParams) SetDefaults()
SetDefaults hydrates default values in the list metering reports params (not the query body).
All values with no default are reset to their zero value.
func (*ListMeteringReportsParams) SetHTTPClient ¶
func (o *ListMeteringReportsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list metering reports params
func (*ListMeteringReportsParams) SetMaxKeys ¶
func (o *ListMeteringReportsParams) SetMaxKeys(maxKeys *int64)
SetMaxKeys adds the maxKeys to the list metering reports params
func (*ListMeteringReportsParams) SetStartAfter ¶
func (o *ListMeteringReportsParams) SetStartAfter(startAfter *string)
SetStartAfter adds the startAfter to the list metering reports params
func (*ListMeteringReportsParams) SetTimeout ¶
func (o *ListMeteringReportsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list metering reports params
func (*ListMeteringReportsParams) WithContext ¶
func (o *ListMeteringReportsParams) WithContext(ctx context.Context) *ListMeteringReportsParams
WithContext adds the context to the list metering reports params
func (*ListMeteringReportsParams) WithDefaults ¶
func (o *ListMeteringReportsParams) WithDefaults() *ListMeteringReportsParams
WithDefaults hydrates default values in the list metering reports params (not the query body).
All values with no default are reset to their zero value.
func (*ListMeteringReportsParams) WithHTTPClient ¶
func (o *ListMeteringReportsParams) WithHTTPClient(client *http.Client) *ListMeteringReportsParams
WithHTTPClient adds the HTTPClient to the list metering reports params
func (*ListMeteringReportsParams) WithMaxKeys ¶
func (o *ListMeteringReportsParams) WithMaxKeys(maxKeys *int64) *ListMeteringReportsParams
WithMaxKeys adds the maxKeys to the list metering reports params
func (*ListMeteringReportsParams) WithStartAfter ¶
func (o *ListMeteringReportsParams) WithStartAfter(startAfter *string) *ListMeteringReportsParams
WithStartAfter adds the startAfter to the list metering reports params
func (*ListMeteringReportsParams) WithTimeout ¶
func (o *ListMeteringReportsParams) WithTimeout(timeout time.Duration) *ListMeteringReportsParams
WithTimeout adds the timeout to the list metering reports params
func (*ListMeteringReportsParams) WriteToRequest ¶
func (o *ListMeteringReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListMeteringReportsReader ¶
type ListMeteringReportsReader struct {
// contains filtered or unexported fields
}
ListMeteringReportsReader is a Reader for the ListMeteringReports structure.
func (*ListMeteringReportsReader) ReadResponse ¶
func (o *ListMeteringReportsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListMeteringReportsUnauthorized ¶
type ListMeteringReportsUnauthorized struct { }
ListMeteringReportsUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewListMeteringReportsUnauthorized ¶
func NewListMeteringReportsUnauthorized() *ListMeteringReportsUnauthorized
NewListMeteringReportsUnauthorized creates a ListMeteringReportsUnauthorized with default headers values
func (*ListMeteringReportsUnauthorized) Error ¶
func (o *ListMeteringReportsUnauthorized) Error() string