cache_flush

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 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 CacheFlushCreateCreated

type CacheFlushCreateCreated struct {
	Payload models.ProtobufEmpty
}
CacheFlushCreateCreated describes a response with status code 201, with default header values.

POST operation response

func NewCacheFlushCreateCreated

func NewCacheFlushCreateCreated() *CacheFlushCreateCreated

NewCacheFlushCreateCreated creates a CacheFlushCreateCreated with default headers values

func (*CacheFlushCreateCreated) Error

func (o *CacheFlushCreateCreated) Error() string

func (*CacheFlushCreateCreated) GetPayload

type CacheFlushCreateParams

type CacheFlushCreateParams struct {

	// Body.
	Body *models.ConfigCacheFlush

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

CacheFlushCreateParams contains all the parameters to send to the API endpoint

for the cache flush create operation.

Typically these are written to a http.Request.

func NewCacheFlushCreateParams

func NewCacheFlushCreateParams() *CacheFlushCreateParams

NewCacheFlushCreateParams creates a new CacheFlushCreateParams 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 NewCacheFlushCreateParamsWithContext

func NewCacheFlushCreateParamsWithContext(ctx context.Context) *CacheFlushCreateParams

NewCacheFlushCreateParamsWithContext creates a new CacheFlushCreateParams object with the ability to set a context for a request.

func NewCacheFlushCreateParamsWithHTTPClient

func NewCacheFlushCreateParamsWithHTTPClient(client *http.Client) *CacheFlushCreateParams

NewCacheFlushCreateParamsWithHTTPClient creates a new CacheFlushCreateParams object with the ability to set a custom HTTPClient for a request.

func NewCacheFlushCreateParamsWithTimeout

func NewCacheFlushCreateParamsWithTimeout(timeout time.Duration) *CacheFlushCreateParams

NewCacheFlushCreateParamsWithTimeout creates a new CacheFlushCreateParams object with the ability to set a timeout on a request.

func (*CacheFlushCreateParams) SetBody

SetBody adds the body to the cache flush create params

func (*CacheFlushCreateParams) SetContext

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

SetContext adds the context to the cache flush create params

func (*CacheFlushCreateParams) SetDefaults

func (o *CacheFlushCreateParams) SetDefaults()

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

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

func (*CacheFlushCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cache flush create params

func (*CacheFlushCreateParams) SetTimeout

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

SetTimeout adds the timeout to the cache flush create params

func (*CacheFlushCreateParams) WithBody

WithBody adds the body to the cache flush create params

func (*CacheFlushCreateParams) WithContext

WithContext adds the context to the cache flush create params

func (*CacheFlushCreateParams) WithDefaults

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

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

func (*CacheFlushCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cache flush create params

func (*CacheFlushCreateParams) WithTimeout

WithTimeout adds the timeout to the cache flush create params

func (*CacheFlushCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CacheFlushCreateReader

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

CacheFlushCreateReader is a Reader for the CacheFlushCreate structure.

func (*CacheFlushCreateReader) ReadResponse

func (o *CacheFlushCreateReader) 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 cache flush API

func (*Client) CacheFlushCreate

func (a *Client) CacheFlushCreate(params *CacheFlushCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheFlushCreateCreated, error)
CacheFlushCreate creates the cache flush object

Use this method to create a Cache Flush object.

The Cache Flush object is for removing entries from the DNS cache on a host. The host must be available and running DNS for this to succeed.

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 {
	CacheFlushCreate(params *CacheFlushCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheFlushCreateCreated, 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 cache flush API client.

Jump to

Keyboard shortcuts

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