scrape_configs

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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 scrape configs API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new scrape configs API client.

func (*Client) CreateMixin4 added in v1.14.1

func (a *Client) CreateMixin4(params *CreateMixin4Params) (*CreateMixin4OK, error)

CreateMixin4 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 failed precondition 9 if reachability check was requested and some scrape target can t be reached

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

func (a *Client) Get(params *GetParams) (*GetOK, error)

Get gets returns a scrape config by job name errors not found 5 if no such scrape config is present

func (*Client) ListMixin4 added in v1.14.1

func (a *Client) ListMixin4(params *ListMixin4Params) (*ListMixin4OK, error)

ListMixin4 lists returns all scrape configs

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) Update added in v1.7.0

func (a *Client) Update(params *UpdateParams) (*UpdateOK, error)

Update updates updates existing scrape config by job name errors invalid argument 3 if some argument is not valid not found 5 if no such scrape config is present failed precondition 9 if reachability check was requested and some scrape target can t be reached

type CreateMixin4OK added in v1.14.1

type CreateMixin4OK struct {
	Payload models.APIScrapeConfigsCreateResponse
}

CreateMixin4OK handles this case with default header values.

(empty)

func NewCreateMixin4OK added in v1.14.1

func NewCreateMixin4OK() *CreateMixin4OK

NewCreateMixin4OK creates a CreateMixin4OK with default headers values

func (*CreateMixin4OK) Error added in v1.14.1

func (o *CreateMixin4OK) Error() string

type CreateMixin4Params added in v1.14.1

