endpoints

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 11 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 endpoints API

func New

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

New creates a new endpoints API client.

func (*Client) EndpointAccessUpdate

func (a *Client) EndpointAccessUpdate(params *EndpointAccessUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*EndpointAccessUpdateOK, error)

EndpointAccessUpdate manages accesses to an endpoint

Manage user and team accesses to an endpoint. **Access policy**: administrator

func (*Client) EndpointCreate

func (a *Client) EndpointCreate(params *EndpointCreateParams, authInfo runtime.ClientAuthInfoWriter) (*EndpointCreateOK, error)

EndpointCreate creates a new endpoint

Create a new endpoint that will be used to manage a Docker environment. **Access policy**: administrator

func (*Client) EndpointDelete

func (a *Client) EndpointDelete(params *EndpointDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*EndpointDeleteNoContent, error)

EndpointDelete removes an endpoint

Remove an endpoint. **Access policy**: administrator

func (*Client) EndpointInspect

func (a *Client) EndpointInspect(params *EndpointInspectParams, authInfo runtime.ClientAuthInfoWriter) (*EndpointInspectOK, error)

EndpointInspect inspects an endpoint

Retrieve details abount an endpoint. **Access policy**: restricted

func (*Client) EndpointJob

func (a *Client) EndpointJob(params *EndpointJobParams, authInfo runtime.ClientAuthInfoWriter) (*EndpointJobOK, error)

EndpointJob executes a job on the endpoint host

Execute a job (script) on the underlying host of the endpoint. **Access policy**: administrator

func (*Client) EndpointList

func (a *Client) EndpointList(params *EndpointListParams, authInfo runtime.ClientAuthInfoWriter) (*EndpointListOK, error)

EndpointList lists endpoints

List all endpoints based on the current user authorizations. Will return all endpoints if using an administrator account otherwise it will only return authorized endpoints. **Access policy**: restricted

func (*Client) EndpointUpdate

func (a *Client) EndpointUpdate(params *EndpointUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*EndpointUpdateOK, error)

EndpointUpdate updates an endpoint

Update an endpoint. **Access policy**: administrator

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type EndpointAccessUpdateBadRequest

type EndpointAccessUpdateBadRequest struct {
	Payload *models.GenericError
}

EndpointAccessUpdateBadRequest handles this case with default header values.

Invalid request

func NewEndpointAccessUpdateBadRequest

func NewEndpointAccessUpdateBadRequest() *EndpointAccessUpdateBadRequest

NewEndpointAccessUpdateBadRequest creates a EndpointAccessUpdateBadRequest with default headers values

func (*EndpointAccessUpdateBadRequest) Error

type EndpointAccessUpdateInternalServerError

type EndpointAccessUpdateInternalServerError struct {
	Payload *models.GenericError
}

EndpointAccessUpdateInternalServerError handles this case with default header values.

Server error

func NewEndpointAccessUpdateInternalServerError

func NewEndpointAccessUpdateInternalServerError() *EndpointAccessUpdateInternalServerError

NewEndpointAccessUpdateInternalServerError creates a EndpointAccessUpdateInternalServerError with default headers values

func (*EndpointAccessUpdateInternalServerError) Error

type EndpointAccessUpdateNotFound

type EndpointAccessUpdateNotFound struct {
	Payload *models.GenericError
}

EndpointAccessUpdateNotFound handles this case with default header values.

Endpoint not found

func NewEndpointAccessUpdateNotFound

func NewEndpointAccessUpdateNotFound() *EndpointAccessUpdateNotFound

NewEndpointAccessUpdateNotFound creates a EndpointAccessUpdateNotFound with default headers values

func (*EndpointAccessUpdateNotFound) Error

type EndpointAccessUpdateOK

type EndpointAccessUpdateOK struct {
	Payload *models.Endpoint
}

EndpointAccessUpdateOK handles this case with default header values.

Success

func NewEndpointAccessUpdateOK

func NewEndpointAccessUpdateOK() *EndpointAccessUpdateOK

NewEndpointAccessUpdateOK creates a EndpointAccessUpdateOK with default headers values

func (*EndpointAccessUpdateOK) Error

func (o *EndpointAccessUpdateOK) Error() string

type EndpointAccessUpdateParams

