federation

package
v0.0.0-...-a39a1f1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.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 AddServerOK

type AddServerOK struct {
	Payload *models.Servers
}

AddServerOK handles this case with default header values.

successful operation

func NewAddServerOK

func NewAddServerOK() *AddServerOK

NewAddServerOK creates a AddServerOK with default headers values

func (*AddServerOK) Error

func (o *AddServerOK) Error() string

func (*AddServerOK) GetPayload

func (o *AddServerOK) GetPayload() *models.Servers

type AddServerParams

type AddServerParams struct {

	/*Body*/
	Body *models.Servers

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

AddServerParams contains all the parameters to send to the API endpoint for the add server operation typically these are written to a http.Request

func NewAddServerParams

func NewAddServerParams() *AddServerParams

NewAddServerParams creates a new AddServerParams object with the default values initialized.

func NewAddServerParamsWithContext

func NewAddServerParamsWithContext(ctx context.Context) *AddServerParams

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

func NewAddServerParamsWithHTTPClient

func NewAddServerParamsWithHTTPClient(client *http.Client) *AddServerParams

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

func NewAddServerParamsWithTimeout

func NewAddServerParamsWithTimeout(timeout time.Duration) *AddServerParams

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

func (*AddServerParams) SetBody

func (o *AddServerParams) SetBody(body *models.Servers)

SetBody adds the body to the add server params

func (*AddServerParams) SetContext

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

SetContext adds the context to the add server params

func (*AddServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add server params

func (*AddServerParams) SetTimeout

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

SetTimeout adds the timeout to the add server params

func (*AddServerParams) WithBody

func (o *AddServerParams) WithBody(body *models.Servers) *AddServerParams

WithBody adds the body to the add server params

func (*AddServerParams) WithContext

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

WithContext adds the context to the add server params

func (*AddServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add server params

func (*AddServerParams) WithTimeout

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

WithTimeout adds the timeout to the add server params

func (*AddServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddServerReader

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

AddServerReader is a Reader for the AddServer structure.

func (*AddServerReader) ReadResponse

func (o *AddServerReader) 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 federation API

func (*Client) AddServer

func (a *Client) AddServer(params *AddServerParams, authInfo runtime.ClientAuthInfoWriter) (*AddServerOK, error)

AddServer add server API

func (*Client) Servers

func (a *Client) Servers(params *ServersParams, authInfo runtime.ClientAuthInfoWriter) (*ServersOK, error)

Servers servers API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AddServer(params *AddServerParams, authInfo runtime.ClientAuthInfoWriter) (*AddServerOK, error)

	Servers(params *ServersParams, authInfo runtime.ClientAuthInfoWriter) (*ServersOK, 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 federation API client.

type ServersOK

type ServersOK struct {
	Payload *models.Servers
}

ServersOK handles this case with default header values.

successful operation

func NewServersOK

func NewServersOK() *ServersOK

NewServersOK creates a ServersOK with default headers values

func (*ServersOK) Error

func (o *ServersOK) Error() string

func (*ServersOK) GetPayload

func (o *ServersOK) GetPayload() *models.Servers

type ServersParams

type ServersParams struct {

	/*Fields*/
	Fields *string

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

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

func NewServersParams

func NewServersParams() *ServersParams

NewServersParams creates a new ServersParams object with the default values initialized.

func NewServersParamsWithContext

func NewServersParamsWithContext(ctx context.Context) *ServersParams

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

func NewServersParamsWithHTTPClient

func NewServersParamsWithHTTPClient(client *http.Client) *ServersParams

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

func NewServersParamsWithTimeout

func NewServersParamsWithTimeout(timeout time.Duration) *ServersParams

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

func (*ServersParams) SetContext

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

SetContext adds the context to the servers params

func (*ServersParams) SetFields

func (o *ServersParams) SetFields(fields *string)

SetFields adds the fields to the servers params

func (*ServersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the servers params

func (*ServersParams) SetTimeout

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

SetTimeout adds the timeout to the servers params

func (*ServersParams) WithContext

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

WithContext adds the context to the servers params

func (*ServersParams) WithFields

func (o *ServersParams) WithFields(fields *string) *ServersParams

WithFields adds the fields to the servers params

func (*ServersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the servers params

func (*ServersParams) WithTimeout

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

WithTimeout adds the timeout to the servers params

func (*ServersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ServersReader

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

ServersReader is a Reader for the Servers structure.

func (*ServersReader) ReadResponse

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