type CreateMixin4Params struct {

	/*Body*/
	Body *models.APIScrapeConfigsCreateRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateMixin4Params contains all the parameters to send to the API endpoint for the create mixin4 operation typically these are written to a http.Request

func NewCreateMixin4Params added in v1.14.1

func NewCreateMixin4Params() *CreateMixin4Params

NewCreateMixin4Params creates a new CreateMixin4Params object with the default values initialized.

func NewCreateMixin4ParamsWithContext added in v1.14.1

func NewCreateMixin4ParamsWithContext(ctx context.Context) *CreateMixin4Params

NewCreateMixin4ParamsWithContext creates a new CreateMixin4Params object with the default values initialized, and the ability to set a context for a request

func NewCreateMixin4ParamsWithHTTPClient added in v1.14.1

func NewCreateMixin4ParamsWithHTTPClient(client *http.Client) *CreateMixin4Params

NewCreateMixin4ParamsWithHTTPClient creates a new CreateMixin4Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateMixin4ParamsWithTimeout added in v1.14.1

func NewCreateMixin4ParamsWithTimeout(timeout time.Duration) *CreateMixin4Params

NewCreateMixin4ParamsWithTimeout creates a new CreateMixin4Params object with the default values initialized, and the ability to set a timeout on a request

func (*CreateMixin4Params) SetBody added in v1.14.1

SetBody adds the body to the create mixin4 params

func (*CreateMixin4Params) SetContext added in v1.14.1

func (o *CreateMixin4Params) SetContext(ctx context.Context)

SetContext adds the context to the create mixin4 params

func (*CreateMixin4Params) SetHTTPClient added in v1.14.1

func (o *CreateMixin4Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create mixin4 params

func (*CreateMixin4Params) SetTimeout added in v1.14.1

func (o *CreateMixin4Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create mixin4 params

func (*CreateMixin4Params) WithBody added in v1.14.1

WithBody adds the body to the create mixin4 params

func (*CreateMixin4Params) WithContext added in v1.14.1

WithContext adds the context to the create mixin4 params

func (*CreateMixin4Params) WithHTTPClient added in v1.14.1

func (o *CreateMixin4Params) WithHTTPClient(client *http.Client) *CreateMixin4Params

WithHTTPClient adds the HTTPClient to the create mixin4 params

func (*CreateMixin4Params) WithTimeout added in v1.14.1

func (o *CreateMixin4Params) WithTimeout(timeout time.Duration) *CreateMixin4Params

WithTimeout adds the timeout to the create mixin4 params

func (*CreateMixin4Params) WriteToRequest added in v1.14.1

func (o *CreateMixin4Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateMixin4Reader added in v1.14.1

type CreateMixin4Reader struct {
	// contains filtered or unexported fields
}

CreateMixin4Reader is a Reader for the CreateMixin4 structure.

func (*CreateMixin4Reader) ReadResponse added in v1.14.1

func (o *CreateMixin4Reader) 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

func (*DeleteOK) Error

func (o *DeleteOK) Error() string

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)

func NewGetOK added in v1.6.0

func NewGetOK() *GetOK

NewGetOK creates a GetOK with default headers values

func (*GetOK) Error added in v1.6.0

func (o *GetOK) Error() string

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

func NewGetParamsWithContext(ctx context.Context) *GetParams

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

func NewGetParamsWithHTTPClient(client *http.Client) *GetParams

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

func NewGetParamsWithTimeout(timeout time.Duration) *GetParams

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

func (o *GetParams) SetContext(ctx context.Context)

SetContext adds the context to the get params

func (*GetParams) SetHTTPClient added in v1.6.0

func (o *GetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get params

func (*GetParams) SetJobName added in v1.6.0

func (o *GetParams) SetJobName(jobName string)

SetJobName adds the jobName to the get params

func (*GetParams) SetTimeout added in v1.6.0

func (o *GetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get params

func (*GetParams) WithContext added in v1.6.0

func (o *GetParams) WithContext(ctx context.Context) *GetParams

WithContext adds the context to the get params

func (*GetParams) WithHTTPClient added in v1.6.0

func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams

WithHTTPClient adds the HTTPClient to the get params

func (*GetParams) WithJobName added in v1.6.0

func (o *GetParams) WithJobName(jobName string) *GetParams

WithJobName adds the jobName to the get params

func (*GetParams) WithTimeout added in v1.6.0

func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams

WithTimeout adds the timeout to the get params

func (*GetParams) WriteToRequest added in v1.6.0

func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

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 ListMixin4OK added in v1.14.1

type ListMixin4OK struct {
	Payload *models.APIScrapeConfigsListResponse
}

ListMixin4OK handles this case with default header values.

(empty)

func NewListMixin4OK added in v1.14.1

func NewListMixin4OK() *ListMixin4OK

NewListMixin4OK creates a ListMixin4OK with default headers values

func (*ListMixin4OK) Error added in v1.14.1

func (o *ListMixin4OK) Error() string

type ListMixin4Params added in v1.14.1

type ListMixin4Params struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListMixin4Params contains all the parameters to send to the API endpoint for the list mixin4 operation typically these are written to a http.Request

func NewListMixin4Params added in v1.14.1

func NewListMixin4Params() *ListMixin4Params

NewListMixin4Params creates a new ListMixin4Params object with the default values initialized.

func NewListMixin4ParamsWithContext added in v1.14.1

func NewListMixin4ParamsWithContext(ctx context.Context) *ListMixin4Params

NewListMixin4ParamsWithContext creates a new ListMixin4Params object with the default values initialized, and the ability to set a context for a request

func NewListMixin4ParamsWithHTTPClient added in v1.14.1

func NewListMixin4ParamsWithHTTPClient(client *http.Client) *ListMixin4Params

NewListMixin4ParamsWithHTTPClient creates a new ListMixin4Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListMixin4ParamsWithTimeout added in v1.14.1

func NewListMixin4ParamsWithTimeout(timeout time.Duration) *ListMixin4Params

NewListMixin4ParamsWithTimeout creates a new ListMixin4Params object with the default values initialized, and the ability to set a timeout on a request

func (*ListMixin4Params) SetContext added in v1.14.1

func (o *ListMixin4Params) SetContext(ctx context.Context)

SetContext adds the context to the list mixin4 params

func (*ListMixin4Params) SetHTTPClient added in v1.14.1

func (o *ListMixin4Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list mixin4 params

func (*ListMixin4Params) SetTimeout added in v1.14.1

func (o *ListMixin4Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list mixin4 params

func (*ListMixin4Params) WithContext added in v1.14.1

func (o *ListMixin4Params) WithContext(ctx context.Context) *ListMixin4Params

WithContext adds the context to the list mixin4 params

func (*ListMixin4Params) WithHTTPClient added in v1.14.1

func (o *ListMixin4Params) WithHTTPClient(client *http.Client) *ListMixin4Params

WithHTTPClient adds the HTTPClient to the list mixin4 params

func (*ListMixin4Params) WithTimeout added in v1.14.1

func (o *ListMixin4Params) WithTimeout(timeout time.Duration) *ListMixin4Params

WithTimeout adds the timeout to the list mixin4 params

func (*ListMixin4Params) WriteToRequest added in v1.14.1

func (o *ListMixin4Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListMixin4Reader added in v1.14.1

type ListMixin4Reader struct {
	// contains filtered or unexported fields
}

ListMixin4Reader is a Reader for the ListMixin4 structure.

func (*ListMixin4Reader) ReadResponse added in v1.14.1

func (o *ListMixin4Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateOK added in v1.7.0

type UpdateOK struct {
	Payload models.APIScrapeConfigsUpdateResponse
}

UpdateOK handles this case with default header values.

(empty)

func NewUpdateOK added in v1.7.0

func NewUpdateOK() *UpdateOK

NewUpdateOK creates a UpdateOK with default headers values

func (*UpdateOK) Error added in v1.7.0

func (o *UpdateOK) Error() string

type UpdateParams added in v1.7.0

type UpdateParams struct {

	/*Body*/
	Body *models.APIScrapeConfigsUpdateRequest
	/*ScrapeConfigJobName*/
	ScrapeConfigJobName string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateParams contains all the parameters to send to the API endpoint for the update operation typically these are written to a http.Request

func NewUpdateParams added in v1.7.0

func NewUpdateParams() *UpdateParams

NewUpdateParams creates a new UpdateParams object with the default values initialized.

func NewUpdateParamsWithContext added in v1.7.0

func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams

NewUpdateParamsWithContext creates a new UpdateParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateParamsWithHTTPClient added in v1.7.0

func NewUpdateParamsWithHTTPClient(client *http.Client) *UpdateParams

NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateParamsWithTimeout added in v1.7.0

func NewUpdateParamsWithTimeout(timeout time.Duration) *UpdateParams

NewUpdateParamsWithTimeout creates a new UpdateParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateParams) SetBody added in v1.7.0

SetBody adds the body to the update params

func (*UpdateParams) SetContext added in v1.7.0

func (o *UpdateParams) SetContext(ctx context.Context)

SetContext adds the context to the update params

func (*UpdateParams) SetHTTPClient added in v1.7.0

func (o *UpdateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update params

func (*UpdateParams) SetScrapeConfigJobName added in v1.7.0

func (o *UpdateParams) SetScrapeConfigJobName(scrapeConfigJobName string)

SetScrapeConfigJobName adds the scrapeConfigJobName to the update params

func (*UpdateParams) SetTimeout added in v1.7.0

func (o *UpdateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update params

func (*UpdateParams) WithBody added in v1.7.0

WithBody adds the body to the update params

func (*UpdateParams) WithContext added in v1.7.0

func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams

WithContext adds the context to the update params

func (*UpdateParams) WithHTTPClient added in v1.7.0

func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams

WithHTTPClient adds the HTTPClient to the update params

func (*UpdateParams) WithScrapeConfigJobName added in v1.7.0

func (o *UpdateParams) WithScrapeConfigJobName(scrapeConfigJobName string) *UpdateParams

WithScrapeConfigJobName adds the scrapeConfigJobName to the update params

func (*UpdateParams) WithTimeout added in v1.7.0

func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams

WithTimeout adds the timeout to the update params

func (*UpdateParams) WriteToRequest added in v1.7.0

func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateReader added in v1.7.0

type UpdateReader struct {
	// contains filtered or unexported fields
}

UpdateReader is a Reader for the Update structure.

func (*UpdateReader) ReadResponse added in v1.7.0

func (o *UpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL