Documentation
¶
Index ¶
- type AddStaticTargetsOK
- type AddStaticTargetsParams
- func NewAddStaticTargetsParams() *AddStaticTargetsParams
- func NewAddStaticTargetsParamsWithContext(ctx context.Context) *AddStaticTargetsParams
- func NewAddStaticTargetsParamsWithHTTPClient(client *http.Client) *AddStaticTargetsParams
- func NewAddStaticTargetsParamsWithTimeout(timeout time.Duration) *AddStaticTargetsParams
- func (o *AddStaticTargetsParams) SetBody(body *models.APIScrapeConfigsAddStaticTargetsRequest)
- func (o *AddStaticTargetsParams) SetContext(ctx context.Context)
- func (o *AddStaticTargetsParams) SetHTTPClient(client *http.Client)
- func (o *AddStaticTargetsParams) SetJobName(jobName string)
- func (o *AddStaticTargetsParams) SetTimeout(timeout time.Duration)
- func (o *AddStaticTargetsParams) WithBody(body *models.APIScrapeConfigsAddStaticTargetsRequest) *AddStaticTargetsParams
- func (o *AddStaticTargetsParams) WithContext(ctx context.Context) *AddStaticTargetsParams
- func (o *AddStaticTargetsParams) WithHTTPClient(client *http.Client) *AddStaticTargetsParams
- func (o *AddStaticTargetsParams) WithJobName(jobName string) *AddStaticTargetsParams
- func (o *AddStaticTargetsParams) WithTimeout(timeout time.Duration) *AddStaticTargetsParams
- func (o *AddStaticTargetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddStaticTargetsReader
- type Client
- func (a *Client) AddStaticTargets(params *AddStaticTargetsParams) (*AddStaticTargetsOK, error)
- func (a *Client) Create(params *CreateParams) (*CreateOK, error)
- func (a *Client) Delete(params *DeleteParams) (*DeleteOK, error)
- func (a *Client) Get(params *GetParams) (*GetOK, error)
- func (a *Client) ListMixin2(params *ListMixin2Params) (*ListMixin2OK, error)
- func (a *Client) RemoveStaticTargets(params *RemoveStaticTargetsParams) (*RemoveStaticTargetsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type CreateOK
- type CreateParams
- func (o *CreateParams) SetBody(body *models.APIScrapeConfigsCreateRequest)
- func (o *CreateParams) SetContext(ctx context.Context)
- func (o *CreateParams) SetHTTPClient(client *http.Client)
- func (o *CreateParams) SetTimeout(timeout time.Duration)
- func (o *CreateParams) WithBody(body *models.APIScrapeConfigsCreateRequest) *CreateParams
- func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
- func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
- func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
- func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateReader
- type DeleteOK
- type DeleteParams
- func (o *DeleteParams) SetContext(ctx context.Context)
- func (o *DeleteParams) SetHTTPClient(client *http.Client)
- func (o *DeleteParams) SetJobName(jobName string)
- func (o *DeleteParams) SetTimeout(timeout time.Duration)
- func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
- func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
- func (o *DeleteParams) WithJobName(jobName string) *DeleteParams
- func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
- func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteReader
- type GetOK
- type GetParams
- func (o *GetParams) SetContext(ctx context.Context)
- func (o *GetParams) SetHTTPClient(client *http.Client)
- func (o *GetParams) SetJobName(jobName string)
- func (o *GetParams) SetTimeout(timeout time.Duration)
- func (o *GetParams) WithContext(ctx context.Context) *GetParams
- func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams
- func (o *GetParams) WithJobName(jobName string) *GetParams
- func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams
- func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReader
- type ListMixin2OK
- type ListMixin2Params
- func (o *ListMixin2Params) SetContext(ctx context.Context)
- func (o *ListMixin2Params) SetHTTPClient(client *http.Client)
- func (o *ListMixin2Params) SetTimeout(timeout time.Duration)
- func (o *ListMixin2Params) WithContext(ctx context.Context) *ListMixin2Params
- func (o *ListMixin2Params) WithHTTPClient(client *http.Client) *ListMixin2Params
- func (o *ListMixin2Params) WithTimeout(timeout time.Duration) *ListMixin2Params
- func (o *ListMixin2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMixin2Reader
- type RemoveStaticTargetsOK
- type RemoveStaticTargetsParams
- func NewRemoveStaticTargetsParams() *RemoveStaticTargetsParams
- func NewRemoveStaticTargetsParamsWithContext(ctx context.Context) *RemoveStaticTargetsParams
- func NewRemoveStaticTargetsParamsWithHTTPClient(client *http.Client) *RemoveStaticTargetsParams
- func NewRemoveStaticTargetsParamsWithTimeout(timeout time.Duration) *RemoveStaticTargetsParams
- func (o *RemoveStaticTargetsParams) SetBody(body *models.APIScrapeConfigsRemoveStaticTargetsRequest)
- func (o *RemoveStaticTargetsParams) SetContext(ctx context.Context)
- func (o *RemoveStaticTargetsParams) SetHTTPClient(client *http.Client)
- func (o *RemoveStaticTargetsParams) SetJobName(jobName string)
- func (o *RemoveStaticTargetsParams) SetTimeout(timeout time.Duration)
- func (o *RemoveStaticTargetsParams) WithBody(body *models.APIScrapeConfigsRemoveStaticTargetsRequest) *RemoveStaticTargetsParams
- func (o *RemoveStaticTargetsParams) WithContext(ctx context.Context) *RemoveStaticTargetsParams
- func (o *RemoveStaticTargetsParams) WithHTTPClient(client *http.Client) *RemoveStaticTargetsParams
- func (o *RemoveStaticTargetsParams) WithJobName(jobName string) *RemoveStaticTargetsParams
- func (o *RemoveStaticTargetsParams) WithTimeout(timeout time.Duration) *RemoveStaticTargetsParams
- func (o *RemoveStaticTargetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveStaticTargetsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddStaticTargetsOK ¶
type AddStaticTargetsOK struct {
Payload models.APIScrapeConfigsAddStaticTargetsResponse
}
AddStaticTargetsOK handles this case with default header values.
(empty)
func NewAddStaticTargetsOK ¶
func NewAddStaticTargetsOK() *AddStaticTargetsOK
NewAddStaticTargetsOK creates a AddStaticTargetsOK with default headers values
func (*AddStaticTargetsOK) Error ¶
func (o *AddStaticTargetsOK) Error() string
type AddStaticTargetsParams ¶
type AddStaticTargetsParams struct {
/*Body*/
Body *models.APIScrapeConfigsAddStaticTargetsRequest
/*JobName*/
JobName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AddStaticTargetsParams contains all the parameters to send to the API endpoint for the add static targets operation typically these are written to a http.Request
func NewAddStaticTargetsParams ¶
func NewAddStaticTargetsParams() *AddStaticTargetsParams
NewAddStaticTargetsParams creates a new AddStaticTargetsParams object with the default values initialized.
func NewAddStaticTargetsParamsWithContext ¶
func NewAddStaticTargetsParamsWithContext(ctx context.Context) *AddStaticTargetsParams
NewAddStaticTargetsParamsWithContext creates a new AddStaticTargetsParams object with the default values initialized, and the ability to set a context for a request
func NewAddStaticTargetsParamsWithHTTPClient ¶
func NewAddStaticTargetsParamsWithHTTPClient(client *http.Client) *AddStaticTargetsParams
NewAddStaticTargetsParamsWithHTTPClient creates a new AddStaticTargetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddStaticTargetsParamsWithTimeout ¶
func NewAddStaticTargetsParamsWithTimeout(timeout time.Duration) *AddStaticTargetsParams
NewAddStaticTargetsParamsWithTimeout creates a new AddStaticTargetsParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddStaticTargetsParams) SetBody ¶
func (o *AddStaticTargetsParams) SetBody(body *models.APIScrapeConfigsAddStaticTargetsRequest)
SetBody adds the body to the add static targets params
func (*AddStaticTargetsParams) SetContext ¶
func (o *AddStaticTargetsParams) SetContext(ctx context.Context)
SetContext adds the context to the add static targets params
func (*AddStaticTargetsParams) SetHTTPClient ¶
func (o *AddStaticTargetsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add static targets params
func (*AddStaticTargetsParams) SetJobName ¶
func (o *AddStaticTargetsParams) SetJobName(jobName string)
SetJobName adds the jobName to the add static targets params
func (*AddStaticTargetsParams) SetTimeout ¶
func (o *AddStaticTargetsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add static targets params
func (*AddStaticTargetsParams) WithBody ¶
func (o *AddStaticTargetsParams) WithBody(body *models.APIScrapeConfigsAddStaticTargetsRequest) *AddStaticTargetsParams
WithBody adds the body to the add static targets params
func (*AddStaticTargetsParams) WithContext ¶
func (o *AddStaticTargetsParams) WithContext(ctx context.Context) *AddStaticTargetsParams
WithContext adds the context to the add static targets params
func (*AddStaticTargetsParams) WithHTTPClient ¶
func (o *AddStaticTargetsParams) WithHTTPClient(client *http.Client) *AddStaticTargetsParams
WithHTTPClient adds the HTTPClient to the add static targets params
func (*AddStaticTargetsParams) WithJobName ¶
func (o *AddStaticTargetsParams) WithJobName(jobName string) *AddStaticTargetsParams
WithJobName adds the jobName to the add static targets params
func (*AddStaticTargetsParams) WithTimeout ¶
func (o *AddStaticTargetsParams) WithTimeout(timeout time.Duration) *AddStaticTargetsParams
WithTimeout adds the timeout to the add static targets params
func (*AddStaticTargetsParams) WriteToRequest ¶
func (o *AddStaticTargetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddStaticTargetsReader ¶
type AddStaticTargetsReader struct {
// contains filtered or unexported fields
}
AddStaticTargetsReader is a Reader for the AddStaticTargets structure.
func (*AddStaticTargetsReader) ReadResponse ¶
func (o *AddStaticTargetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for scrape configs API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new scrape configs API client.
func (*Client) AddStaticTargets ¶
func (a *Client) AddStaticTargets(params *AddStaticTargetsParams) (*AddStaticTargetsOK, error)
AddStaticTargets add static targets API
func (*Client) Create ¶
func (a *Client) Create(params *CreateParams) (*CreateOK, error)
Create creates creates a new scrape config errors invalid argument 3 if some argument is not valid already exists 6 if scrape config with that job name is already present
func (*Client) Delete ¶
func (a *Client) Delete(params *DeleteParams) (*DeleteOK, error)
Delete deletes removes existing scrape config by job name errors not found 5 if no such scrape config is present
func (*Client) Get ¶ added in v1.6.0
Get gets returns a scrape config by job name errors not found 5 if no such scrape config is present
func (*Client) ListMixin2 ¶
func (a *Client) ListMixin2(params *ListMixin2Params) (*ListMixin2OK, error)
ListMixin2 lists returns all scrape configs
func (*Client) RemoveStaticTargets ¶
func (a *Client) RemoveStaticTargets(params *RemoveStaticTargetsParams) (*RemoveStaticTargetsOK, error)
RemoveStaticTargets remove static targets API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateOK ¶
type CreateOK struct {
Payload models.APIScrapeConfigsCreateResponse
}
CreateOK handles this case with default header values.
(empty)
func NewCreateOK ¶
func NewCreateOK() *CreateOK
NewCreateOK creates a CreateOK with default headers values
type CreateParams ¶
type CreateParams struct {
/*Body*/
Body *models.APIScrapeConfigsCreateRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateParams contains all the parameters to send to the API endpoint for the create operation typically these are written to a http.Request
func NewCreateParams ¶
func NewCreateParams() *CreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
func NewCreateParamsWithContext ¶
func NewCreateParamsWithContext(ctx context.Context) *CreateParams
NewCreateParamsWithContext creates a new CreateParams object with the default values initialized, and the ability to set a context for a request
func NewCreateParamsWithHTTPClient ¶
func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams
NewCreateParamsWithHTTPClient creates a new CreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateParamsWithTimeout ¶
func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams
NewCreateParamsWithTimeout creates a new CreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateParams) SetBody ¶
func (o *CreateParams) SetBody(body *models.APIScrapeConfigsCreateRequest)
SetBody adds the body to the create params
func (*CreateParams) SetContext ¶
func (o *CreateParams) SetContext(ctx context.Context)
SetContext adds the context to the create params
func (*CreateParams) SetHTTPClient ¶
func (o *CreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create params
func (*CreateParams) SetTimeout ¶
func (o *CreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create params
func (*CreateParams) WithBody ¶
func (o *CreateParams) WithBody(body *models.APIScrapeConfigsCreateRequest) *CreateParams
WithBody adds the body to the create params
func (*CreateParams) WithContext ¶
func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
WithContext adds the context to the create params
func (*CreateParams) WithHTTPClient ¶
func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
WithHTTPClient adds the HTTPClient to the create params
func (*CreateParams) WithTimeout ¶
func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
WithTimeout adds the timeout to the create params
func (*CreateParams) WriteToRequest ¶
func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateReader ¶
type CreateReader struct {
// contains filtered or unexported fields
}
CreateReader is a Reader for the Create structure.
func (*CreateReader) ReadResponse ¶
func (o *CreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteOK ¶
type DeleteOK struct {
Payload models.APIScrapeConfigsDeleteResponse
}
DeleteOK handles this case with default header values.
(empty)
func NewDeleteOK ¶
func NewDeleteOK() *DeleteOK
NewDeleteOK creates a DeleteOK with default headers values
type DeleteParams ¶
type DeleteParams struct {
/*JobName*/
JobName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteParams contains all the parameters to send to the API endpoint for the delete operation typically these are written to a http.Request
func NewDeleteParams ¶
func NewDeleteParams() *DeleteParams
NewDeleteParams creates a new DeleteParams object with the default values initialized.
func NewDeleteParamsWithContext ¶
func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams
NewDeleteParamsWithContext creates a new DeleteParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteParamsWithHTTPClient ¶
func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams
NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteParamsWithTimeout ¶
func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams
NewDeleteParamsWithTimeout creates a new DeleteParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteParams) SetContext ¶
func (o *DeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the delete params
func (*DeleteParams) SetHTTPClient ¶
func (o *DeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) SetJobName ¶
func (o *DeleteParams) SetJobName(jobName string)
SetJobName adds the jobName to the delete params
func (*DeleteParams) SetTimeout ¶
func (o *DeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete params
func (*DeleteParams) WithContext ¶
func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
WithContext adds the context to the delete params
func (*DeleteParams) WithHTTPClient ¶
func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
WithHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) WithJobName ¶
func (o *DeleteParams) WithJobName(jobName string) *DeleteParams
WithJobName adds the jobName to the delete params
func (*DeleteParams) WithTimeout ¶
func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
WithTimeout adds the timeout to the delete params
func (*DeleteParams) WriteToRequest ¶
func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteReader ¶
type DeleteReader struct {
// contains filtered or unexported fields
}
DeleteReader is a Reader for the Delete structure.
func (*DeleteReader) ReadResponse ¶
func (o *DeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOK ¶ added in v1.6.0
type GetOK struct {
Payload *models.APIScrapeConfigsGetResponse
}
GetOK handles this case with default header values.
(empty)
type GetParams ¶ added in v1.6.0
type GetParams struct {
/*JobName*/
JobName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request
func NewGetParams ¶ added in v1.6.0
func NewGetParams() *GetParams
NewGetParams creates a new GetParams object with the default values initialized.
func NewGetParamsWithContext ¶ added in v1.6.0
NewGetParamsWithContext creates a new GetParams object with the default values initialized, and the ability to set a context for a request
func NewGetParamsWithHTTPClient ¶ added in v1.6.0
NewGetParamsWithHTTPClient creates a new GetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetParamsWithTimeout ¶ added in v1.6.0
NewGetParamsWithTimeout creates a new GetParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetParams) SetContext ¶ added in v1.6.0
SetContext adds the context to the get params
func (*GetParams) SetHTTPClient ¶ added in v1.6.0
SetHTTPClient adds the HTTPClient to the get params
func (*GetParams) SetJobName ¶ added in v1.6.0
SetJobName adds the jobName to the get params
func (*GetParams) SetTimeout ¶ added in v1.6.0
SetTimeout adds the timeout to the get params
func (*GetParams) WithContext ¶ added in v1.6.0
WithContext adds the context to the get params
func (*GetParams) WithHTTPClient ¶ added in v1.6.0
WithHTTPClient adds the HTTPClient to the get params
func (*GetParams) WithJobName ¶ added in v1.6.0
WithJobName adds the jobName to the get params
func (*GetParams) WithTimeout ¶ added in v1.6.0
WithTimeout adds the timeout to the get params
func (*GetParams) WriteToRequest ¶ added in v1.6.0
WriteToRequest writes these params to a swagger request
type GetReader ¶ added in v1.6.0
type GetReader struct {
// contains filtered or unexported fields
}
GetReader is a Reader for the Get structure.
func (*GetReader) ReadResponse ¶ added in v1.6.0
func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListMixin2OK ¶
type ListMixin2OK struct {
Payload *models.APIScrapeConfigsListResponse
}
ListMixin2OK handles this case with default header values.
(empty)
func NewListMixin2OK ¶
func NewListMixin2OK() *ListMixin2OK
NewListMixin2OK creates a ListMixin2OK with default headers values
func (*ListMixin2OK) Error ¶
func (o *ListMixin2OK) Error() string
type ListMixin2Params ¶
type ListMixin2Params struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListMixin2Params contains all the parameters to send to the API endpoint for the list mixin2 operation typically these are written to a http.Request
func NewListMixin2Params ¶
func NewListMixin2Params() *ListMixin2Params
NewListMixin2Params creates a new ListMixin2Params object with the default values initialized.
func NewListMixin2ParamsWithContext ¶
func NewListMixin2ParamsWithContext(ctx context.Context) *ListMixin2Params
NewListMixin2ParamsWithContext creates a new ListMixin2Params object with the default values initialized, and the ability to set a context for a request
func NewListMixin2ParamsWithHTTPClient ¶
func NewListMixin2ParamsWithHTTPClient(client *http.Client) *ListMixin2Params
NewListMixin2ParamsWithHTTPClient creates a new ListMixin2Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListMixin2ParamsWithTimeout ¶
func NewListMixin2ParamsWithTimeout(timeout time.Duration) *ListMixin2Params
NewListMixin2ParamsWithTimeout creates a new ListMixin2Params object with the default values initialized, and the ability to set a timeout on a request
func (*ListMixin2Params) SetContext ¶
func (o *ListMixin2Params) SetContext(ctx context.Context)
SetContext adds the context to the list mixin2 params
func (*ListMixin2Params) SetHTTPClient ¶
func (o *ListMixin2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list mixin2 params
func (*ListMixin2Params) SetTimeout ¶
func (o *ListMixin2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list mixin2 params
func (*ListMixin2Params) WithContext ¶
func (o *ListMixin2Params) WithContext(ctx context.Context) *ListMixin2Params
WithContext adds the context to the list mixin2 params
func (*ListMixin2Params) WithHTTPClient ¶
func (o *ListMixin2Params) WithHTTPClient(client *http.Client) *ListMixin2Params
WithHTTPClient adds the HTTPClient to the list mixin2 params
func (*ListMixin2Params) WithTimeout ¶
func (o *ListMixin2Params) WithTimeout(timeout time.Duration) *ListMixin2Params
WithTimeout adds the timeout to the list mixin2 params
func (*ListMixin2Params) WriteToRequest ¶
func (o *ListMixin2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListMixin2Reader ¶
type ListMixin2Reader struct {
// contains filtered or unexported fields
}
ListMixin2Reader is a Reader for the ListMixin2 structure.
func (*ListMixin2Reader) ReadResponse ¶
func (o *ListMixin2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveStaticTargetsOK ¶
type RemoveStaticTargetsOK struct {
Payload models.APIScrapeConfigsRemoveStaticTargetsResponse
}
RemoveStaticTargetsOK handles this case with default header values.
(empty)
func NewRemoveStaticTargetsOK ¶
func NewRemoveStaticTargetsOK() *RemoveStaticTargetsOK
NewRemoveStaticTargetsOK creates a RemoveStaticTargetsOK with default headers values
func (*RemoveStaticTargetsOK) Error ¶
func (o *RemoveStaticTargetsOK) Error() string
type RemoveStaticTargetsParams ¶
type RemoveStaticTargetsParams struct {
/*Body*/
Body *models.APIScrapeConfigsRemoveStaticTargetsRequest
/*JobName*/
JobName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
RemoveStaticTargetsParams contains all the parameters to send to the API endpoint for the remove static targets operation typically these are written to a http.Request
func NewRemoveStaticTargetsParams ¶
func NewRemoveStaticTargetsParams() *RemoveStaticTargetsParams
NewRemoveStaticTargetsParams creates a new RemoveStaticTargetsParams object with the default values initialized.
func NewRemoveStaticTargetsParamsWithContext ¶
func NewRemoveStaticTargetsParamsWithContext(ctx context.Context) *RemoveStaticTargetsParams
NewRemoveStaticTargetsParamsWithContext creates a new RemoveStaticTargetsParams object with the default values initialized, and the ability to set a context for a request
func NewRemoveStaticTargetsParamsWithHTTPClient ¶
func NewRemoveStaticTargetsParamsWithHTTPClient(client *http.Client) *RemoveStaticTargetsParams
NewRemoveStaticTargetsParamsWithHTTPClient creates a new RemoveStaticTargetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRemoveStaticTargetsParamsWithTimeout ¶
func NewRemoveStaticTargetsParamsWithTimeout(timeout time.Duration) *RemoveStaticTargetsParams
NewRemoveStaticTargetsParamsWithTimeout creates a new RemoveStaticTargetsParams object with the default values initialized, and the ability to set a timeout on a request
func (*RemoveStaticTargetsParams) SetBody ¶
func (o *RemoveStaticTargetsParams) SetBody(body *models.APIScrapeConfigsRemoveStaticTargetsRequest)
SetBody adds the body to the remove static targets params
func (*RemoveStaticTargetsParams) SetContext ¶
func (o *RemoveStaticTargetsParams) SetContext(ctx context.Context)
SetContext adds the context to the remove static targets params
func (*RemoveStaticTargetsParams) SetHTTPClient ¶
func (o *RemoveStaticTargetsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove static targets params
func (*RemoveStaticTargetsParams) SetJobName ¶
func (o *RemoveStaticTargetsParams) SetJobName(jobName string)
SetJobName adds the jobName to the remove static targets params
func (*RemoveStaticTargetsParams) SetTimeout ¶
func (o *RemoveStaticTargetsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove static targets params
func (*RemoveStaticTargetsParams) WithBody ¶
func (o *RemoveStaticTargetsParams) WithBody(body *models.APIScrapeConfigsRemoveStaticTargetsRequest) *RemoveStaticTargetsParams
WithBody adds the body to the remove static targets params
func (*RemoveStaticTargetsParams) WithContext ¶
func (o *RemoveStaticTargetsParams) WithContext(ctx context.Context) *RemoveStaticTargetsParams
WithContext adds the context to the remove static targets params
func (*RemoveStaticTargetsParams) WithHTTPClient ¶
func (o *RemoveStaticTargetsParams) WithHTTPClient(client *http.Client) *RemoveStaticTargetsParams
WithHTTPClient adds the HTTPClient to the remove static targets params
func (*RemoveStaticTargetsParams) WithJobName ¶
func (o *RemoveStaticTargetsParams) WithJobName(jobName string) *RemoveStaticTargetsParams
WithJobName adds the jobName to the remove static targets params
func (*RemoveStaticTargetsParams) WithTimeout ¶
func (o *RemoveStaticTargetsParams) WithTimeout(timeout time.Duration) *RemoveStaticTargetsParams
WithTimeout adds the timeout to the remove static targets params
func (*RemoveStaticTargetsParams) WriteToRequest ¶
func (o *RemoveStaticTargetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveStaticTargetsReader ¶
type RemoveStaticTargetsReader struct {
// contains filtered or unexported fields
}
RemoveStaticTargetsReader is a Reader for the RemoveStaticTargets structure.
func (*RemoveStaticTargetsReader) ReadResponse ¶
func (o *RemoveStaticTargetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- add_static_targets_parameters.go
- add_static_targets_responses.go
- create_parameters.go
- create_responses.go
- delete_parameters.go
- delete_responses.go
- get_parameters.go
- get_responses.go
- list_mixin2_parameters.go
- list_mixin2_responses.go
- remove_static_targets_parameters.go
- remove_static_targets_responses.go
- scrape_configs_client.go