scrape_configs

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 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 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

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

WithBody adds the body to the add static targets params

func (*AddStaticTargetsParams) WithContext

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

WithTimeout adds the timeout to the add static targets params

func (*AddStaticTargetsParams) WriteToRequest

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

func (a *Client) GetMixin2(params *GetMixin2Params) (*GetMixin2OK, error)

GetMixin2 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

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 GetMixin2OK

type GetMixin2OK struct {
	Payload *models.APIScrapeConfigsGetResponse
}

GetMixin2OK handles this case with default header values.

(empty)

func NewGetMixin2OK

func NewGetMixin2OK() *GetMixin2OK

NewGetMixin2OK creates a GetMixin2OK with default headers values

func (*GetMixin2OK) Error

func (o *GetMixin2OK) Error() string

type GetMixin2Params

type GetMixin2Params struct {

	/*JobName*/
	JobName string

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

GetMixin2Params contains all the parameters to send to the API endpoint for the get mixin2 operation typically these are written to a http.Request

func NewGetMixin2Params

func NewGetMixin2Params() *GetMixin2Params

NewGetMixin2Params creates a new GetMixin2Params object with the default values initialized.

func NewGetMixin2ParamsWithContext

func NewGetMixin2ParamsWithContext(ctx context.Context) *GetMixin2Params

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

func NewGetMixin2ParamsWithHTTPClient

func NewGetMixin2ParamsWithHTTPClient(client *http.Client) *GetMixin2Params

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

func NewGetMixin2ParamsWithTimeout

func NewGetMixin2ParamsWithTimeout(timeout time.Duration) *GetMixin2Params

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

func (*GetMixin2Params) SetContext

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

SetContext adds the context to the get mixin2 params

func (*GetMixin2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get mixin2 params

func (*GetMixin2Params) SetJobName

func (o *GetMixin2Params) SetJobName(jobName string)

SetJobName adds the jobName to the get mixin2 params

func (*GetMixin2Params) SetTimeout

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

SetTimeout adds the timeout to the get mixin2 params

func (*GetMixin2Params) WithContext

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

WithContext adds the context to the get mixin2 params

func (*GetMixin2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get mixin2 params

func (*GetMixin2Params) WithJobName

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

WithJobName adds the jobName to the get mixin2 params

func (*GetMixin2Params) WithTimeout

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

WithTimeout adds the timeout to the get mixin2 params

func (*GetMixin2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMixin2Reader

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

GetMixin2Reader is a Reader for the GetMixin2 structure.

func (*GetMixin2Reader) ReadResponse

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

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

WithBody adds the body to the remove static targets params

func (*RemoveStaticTargetsParams) WithContext

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

WithJobName adds the jobName to the remove static targets params

func (*RemoveStaticTargetsParams) WithTimeout

WithTimeout adds the timeout to the remove static targets params

func (*RemoveStaticTargetsParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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