Help us shape the future of Go! Take the 2026 Go Developer Survey

scrape_configs

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 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) 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 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) ListMixin2

func (a *Client) ListMixin2(params *ListMixin2Params) (*ListMixin2OK, error)

ListMixin2 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 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

func (*CreateOK) Error

func (o *CreateOK) Error() string

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

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

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

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 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 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