servers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MPL-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 CacheFlushByNameOK

type CacheFlushByNameOK struct {
	Payload *models.CacheFlushResult
}
CacheFlushByNameOK describes a response with status code 200, with default header values.

Flush successful

func NewCacheFlushByNameOK

func NewCacheFlushByNameOK() *CacheFlushByNameOK

NewCacheFlushByNameOK creates a CacheFlushByNameOK with default headers values

func (*CacheFlushByNameOK) Error

func (o *CacheFlushByNameOK) Error() string

func (*CacheFlushByNameOK) GetPayload

func (o *CacheFlushByNameOK) GetPayload() *models.CacheFlushResult

type CacheFlushByNameParams

type CacheFlushByNameParams struct {

	/* Domain.

	   The domain name to flush from the cache
	*/
	Domain string

	/* ServerID.

	   The id of the server to retrieve
	*/
	ServerID string

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

CacheFlushByNameParams contains all the parameters to send to the API endpoint

for the cache flush by name operation.

Typically these are written to a http.Request.

func NewCacheFlushByNameParams

func NewCacheFlushByNameParams() *CacheFlushByNameParams

NewCacheFlushByNameParams creates a new CacheFlushByNameParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCacheFlushByNameParamsWithContext

func NewCacheFlushByNameParamsWithContext(ctx context.Context) *CacheFlushByNameParams

NewCacheFlushByNameParamsWithContext creates a new CacheFlushByNameParams object with the ability to set a context for a request.

func NewCacheFlushByNameParamsWithHTTPClient

func NewCacheFlushByNameParamsWithHTTPClient(client *http.Client) *CacheFlushByNameParams

NewCacheFlushByNameParamsWithHTTPClient creates a new CacheFlushByNameParams object with the ability to set a custom HTTPClient for a request.

func NewCacheFlushByNameParamsWithTimeout

func NewCacheFlushByNameParamsWithTimeout(timeout time.Duration) *CacheFlushByNameParams

NewCacheFlushByNameParamsWithTimeout creates a new CacheFlushByNameParams object with the ability to set a timeout on a request.

func (*CacheFlushByNameParams) SetContext

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

SetContext adds the context to the cache flush by name params

func (*CacheFlushByNameParams) SetDefaults

func (o *CacheFlushByNameParams) SetDefaults()

SetDefaults hydrates default values in the cache flush by name params (not the query body).

All values with no default are reset to their zero value.

func (*CacheFlushByNameParams) SetDomain

func (o *CacheFlushByNameParams) SetDomain(domain string)

SetDomain adds the domain to the cache flush by name params

func (*CacheFlushByNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cache flush by name params

func (*CacheFlushByNameParams) SetServerID

func (o *CacheFlushByNameParams) SetServerID(serverID string)

SetServerID adds the serverId to the cache flush by name params

func (*CacheFlushByNameParams) SetTimeout

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

SetTimeout adds the timeout to the cache flush by name params

func (*CacheFlushByNameParams) WithContext

WithContext adds the context to the cache flush by name params

func (*CacheFlushByNameParams) WithDefaults

WithDefaults hydrates default values in the cache flush by name params (not the query body).

All values with no default are reset to their zero value.

func (*CacheFlushByNameParams) WithDomain

func (o *CacheFlushByNameParams) WithDomain(domain string) *CacheFlushByNameParams

WithDomain adds the domain to the cache flush by name params

func (*CacheFlushByNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cache flush by name params

func (*CacheFlushByNameParams) WithServerID

func (o *CacheFlushByNameParams) WithServerID(serverID string) *CacheFlushByNameParams

WithServerID adds the serverID to the cache flush by name params

func (*CacheFlushByNameParams) WithTimeout

WithTimeout adds the timeout to the cache flush by name params

func (*CacheFlushByNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CacheFlushByNameReader

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

CacheFlushByNameReader is a Reader for the CacheFlushByName structure.

func (*CacheFlushByNameReader) ReadResponse

func (o *CacheFlushByNameReader) 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 servers API

func (*Client) CacheFlushByName

func (a *Client) CacheFlushByName(params *CacheFlushByNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheFlushByNameOK, error)

CacheFlushByName flushes a cache entry by name

func (*Client) ListServer

func (a *Client) ListServer(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServerOK, error)

ListServer lists a server

func (*Client) ListServers

func (a *Client) ListServers(params *ListServersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServersOK, error)

ListServers lists all servers

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CacheFlushByName(params *CacheFlushByNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheFlushByNameOK, error)

	ListServer(params *ListServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServerOK, error)

	ListServers(params *ListServersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServersOK, 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 servers API client.

type ListServerOK

type ListServerOK struct {
	Payload *models.Server
}
ListServerOK describes a response with status code 200, with default header values.

An server

func NewListServerOK

func NewListServerOK() *ListServerOK

NewListServerOK creates a ListServerOK with default headers values

func (*ListServerOK) Error

func (o *ListServerOK) Error() string

func (*ListServerOK) GetPayload

func (o *ListServerOK) GetPayload() *models.Server

type ListServerParams

type ListServerParams struct {

	/* ServerID.

	   The id of the server to retrieve
	*/
	ServerID string

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

ListServerParams contains all the parameters to send to the API endpoint

for the list server operation.

Typically these are written to a http.Request.

func NewListServerParams

func NewListServerParams() *ListServerParams

NewListServerParams creates a new ListServerParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListServerParamsWithContext

func NewListServerParamsWithContext(ctx context.Context) *ListServerParams

NewListServerParamsWithContext creates a new ListServerParams object with the ability to set a context for a request.

func NewListServerParamsWithHTTPClient

func NewListServerParamsWithHTTPClient(client *http.Client) *ListServerParams

NewListServerParamsWithHTTPClient creates a new ListServerParams object with the ability to set a custom HTTPClient for a request.

func NewListServerParamsWithTimeout

func NewListServerParamsWithTimeout(timeout time.Duration) *ListServerParams

NewListServerParamsWithTimeout creates a new ListServerParams object with the ability to set a timeout on a request.

func (*ListServerParams) SetContext

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

SetContext adds the context to the list server params

func (*ListServerParams) SetDefaults

func (o *ListServerParams) SetDefaults()

SetDefaults hydrates default values in the list server params (not the query body).

All values with no default are reset to their zero value.

func (*ListServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list server params

func (*ListServerParams) SetServerID

func (o *ListServerParams) SetServerID(serverID string)

SetServerID adds the serverId to the list server params

func (*ListServerParams) SetTimeout

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

SetTimeout adds the timeout to the list server params

func (*ListServerParams) WithContext

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

WithContext adds the context to the list server params

func (*ListServerParams) WithDefaults

func (o *ListServerParams) WithDefaults() *ListServerParams

WithDefaults hydrates default values in the list server params (not the query body).

All values with no default are reset to their zero value.

func (*ListServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list server params

func (*ListServerParams) WithServerID

func (o *ListServerParams) WithServerID(serverID string) *ListServerParams

WithServerID adds the serverID to the list server params

func (*ListServerParams) WithTimeout

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

WithTimeout adds the timeout to the list server params

func (*ListServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListServerReader

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

ListServerReader is a Reader for the ListServer structure.

func (*ListServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServersOK

type ListServersOK struct {
	Payload []*models.Server
}
ListServersOK describes a response with status code 200, with default header values.

An array of servers

func NewListServersOK

func NewListServersOK() *ListServersOK

NewListServersOK creates a ListServersOK with default headers values

func (*ListServersOK) Error

func (o *ListServersOK) Error() string

func (*ListServersOK) GetPayload

func (o *ListServersOK) GetPayload() []*models.Server

type ListServersParams

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

ListServersParams contains all the parameters to send to the API endpoint

for the list servers operation.

Typically these are written to a http.Request.

func NewListServersParams

func NewListServersParams() *ListServersParams

NewListServersParams creates a new ListServersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListServersParamsWithContext

func NewListServersParamsWithContext(ctx context.Context) *ListServersParams

NewListServersParamsWithContext creates a new ListServersParams object with the ability to set a context for a request.

func NewListServersParamsWithHTTPClient

func NewListServersParamsWithHTTPClient(client *http.Client) *ListServersParams

NewListServersParamsWithHTTPClient creates a new ListServersParams object with the ability to set a custom HTTPClient for a request.

func NewListServersParamsWithTimeout

func NewListServersParamsWithTimeout(timeout time.Duration) *ListServersParams

NewListServersParamsWithTimeout creates a new ListServersParams object with the ability to set a timeout on a request.

func (*ListServersParams) SetContext

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

SetContext adds the context to the list servers params

func (*ListServersParams) SetDefaults

func (o *ListServersParams) SetDefaults()

SetDefaults hydrates default values in the list servers params (not the query body).

All values with no default are reset to their zero value.

func (*ListServersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list servers params

func (*ListServersParams) SetTimeout

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

SetTimeout adds the timeout to the list servers params

func (*ListServersParams) WithContext

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

WithContext adds the context to the list servers params

func (*ListServersParams) WithDefaults

func (o *ListServersParams) WithDefaults() *ListServersParams

WithDefaults hydrates default values in the list servers params (not the query body).

All values with no default are reset to their zero value.

func (*ListServersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list servers params

func (*ListServersParams) WithTimeout

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

WithTimeout adds the timeout to the list servers params

func (*ListServersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListServersReader

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

ListServersReader is a Reader for the ListServers structure.

func (*ListServersReader) ReadResponse

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