reg_agent

package
v0.0.0-...-037b8db Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 9 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 reg agent API

func (*Client) PostAgent

func (a *Client) PostAgent(params *PostAgentParams) (*PostAgentNoContent, error)

PostAgent registers new agent

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	PostAgent(params *PostAgentParams) (*PostAgentNoContent, 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 reg agent API client.

type PostAgentNoContent

type PostAgentNoContent struct {
}

PostAgentNoContent handles this case with default header values.

OK No Content

func NewPostAgentNoContent

func NewPostAgentNoContent() *PostAgentNoContent

NewPostAgentNoContent creates a PostAgentNoContent with default headers values

func (*PostAgentNoContent) Error

func (o *PostAgentNoContent) Error() string

type PostAgentParams

type PostAgentParams struct {

	/*Body*/
	Body *models.RequestAgent

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

PostAgentParams contains all the parameters to send to the API endpoint for the post agent operation typically these are written to a http.Request

func NewPostAgentParams

func NewPostAgentParams() *PostAgentParams

NewPostAgentParams creates a new PostAgentParams object with the default values initialized.

func NewPostAgentParamsWithContext

func NewPostAgentParamsWithContext(ctx context.Context) *PostAgentParams

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

func NewPostAgentParamsWithHTTPClient

func NewPostAgentParamsWithHTTPClient(client *http.Client) *PostAgentParams

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

func NewPostAgentParamsWithTimeout

func NewPostAgentParamsWithTimeout(timeout time.Duration) *PostAgentParams

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

func (*PostAgentParams) SetBody

func (o *PostAgentParams) SetBody(body *models.RequestAgent)

SetBody adds the body to the post agent params

func (*PostAgentParams) SetContext

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

SetContext adds the context to the post agent params

func (*PostAgentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post agent params

func (*PostAgentParams) SetTimeout

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

SetTimeout adds the timeout to the post agent params

func (*PostAgentParams) WithBody

func (o *PostAgentParams) WithBody(body *models.RequestAgent) *PostAgentParams

WithBody adds the body to the post agent params

func (*PostAgentParams) WithContext

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

WithContext adds the context to the post agent params

func (*PostAgentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post agent params

func (*PostAgentParams) WithTimeout

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

WithTimeout adds the timeout to the post agent params

func (*PostAgentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAgentReader

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

PostAgentReader is a Reader for the PostAgent structure.

func (*PostAgentReader) ReadResponse

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