type EndpointAccessUpdateParams struct {

	/*Body
	  Authorizations details

	*/
	Body *models.EndpointAccessUpdateRequest
	/*ID
	  Endpoint identifier

	*/
	ID int64

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

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

func NewEndpointAccessUpdateParams

func NewEndpointAccessUpdateParams() *EndpointAccessUpdateParams

NewEndpointAccessUpdateParams creates a new EndpointAccessUpdateParams object with the default values initialized.

func NewEndpointAccessUpdateParamsWithContext

func NewEndpointAccessUpdateParamsWithContext(ctx context.Context) *EndpointAccessUpdateParams

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

func NewEndpointAccessUpdateParamsWithHTTPClient

func NewEndpointAccessUpdateParamsWithHTTPClient(client *http.Client) *EndpointAccessUpdateParams

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

func NewEndpointAccessUpdateParamsWithTimeout

func NewEndpointAccessUpdateParamsWithTimeout(timeout time.Duration) *EndpointAccessUpdateParams

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

func (*EndpointAccessUpdateParams) SetBody

SetBody adds the body to the endpoint access update params

func (*EndpointAccessUpdateParams) SetContext

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

SetContext adds the context to the endpoint access update params

func (*EndpointAccessUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the endpoint access update params

func (*EndpointAccessUpdateParams) SetID

func (o *EndpointAccessUpdateParams) SetID(id int64)

SetID adds the id to the endpoint access update params

func (*EndpointAccessUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the endpoint access update params

func (*EndpointAccessUpdateParams) WithBody

WithBody adds the body to the endpoint access update params

func (*EndpointAccessUpdateParams) WithContext

WithContext adds the context to the endpoint access update params

func (*EndpointAccessUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the endpoint access update params

func (*EndpointAccessUpdateParams) WithID

WithID adds the id to the endpoint access update params

func (*EndpointAccessUpdateParams) WithTimeout

WithTimeout adds the timeout to the endpoint access update params

func (*EndpointAccessUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EndpointAccessUpdateReader

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

EndpointAccessUpdateReader is a Reader for the EndpointAccessUpdate structure.

func (*EndpointAccessUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EndpointCreateBadRequest

type EndpointCreateBadRequest struct {
	Payload *models.GenericError
}

EndpointCreateBadRequest handles this case with default header values.

Invalid request

func NewEndpointCreateBadRequest

func NewEndpointCreateBadRequest() *EndpointCreateBadRequest

NewEndpointCreateBadRequest creates a EndpointCreateBadRequest with default headers values

func (*EndpointCreateBadRequest) Error

func (o *EndpointCreateBadRequest) Error() string

type EndpointCreateInternalServerError

type EndpointCreateInternalServerError struct {
	Payload *models.GenericError
}

EndpointCreateInternalServerError handles this case with default header values.

Server error

func NewEndpointCreateInternalServerError

func NewEndpointCreateInternalServerError() *EndpointCreateInternalServerError

NewEndpointCreateInternalServerError creates a EndpointCreateInternalServerError with default headers values

func (*EndpointCreateInternalServerError) Error

type EndpointCreateOK

type EndpointCreateOK struct {
	Payload *models.Endpoint
}

EndpointCreateOK handles this case with default header values.

Success

func NewEndpointCreateOK

func NewEndpointCreateOK() *EndpointCreateOK

NewEndpointCreateOK creates a EndpointCreateOK with default headers values

func (*EndpointCreateOK) Error

func (o *EndpointCreateOK) Error() string

type EndpointCreateParams

type EndpointCreateParams struct {

	/*AzureApplicationID
	  Azure application ID. Required if endpoint type is set to 3

	*/
	AzureApplicationID *string
	/*AzureAuthenticationKey
	  Azure authentication key. Required if endpoint type is set to 3

	*/
	AzureAuthenticationKey *string
	/*AzureTenantID
	  Azure tenant ID. Required if endpoint type is set to 3

	*/
	AzureTenantID *string
	/*EndpointType
	  Environment type. Value must be one of: 1 (Docker environment), 2 (Agent environment) or 3 (Azure environment)

	*/
	EndpointType int64
	/*GroupID
	  Endpoint group identifier. If not specified will default to 1 (unassigned).

	*/
	GroupID *string
	/*Name
	  Name that will be used to identify this endpoint (example: my-endpoint)

	*/
	Name string
	/*PublicURL
	  URL or IP address where exposed containers will be reachable. Defaults to URL if not specified (example: docker.mydomain.tld:2375)

	*/
	PublicURL *string
	/*TLS
	  Require TLS to connect against this endpoint (example: true)

	*/
	TLS *string
	/*TLSCACertFile
	  TLS CA certificate file

	*/
	TLSCACertFile runtime.NamedReadCloser
	/*TLSCertFile
	  TLS client certificate file

	*/
	TLSCertFile runtime.NamedReadCloser
	/*TLSKeyFile
	  TLS client key file

	*/
	TLSKeyFile runtime.NamedReadCloser
	/*TLSSkipClientVerify
	  Skip client verification when using TLS (example: false)

	*/
	TLSSkipClientVerify *string
	/*TLSSkipVerify
	  Skip server verification when using TLS (example: false)

	*/
	TLSSkipVerify *string
	/*URL
	  URL or IP address of a Docker host (example: docker.mydomain.tld:2375). Defaults to local if not specified (Linux: /var/run/docker.sock, Windows: //./pipe/docker_engine)

	*/
	URL *string

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

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

func NewEndpointCreateParams

func NewEndpointCreateParams() *EndpointCreateParams

NewEndpointCreateParams creates a new EndpointCreateParams object with the default values initialized.

func NewEndpointCreateParamsWithContext

func NewEndpointCreateParamsWithContext(ctx context.Context) *EndpointCreateParams

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

func NewEndpointCreateParamsWithHTTPClient

func NewEndpointCreateParamsWithHTTPClient(client *http.Client) *EndpointCreateParams

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

func NewEndpointCreateParamsWithTimeout

func NewEndpointCreateParamsWithTimeout(timeout time.Duration) *EndpointCreateParams

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

func (*EndpointCreateParams) SetAzureApplicationID

func (o *EndpointCreateParams) SetAzureApplicationID(azureApplicationID *string)

SetAzureApplicationID adds the azureApplicationId to the endpoint create params

func (*EndpointCreateParams) SetAzureAuthenticationKey

func (o *EndpointCreateParams) SetAzureAuthenticationKey(azureAuthenticationKey *string)

SetAzureAuthenticationKey adds the azureAuthenticationKey to the endpoint create params

func (*EndpointCreateParams) SetAzureTenantID

func (o *EndpointCreateParams) SetAzureTenantID(azureTenantID *string)

SetAzureTenantID adds the azureTenantId to the endpoint create params

func (*EndpointCreateParams) SetContext

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

SetContext adds the context to the endpoint create params

func (*EndpointCreateParams) SetEndpointType

func (o *EndpointCreateParams) SetEndpointType(endpointType int64)

SetEndpointType adds the endpointType to the endpoint create params

func (*EndpointCreateParams) SetGroupID

func (o *EndpointCreateParams) SetGroupID(groupID *string)

SetGroupID adds the groupId to the endpoint create params

func (*EndpointCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the endpoint create params

func (*EndpointCreateParams) SetName

func (o *EndpointCreateParams) SetName(name string)

SetName adds the name to the endpoint create params

func (*EndpointCreateParams) SetPublicURL

func (o *EndpointCreateParams) SetPublicURL(publicURL *string)

SetPublicURL adds the publicUrl to the endpoint create params

func (*EndpointCreateParams) SetTLS

func (o *EndpointCreateParams) SetTLS(tls *string)

SetTLS adds the tls to the endpoint create params

func (*EndpointCreateParams) SetTLSCACertFile

func (o *EndpointCreateParams) SetTLSCACertFile(tLSCACertFile runtime.NamedReadCloser)

SetTLSCACertFile adds the tlsCACertFile to the endpoint create params

func (*EndpointCreateParams) SetTLSCertFile

func (o *EndpointCreateParams) SetTLSCertFile(tLSCertFile runtime.NamedReadCloser)

SetTLSCertFile adds the tlsCertFile to the endpoint create params

func (*EndpointCreateParams) SetTLSKeyFile

func (o *EndpointCreateParams) SetTLSKeyFile(tLSKeyFile runtime.NamedReadCloser)

SetTLSKeyFile adds the tlsKeyFile to the endpoint create params

func (*EndpointCreateParams) SetTLSSkipClientVerify

func (o *EndpointCreateParams) SetTLSSkipClientVerify(tLSSkipClientVerify *string)

SetTLSSkipClientVerify adds the tlsSkipClientVerify to the endpoint create params

func (*EndpointCreateParams) SetTLSSkipVerify

func (o *EndpointCreateParams) SetTLSSkipVerify(tLSSkipVerify *string)

SetTLSSkipVerify adds the tlsSkipVerify to the endpoint create params

func (*EndpointCreateParams) SetTimeout

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

SetTimeout adds the timeout to the endpoint create params

func (*EndpointCreateParams) SetURL

func (o *EndpointCreateParams) SetURL(url *string)

SetURL adds the url to the endpoint create params

func (*EndpointCreateParams) WithAzureApplicationID

func (o *EndpointCreateParams) WithAzureApplicationID(azureApplicationID *string) *EndpointCreateParams

WithAzureApplicationID adds the azureApplicationID to the endpoint create params

func (*EndpointCreateParams) WithAzureAuthenticationKey

func (o *EndpointCreateParams) WithAzureAuthenticationKey(azureAuthenticationKey *string) *EndpointCreateParams

WithAzureAuthenticationKey adds the azureAuthenticationKey to the endpoint create params

func (*EndpointCreateParams) WithAzureTenantID

func (o *EndpointCreateParams) WithAzureTenantID(azureTenantID *string) *EndpointCreateParams

WithAzureTenantID adds the azureTenantID to the endpoint create params

func (*EndpointCreateParams) WithContext

WithContext adds the context to the endpoint create params

func (*EndpointCreateParams) WithEndpointType

func (o *EndpointCreateParams) WithEndpointType(endpointType int64) *EndpointCreateParams

WithEndpointType adds the endpointType to the endpoint create params

func (*EndpointCreateParams) WithGroupID

func (o *EndpointCreateParams) WithGroupID(groupID *string) *EndpointCreateParams

WithGroupID adds the groupID to the endpoint create params

func (*EndpointCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the endpoint create params

func (*EndpointCreateParams) WithName

WithName adds the name to the endpoint create params

func (*EndpointCreateParams) WithPublicURL

func (o *EndpointCreateParams) WithPublicURL(publicURL *string) *EndpointCreateParams

WithPublicURL adds the publicURL to the endpoint create params

func (*EndpointCreateParams) WithTLS

WithTLS adds the tls to the endpoint create params

func (*EndpointCreateParams) WithTLSCACertFile

func (o *EndpointCreateParams) WithTLSCACertFile(tLSCACertFile runtime.NamedReadCloser) *EndpointCreateParams

WithTLSCACertFile adds the tLSCACertFile to the endpoint create params

func (*EndpointCreateParams) WithTLSCertFile

func (o *EndpointCreateParams) WithTLSCertFile(tLSCertFile runtime.NamedReadCloser) *EndpointCreateParams

WithTLSCertFile adds the tLSCertFile to the endpoint create params

func (*EndpointCreateParams) WithTLSKeyFile

func (o *EndpointCreateParams) WithTLSKeyFile(tLSKeyFile runtime.NamedReadCloser) *EndpointCreateParams

WithTLSKeyFile adds the tLSKeyFile to the endpoint create params

func (*EndpointCreateParams) WithTLSSkipClientVerify

func (o *EndpointCreateParams) WithTLSSkipClientVerify(tLSSkipClientVerify *string) *EndpointCreateParams

WithTLSSkipClientVerify adds the tLSSkipClientVerify to the endpoint create params

func (*EndpointCreateParams) WithTLSSkipVerify

func (o *EndpointCreateParams) WithTLSSkipVerify(tLSSkipVerify *string) *EndpointCreateParams

WithTLSSkipVerify adds the tLSSkipVerify to the endpoint create params

func (*EndpointCreateParams) WithTimeout

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

WithTimeout adds the timeout to the endpoint create params

func (*EndpointCreateParams) WithURL

WithURL adds the url to the endpoint create params

func (*EndpointCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EndpointCreateReader

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

EndpointCreateReader is a Reader for the EndpointCreate structure.

func (*EndpointCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EndpointCreateServiceUnavailable

type EndpointCreateServiceUnavailable struct {
	Payload *models.GenericError
}

EndpointCreateServiceUnavailable handles this case with default header values.

Endpoint management disabled

func NewEndpointCreateServiceUnavailable

func NewEndpointCreateServiceUnavailable() *EndpointCreateServiceUnavailable

NewEndpointCreateServiceUnavailable creates a EndpointCreateServiceUnavailable with default headers values

func (*EndpointCreateServiceUnavailable) Error

type EndpointDeleteBadRequest

type EndpointDeleteBadRequest struct {
	Payload *models.GenericError
}

EndpointDeleteBadRequest handles this case with default header values.

Invalid request

func NewEndpointDeleteBadRequest

func NewEndpointDeleteBadRequest() *EndpointDeleteBadRequest

NewEndpointDeleteBadRequest creates a EndpointDeleteBadRequest with default headers values

func (*EndpointDeleteBadRequest) Error

func (o *EndpointDeleteBadRequest) Error() string

type EndpointDeleteInternalServerError

type EndpointDeleteInternalServerError struct {
	Payload *models.GenericError
}

EndpointDeleteInternalServerError handles this case with default header values.

Server error

func NewEndpointDeleteInternalServerError

func NewEndpointDeleteInternalServerError() *EndpointDeleteInternalServerError

NewEndpointDeleteInternalServerError creates a EndpointDeleteInternalServerError with default headers values

func (*EndpointDeleteInternalServerError) Error

type EndpointDeleteNoContent

type EndpointDeleteNoContent struct {
}

EndpointDeleteNoContent handles this case with default header values.

Success

func NewEndpointDeleteNoContent

func NewEndpointDeleteNoContent() *EndpointDeleteNoContent

NewEndpointDeleteNoContent creates a EndpointDeleteNoContent with default headers values

func (*EndpointDeleteNoContent) Error

func (o *EndpointDeleteNoContent) Error() string

type EndpointDeleteNotFound

type EndpointDeleteNotFound struct {
	Payload *models.GenericError
}

EndpointDeleteNotFound handles this case with default header values.

Endpoint not found

func NewEndpointDeleteNotFound

func NewEndpointDeleteNotFound() *EndpointDeleteNotFound

NewEndpointDeleteNotFound creates a EndpointDeleteNotFound with default headers values

func (*EndpointDeleteNotFound) Error

func (o *EndpointDeleteNotFound) Error() string

type EndpointDeleteParams

type EndpointDeleteParams struct {

	/*ID
	  Endpoint identifier

	*/
	ID int64

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

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

func NewEndpointDeleteParams

func NewEndpointDeleteParams() *EndpointDeleteParams

NewEndpointDeleteParams creates a new EndpointDeleteParams object with the default values initialized.

func NewEndpointDeleteParamsWithContext

func NewEndpointDeleteParamsWithContext(ctx context.Context) *EndpointDeleteParams

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

func NewEndpointDeleteParamsWithHTTPClient

func NewEndpointDeleteParamsWithHTTPClient(client *http.Client) *EndpointDeleteParams

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

func NewEndpointDeleteParamsWithTimeout

func NewEndpointDeleteParamsWithTimeout(timeout time.Duration) *EndpointDeleteParams

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

func (*EndpointDeleteParams) SetContext

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

SetContext adds the context to the endpoint delete params

func (*EndpointDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the endpoint delete params

func (*EndpointDeleteParams) SetID

func (o *EndpointDeleteParams) SetID(id int64)

SetID adds the id to the endpoint delete params

func (*EndpointDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the endpoint delete params

func (*EndpointDeleteParams) WithContext

WithContext adds the context to the endpoint delete params

func (*EndpointDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the endpoint delete params

func (*EndpointDeleteParams) WithID

WithID adds the id to the endpoint delete params

func (*EndpointDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the endpoint delete params

func (*EndpointDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EndpointDeleteReader

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

EndpointDeleteReader is a Reader for the EndpointDelete structure.

func (*EndpointDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EndpointDeleteServiceUnavailable

type EndpointDeleteServiceUnavailable struct {
	Payload *models.GenericError
}

EndpointDeleteServiceUnavailable handles this case with default header values.

Endpoint management disabled

func NewEndpointDeleteServiceUnavailable

func NewEndpointDeleteServiceUnavailable() *EndpointDeleteServiceUnavailable

NewEndpointDeleteServiceUnavailable creates a EndpointDeleteServiceUnavailable with default headers values

func (*EndpointDeleteServiceUnavailable) Error

type EndpointInspectBadRequest

type EndpointInspectBadRequest struct {
	Payload *models.GenericError
}

EndpointInspectBadRequest handles this case with default header values.

Invalid request

func NewEndpointInspectBadRequest

func NewEndpointInspectBadRequest() *EndpointInspectBadRequest

NewEndpointInspectBadRequest creates a EndpointInspectBadRequest with default headers values

func (*EndpointInspectBadRequest) Error

func (o *EndpointInspectBadRequest) Error() string

type EndpointInspectInternalServerError

type EndpointInspectInternalServerError struct {
	Payload *models.GenericError
}

EndpointInspectInternalServerError handles this case with default header values.

Server error

func NewEndpointInspectInternalServerError

func NewEndpointInspectInternalServerError() *EndpointInspectInternalServerError

NewEndpointInspectInternalServerError creates a EndpointInspectInternalServerError with default headers values

func (*EndpointInspectInternalServerError) Error

type EndpointInspectNotFound

type EndpointInspectNotFound struct {
	Payload *models.GenericError
}

EndpointInspectNotFound handles this case with default header values.

Endpoint not found

func NewEndpointInspectNotFound

func NewEndpointInspectNotFound() *EndpointInspectNotFound

NewEndpointInspectNotFound creates a EndpointInspectNotFound with default headers values

func (*EndpointInspectNotFound) Error

func (o *EndpointInspectNotFound) Error() string

type EndpointInspectOK

type EndpointInspectOK struct {
	Payload *models.Endpoint
}

EndpointInspectOK handles this case with default header values.

Success

func NewEndpointInspectOK

func NewEndpointInspectOK() *EndpointInspectOK

NewEndpointInspectOK creates a EndpointInspectOK with default headers values

func (*EndpointInspectOK) Error

func (o *EndpointInspectOK) Error() string

type EndpointInspectParams

type EndpointInspectParams struct {

	/*ID
	  Endpoint identifier

	*/
	ID int64

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

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

func NewEndpointInspectParams

func NewEndpointInspectParams() *EndpointInspectParams

NewEndpointInspectParams creates a new EndpointInspectParams object with the default values initialized.

func NewEndpointInspectParamsWithContext

func NewEndpointInspectParamsWithContext(ctx context.Context) *EndpointInspectParams

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

func NewEndpointInspectParamsWithHTTPClient

func NewEndpointInspectParamsWithHTTPClient(client *http.Client) *EndpointInspectParams

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

func NewEndpointInspectParamsWithTimeout

func NewEndpointInspectParamsWithTimeout(timeout time.Duration) *EndpointInspectParams

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

func (*EndpointInspectParams) SetContext

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

SetContext adds the context to the endpoint inspect params

func (*EndpointInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the endpoint inspect params

func (*EndpointInspectParams) SetID

func (o *EndpointInspectParams) SetID(id int64)

SetID adds the id to the endpoint inspect params

func (*EndpointInspectParams) SetTimeout

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

SetTimeout adds the timeout to the endpoint inspect params

func (*EndpointInspectParams) WithContext

WithContext adds the context to the endpoint inspect params

func (*EndpointInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the endpoint inspect params

func (*EndpointInspectParams) WithID

WithID adds the id to the endpoint inspect params

func (*EndpointInspectParams) WithTimeout

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

WithTimeout adds the timeout to the endpoint inspect params

func (*EndpointInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EndpointInspectReader

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

EndpointInspectReader is a Reader for the EndpointInspect structure.

func (*EndpointInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EndpointJobBadRequest

type EndpointJobBadRequest struct {
	Payload *models.GenericError
}

EndpointJobBadRequest handles this case with default header values.

Invalid request

func NewEndpointJobBadRequest

func NewEndpointJobBadRequest() *EndpointJobBadRequest

NewEndpointJobBadRequest creates a EndpointJobBadRequest with default headers values

func (*EndpointJobBadRequest) Error

func (o *EndpointJobBadRequest) Error() string

type EndpointJobForbidden

type EndpointJobForbidden struct {
	Payload *models.GenericError
}

EndpointJobForbidden handles this case with default header values.

Unauthorized

func NewEndpointJobForbidden

func NewEndpointJobForbidden() *EndpointJobForbidden

NewEndpointJobForbidden creates a EndpointJobForbidden with default headers values

func (*EndpointJobForbidden) Error

func (o *EndpointJobForbidden) Error() string

type EndpointJobInternalServerError

type EndpointJobInternalServerError struct {
	Payload *models.GenericError
}

EndpointJobInternalServerError handles this case with default header values.

Server error

func NewEndpointJobInternalServerError

func NewEndpointJobInternalServerError() *EndpointJobInternalServerError

NewEndpointJobInternalServerError creates a EndpointJobInternalServerError with default headers values

func (*EndpointJobInternalServerError) Error

type EndpointJobNotFound

type EndpointJobNotFound struct {
	Payload *models.GenericError
}

EndpointJobNotFound handles this case with default header values.

Endpoint not found

func NewEndpointJobNotFound

func NewEndpointJobNotFound() *EndpointJobNotFound

NewEndpointJobNotFound creates a EndpointJobNotFound with default headers values

func (*EndpointJobNotFound) Error

func (o *EndpointJobNotFound) Error() string

type EndpointJobOK

type EndpointJobOK struct {
	Payload *models.Endpoint
}

EndpointJobOK handles this case with default header values.

Success

func NewEndpointJobOK

func NewEndpointJobOK() *EndpointJobOK

NewEndpointJobOK creates a EndpointJobOK with default headers values

func (*EndpointJobOK) Error

func (o *EndpointJobOK) Error() string

type EndpointJobParams

type EndpointJobParams struct {

	/*Body
	  Job details. Required when method equals string.

	*/
	Body *models.EndpointJobRequest
	/*ID
	  Endpoint identifier

	*/
	ID int64
	/*Method
	  Job execution method. Possible values: string. This API does not support file mode

	*/
	Method string
	/*NodeName
	  Optional. Hostname of a node when targeting a Portainer agent cluster.

	*/
	NodeName string

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

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

func NewEndpointJobParams

func NewEndpointJobParams() *EndpointJobParams

NewEndpointJobParams creates a new EndpointJobParams object with the default values initialized.

func NewEndpointJobParamsWithContext

func NewEndpointJobParamsWithContext(ctx context.Context) *EndpointJobParams

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

func NewEndpointJobParamsWithHTTPClient

func NewEndpointJobParamsWithHTTPClient(client *http.Client) *EndpointJobParams

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

func NewEndpointJobParamsWithTimeout

func NewEndpointJobParamsWithTimeout(timeout time.Duration) *EndpointJobParams

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

func (*EndpointJobParams) SetBody

func (o *EndpointJobParams) SetBody(body *models.EndpointJobRequest)

SetBody adds the body to the endpoint job params

func (*EndpointJobParams) SetContext

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

SetContext adds the context to the endpoint job params

func (*EndpointJobParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the endpoint job params

func (*EndpointJobParams) SetID

func (o *EndpointJobParams) SetID(id int64)

SetID adds the id to the endpoint job params

func (*EndpointJobParams) SetMethod

func (o *EndpointJobParams) SetMethod(method string)

SetMethod adds the method to the endpoint job params

func (*EndpointJobParams) SetNodeName

func (o *EndpointJobParams) SetNodeName(nodeName string)

SetNodeName adds the nodeName to the endpoint job params

func (*EndpointJobParams) SetTimeout

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

SetTimeout adds the timeout to the endpoint job params

func (*EndpointJobParams) WithBody

WithBody adds the body to the endpoint job params

func (*EndpointJobParams) WithContext

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

WithContext adds the context to the endpoint job params

func (*EndpointJobParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the endpoint job params

func (*EndpointJobParams) WithID

func (o *EndpointJobParams) WithID(id int64) *EndpointJobParams

WithID adds the id to the endpoint job params

func (*EndpointJobParams) WithMethod

func (o *EndpointJobParams) WithMethod(method string) *EndpointJobParams

WithMethod adds the method to the endpoint job params

func (*EndpointJobParams) WithNodeName

func (o *EndpointJobParams) WithNodeName(nodeName string) *EndpointJobParams

WithNodeName adds the nodeName to the endpoint job params

func (*EndpointJobParams) WithTimeout

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

WithTimeout adds the timeout to the endpoint job params

func (*EndpointJobParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EndpointJobReader

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

EndpointJobReader is a Reader for the EndpointJob structure.

func (*EndpointJobReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EndpointListInternalServerError

type EndpointListInternalServerError struct {
	Payload *models.GenericError
}

EndpointListInternalServerError handles this case with default header values.

Server error

func NewEndpointListInternalServerError

func NewEndpointListInternalServerError() *EndpointListInternalServerError

NewEndpointListInternalServerError creates a EndpointListInternalServerError with default headers values

func (*EndpointListInternalServerError) Error

type EndpointListOK

type EndpointListOK struct {
	Payload models.EndpointListResponse
}

EndpointListOK handles this case with default header values.

Success

func NewEndpointListOK

func NewEndpointListOK() *EndpointListOK

NewEndpointListOK creates a EndpointListOK with default headers values

func (*EndpointListOK) Error

func (o *EndpointListOK) Error() string

type EndpointListParams

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

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

func NewEndpointListParams

func NewEndpointListParams() *EndpointListParams

NewEndpointListParams creates a new EndpointListParams object with the default values initialized.

func NewEndpointListParamsWithContext

func NewEndpointListParamsWithContext(ctx context.Context) *EndpointListParams

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

func NewEndpointListParamsWithHTTPClient

func NewEndpointListParamsWithHTTPClient(client *http.Client) *EndpointListParams

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

func NewEndpointListParamsWithTimeout

func NewEndpointListParamsWithTimeout(timeout time.Duration) *EndpointListParams

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

func (*EndpointListParams) SetContext

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

SetContext adds the context to the endpoint list params

func (*EndpointListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the endpoint list params

func (*EndpointListParams) SetTimeout

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

SetTimeout adds the timeout to the endpoint list params

func (*EndpointListParams) WithContext

WithContext adds the context to the endpoint list params

func (*EndpointListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the endpoint list params

func (*EndpointListParams) WithTimeout

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

WithTimeout adds the timeout to the endpoint list params

func (*EndpointListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EndpointListReader

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

EndpointListReader is a Reader for the EndpointList structure.

func (*EndpointListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EndpointUpdateBadRequest

type EndpointUpdateBadRequest struct {
	Payload *models.GenericError
}

EndpointUpdateBadRequest handles this case with default header values.

Invalid request

func NewEndpointUpdateBadRequest

func NewEndpointUpdateBadRequest() *EndpointUpdateBadRequest

NewEndpointUpdateBadRequest creates a EndpointUpdateBadRequest with default headers values

func (*EndpointUpdateBadRequest) Error

func (o *EndpointUpdateBadRequest) Error() string

type EndpointUpdateInternalServerError

type EndpointUpdateInternalServerError struct {
	Payload *models.GenericError
}

EndpointUpdateInternalServerError handles this case with default header values.

Server error

func NewEndpointUpdateInternalServerError

func NewEndpointUpdateInternalServerError() *EndpointUpdateInternalServerError

NewEndpointUpdateInternalServerError creates a EndpointUpdateInternalServerError with default headers values

func (*EndpointUpdateInternalServerError) Error

type EndpointUpdateNotFound

type EndpointUpdateNotFound struct {
	Payload *models.GenericError
}

EndpointUpdateNotFound handles this case with default header values.

Endpoint not found

func NewEndpointUpdateNotFound

func NewEndpointUpdateNotFound() *EndpointUpdateNotFound

NewEndpointUpdateNotFound creates a EndpointUpdateNotFound with default headers values

func (*EndpointUpdateNotFound) Error

func (o *EndpointUpdateNotFound) Error() string

type EndpointUpdateOK

type EndpointUpdateOK struct {
}

EndpointUpdateOK handles this case with default header values.

Success

func NewEndpointUpdateOK

func NewEndpointUpdateOK() *EndpointUpdateOK

NewEndpointUpdateOK creates a EndpointUpdateOK with default headers values

func (*EndpointUpdateOK) Error

func (o *EndpointUpdateOK) Error() string

type EndpointUpdateParams

type EndpointUpdateParams struct {

	/*Body
	  Endpoint details

	*/
	Body *models.EndpointUpdateRequest
	/*ID
	  Endpoint identifier

	*/
	ID int64

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

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

func NewEndpointUpdateParams

func NewEndpointUpdateParams() *EndpointUpdateParams

NewEndpointUpdateParams creates a new EndpointUpdateParams object with the default values initialized.

func NewEndpointUpdateParamsWithContext

func NewEndpointUpdateParamsWithContext(ctx context.Context) *EndpointUpdateParams

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

func NewEndpointUpdateParamsWithHTTPClient

func NewEndpointUpdateParamsWithHTTPClient(client *http.Client) *EndpointUpdateParams

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

func NewEndpointUpdateParamsWithTimeout

func NewEndpointUpdateParamsWithTimeout(timeout time.Duration) *EndpointUpdateParams

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

func (*EndpointUpdateParams) SetBody

SetBody adds the body to the endpoint update params

func (*EndpointUpdateParams) SetContext

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

SetContext adds the context to the endpoint update params

func (*EndpointUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the endpoint update params

func (*EndpointUpdateParams) SetID

func (o *EndpointUpdateParams) SetID(id int64)

SetID adds the id to the endpoint update params

func (*EndpointUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the endpoint update params

func (*EndpointUpdateParams) WithBody

WithBody adds the body to the endpoint update params

func (*EndpointUpdateParams) WithContext

WithContext adds the context to the endpoint update params

func (*EndpointUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the endpoint update params

func (*EndpointUpdateParams) WithID

WithID adds the id to the endpoint update params

func (*EndpointUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the endpoint update params

func (*EndpointUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EndpointUpdateReader

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

EndpointUpdateReader is a Reader for the EndpointUpdate structure.

func (*EndpointUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EndpointUpdateServiceUnavailable

type EndpointUpdateServiceUnavailable struct {
	Payload *models.GenericError
}

EndpointUpdateServiceUnavailable handles this case with default header values.

Endpoint management disabled

func NewEndpointUpdateServiceUnavailable

func NewEndpointUpdateServiceUnavailable() *EndpointUpdateServiceUnavailable

NewEndpointUpdateServiceUnavailable creates a EndpointUpdateServiceUnavailable with default headers values

func (*EndpointUpdateServiceUnavailable) Error

Jump to

Keyboard shortcuts

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