tsigkey

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 Client

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

Client for tsigkey API

func (*Client) CreateTSIGKey

func (a *Client) CreateTSIGKey(params *CreateTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTSIGKeyCreated, error)

CreateTSIGKey adds a t s i g key

This methods add a new TSIGKey. The actual key can be generated by the server or be provided by the client

func (*Client) DeleteTSIGKey

func (a *Client) DeleteTSIGKey(params *DeleteTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTSIGKeyNoContent, error)

DeleteTSIGKey deletes the t s i g key with tsigkey id

func (*Client) GetTSIGKey

func (a *Client) GetTSIGKey(params *GetTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTSIGKeyOK, error)

GetTSIGKey gets a specific t s i g keys on the server including the actual key

func (*Client) ListTSIGKeys

func (a *Client) ListTSIGKeys(params *ListTSIGKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTSIGKeysOK, error)

ListTSIGKeys gets all t s i g keys on the server except the actual key

func (*Client) PutTSIGKey

func (a *Client) PutTSIGKey(params *PutTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTSIGKeyOK, error)
 PutTSIGKey The TSIGKey at tsigkey_id can be changed in multiple ways:
* Changing the Name, this will remove the key with tsigkey_id after adding.
* Changing the Algorithm
* Changing the Key

Only the relevant fields have to be provided in the request body.

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 {
	CreateTSIGKey(params *CreateTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTSIGKeyCreated, error)

	DeleteTSIGKey(params *DeleteTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTSIGKeyNoContent, error)

	GetTSIGKey(params *GetTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTSIGKeyOK, error)

	ListTSIGKeys(params *ListTSIGKeysParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTSIGKeysOK, error)

	PutTSIGKey(params *PutTSIGKeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTSIGKeyOK, 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 tsigkey API client.

type CreateTSIGKeyConflict

type CreateTSIGKeyConflict struct {
	Payload *models.Error
}
CreateTSIGKeyConflict describes a response with status code 409, with default header values.

An item with this name already exists

func NewCreateTSIGKeyConflict

func NewCreateTSIGKeyConflict() *CreateTSIGKeyConflict

NewCreateTSIGKeyConflict creates a CreateTSIGKeyConflict with default headers values

func (*CreateTSIGKeyConflict) Error

func (o *CreateTSIGKeyConflict) Error() string

func (*CreateTSIGKeyConflict) GetPayload

func (o *CreateTSIGKeyConflict) GetPayload() *models.Error

type CreateTSIGKeyCreated

type CreateTSIGKeyCreated struct {
	Payload *models.TSIGKey
}
CreateTSIGKeyCreated describes a response with status code 201, with default header values.

Created

func NewCreateTSIGKeyCreated

func NewCreateTSIGKeyCreated() *CreateTSIGKeyCreated

NewCreateTSIGKeyCreated creates a CreateTSIGKeyCreated with default headers values

func (*CreateTSIGKeyCreated) Error

func (o *CreateTSIGKeyCreated) Error() string

func (*CreateTSIGKeyCreated) GetPayload

func (o *CreateTSIGKeyCreated) GetPayload() *models.TSIGKey

type CreateTSIGKeyParams

type CreateTSIGKeyParams struct {

	/* ServerID.

	   The id of the server
	*/
	ServerID string

	/* Tsigkey.

	   The TSIGKey to add
	*/
	Tsigkey *models.TSIGKey

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

CreateTSIGKeyParams contains all the parameters to send to the API endpoint

for the create t s i g key operation.

Typically these are written to a http.Request.

func NewCreateTSIGKeyParams

func NewCreateTSIGKeyParams() *CreateTSIGKeyParams

NewCreateTSIGKeyParams creates a new CreateTSIGKeyParams 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 NewCreateTSIGKeyParamsWithContext

func NewCreateTSIGKeyParamsWithContext(ctx context.Context) *CreateTSIGKeyParams

NewCreateTSIGKeyParamsWithContext creates a new CreateTSIGKeyParams object with the ability to set a context for a request.

func NewCreateTSIGKeyParamsWithHTTPClient

func NewCreateTSIGKeyParamsWithHTTPClient(client *http.Client) *CreateTSIGKeyParams

NewCreateTSIGKeyParamsWithHTTPClient creates a new CreateTSIGKeyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTSIGKeyParamsWithTimeout

func NewCreateTSIGKeyParamsWithTimeout(timeout time.Duration) *CreateTSIGKeyParams

NewCreateTSIGKeyParamsWithTimeout creates a new CreateTSIGKeyParams object with the ability to set a timeout on a request.

func (*CreateTSIGKeyParams) SetContext

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

SetContext adds the context to the create t s i g key params

func (*CreateTSIGKeyParams) SetDefaults

func (o *CreateTSIGKeyParams) SetDefaults()

SetDefaults hydrates default values in the create t s i g key params (not the query body).

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

func (*CreateTSIGKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create t s i g key params

func (*CreateTSIGKeyParams) SetServerID

func (o *CreateTSIGKeyParams) SetServerID(serverID string)

SetServerID adds the serverId to the create t s i g key params

func (*CreateTSIGKeyParams) SetTimeout

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

SetTimeout adds the timeout to the create t s i g key params

func (*CreateTSIGKeyParams) SetTsigkey

func (o *CreateTSIGKeyParams) SetTsigkey(tsigkey *models.TSIGKey)

SetTsigkey adds the tsigkey to the create t s i g key params

func (*CreateTSIGKeyParams) WithContext

WithContext adds the context to the create t s i g key params

func (*CreateTSIGKeyParams) WithDefaults

func (o *CreateTSIGKeyParams) WithDefaults() *CreateTSIGKeyParams

WithDefaults hydrates default values in the create t s i g key params (not the query body).

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

func (*CreateTSIGKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create t s i g key params

func (*CreateTSIGKeyParams) WithServerID

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

WithServerID adds the serverID to the create t s i g key params

func (*CreateTSIGKeyParams) WithTimeout

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

WithTimeout adds the timeout to the create t s i g key params

func (*CreateTSIGKeyParams) WithTsigkey

func (o *CreateTSIGKeyParams) WithTsigkey(tsigkey *models.TSIGKey) *CreateTSIGKeyParams

WithTsigkey adds the tsigkey to the create t s i g key params

func (*CreateTSIGKeyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateTSIGKeyReader

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

CreateTSIGKeyReader is a Reader for the CreateTSIGKey structure.

func (*CreateTSIGKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTSIGKeyNoContent

type DeleteTSIGKeyNoContent struct {
}
DeleteTSIGKeyNoContent describes a response with status code 204, with default header values.

OK, key was deleted

func NewDeleteTSIGKeyNoContent

func NewDeleteTSIGKeyNoContent() *DeleteTSIGKeyNoContent

NewDeleteTSIGKeyNoContent creates a DeleteTSIGKeyNoContent with default headers values

func (*DeleteTSIGKeyNoContent) Error

func (o *DeleteTSIGKeyNoContent) Error() string

type DeleteTSIGKeyParams

type DeleteTSIGKeyParams struct {

	/* ServerID.

	   The id of the server to retrieve the key from
	*/
	ServerID string

	/* TsigkeyID.

	   The id of the TSIGkey. Should match the "id" field in the TSIGKey object
	*/
	TsigkeyID string

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

DeleteTSIGKeyParams contains all the parameters to send to the API endpoint

for the delete t s i g key operation.

Typically these are written to a http.Request.

func NewDeleteTSIGKeyParams

func NewDeleteTSIGKeyParams() *DeleteTSIGKeyParams

NewDeleteTSIGKeyParams creates a new DeleteTSIGKeyParams 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 NewDeleteTSIGKeyParamsWithContext

func NewDeleteTSIGKeyParamsWithContext(ctx context.Context) *DeleteTSIGKeyParams

NewDeleteTSIGKeyParamsWithContext creates a new DeleteTSIGKeyParams object with the ability to set a context for a request.

func NewDeleteTSIGKeyParamsWithHTTPClient

func NewDeleteTSIGKeyParamsWithHTTPClient(client *http.Client) *DeleteTSIGKeyParams

NewDeleteTSIGKeyParamsWithHTTPClient creates a new DeleteTSIGKeyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTSIGKeyParamsWithTimeout

func NewDeleteTSIGKeyParamsWithTimeout(timeout time.Duration) *DeleteTSIGKeyParams

NewDeleteTSIGKeyParamsWithTimeout creates a new DeleteTSIGKeyParams object with the ability to set a timeout on a request.

func (*DeleteTSIGKeyParams) SetContext

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

SetContext adds the context to the delete t s i g key params

func (*DeleteTSIGKeyParams) SetDefaults

func (o *DeleteTSIGKeyParams) SetDefaults()

SetDefaults hydrates default values in the delete t s i g key params (not the query body).

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

func (*DeleteTSIGKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete t s i g key params

func (*DeleteTSIGKeyParams) SetServerID

func (o *DeleteTSIGKeyParams) SetServerID(serverID string)

SetServerID adds the serverId to the delete t s i g key params

func (*DeleteTSIGKeyParams) SetTimeout

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

SetTimeout adds the timeout to the delete t s i g key params

func (*DeleteTSIGKeyParams) SetTsigkeyID

func (o *DeleteTSIGKeyParams) SetTsigkeyID(tsigkeyID string)

SetTsigkeyID adds the tsigkeyId to the delete t s i g key params

func (*DeleteTSIGKeyParams) WithContext

WithContext adds the context to the delete t s i g key params

func (*DeleteTSIGKeyParams) WithDefaults

func (o *DeleteTSIGKeyParams) WithDefaults() *DeleteTSIGKeyParams

WithDefaults hydrates default values in the delete t s i g key params (not the query body).

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

func (*DeleteTSIGKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete t s i g key params

func (*DeleteTSIGKeyParams) WithServerID

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

WithServerID adds the serverID to the delete t s i g key params

func (*DeleteTSIGKeyParams) WithTimeout

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

WithTimeout adds the timeout to the delete t s i g key params

func (*DeleteTSIGKeyParams) WithTsigkeyID

func (o *DeleteTSIGKeyParams) WithTsigkeyID(tsigkeyID string) *DeleteTSIGKeyParams

WithTsigkeyID adds the tsigkeyID to the delete t s i g key params

func (*DeleteTSIGKeyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTSIGKeyReader

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

DeleteTSIGKeyReader is a Reader for the DeleteTSIGKey structure.

func (*DeleteTSIGKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTSIGKeyOK

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

OK.

func NewGetTSIGKeyOK

func NewGetTSIGKeyOK() *GetTSIGKeyOK

NewGetTSIGKeyOK creates a GetTSIGKeyOK with default headers values

func (*GetTSIGKeyOK) Error

func (o *GetTSIGKeyOK) Error() string

func (*GetTSIGKeyOK) GetPayload

func (o *GetTSIGKeyOK) GetPayload() *models.TSIGKey

type GetTSIGKeyParams

type GetTSIGKeyParams struct {

	/* ServerID.

	   The id of the server to retrieve the key from
	*/
	ServerID string

	/* TsigkeyID.

	   The id of the TSIGkey. Should match the "id" field in the TSIGKey object
	*/
	TsigkeyID string

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

GetTSIGKeyParams contains all the parameters to send to the API endpoint

for the get t s i g key operation.

Typically these are written to a http.Request.

func NewGetTSIGKeyParams

func NewGetTSIGKeyParams() *GetTSIGKeyParams

NewGetTSIGKeyParams creates a new GetTSIGKeyParams 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 NewGetTSIGKeyParamsWithContext

func NewGetTSIGKeyParamsWithContext(ctx context.Context) *GetTSIGKeyParams

NewGetTSIGKeyParamsWithContext creates a new GetTSIGKeyParams object with the ability to set a context for a request.

func NewGetTSIGKeyParamsWithHTTPClient

func NewGetTSIGKeyParamsWithHTTPClient(client *http.Client) *GetTSIGKeyParams

NewGetTSIGKeyParamsWithHTTPClient creates a new GetTSIGKeyParams object with the ability to set a custom HTTPClient for a request.

func NewGetTSIGKeyParamsWithTimeout

func NewGetTSIGKeyParamsWithTimeout(timeout time.Duration) *GetTSIGKeyParams

NewGetTSIGKeyParamsWithTimeout creates a new GetTSIGKeyParams object with the ability to set a timeout on a request.

func (*GetTSIGKeyParams) SetContext

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

SetContext adds the context to the get t s i g key params

func (*GetTSIGKeyParams) SetDefaults

func (o *GetTSIGKeyParams) SetDefaults()

SetDefaults hydrates default values in the get t s i g key params (not the query body).

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

func (*GetTSIGKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get t s i g key params

func (*GetTSIGKeyParams) SetServerID

func (o *GetTSIGKeyParams) SetServerID(serverID string)

SetServerID adds the serverId to the get t s i g key params

func (*GetTSIGKeyParams) SetTimeout

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

SetTimeout adds the timeout to the get t s i g key params

func (*GetTSIGKeyParams) SetTsigkeyID

func (o *GetTSIGKeyParams) SetTsigkeyID(tsigkeyID string)

SetTsigkeyID adds the tsigkeyId to the get t s i g key params

func (*GetTSIGKeyParams) WithContext

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

WithContext adds the context to the get t s i g key params

func (*GetTSIGKeyParams) WithDefaults

func (o *GetTSIGKeyParams) WithDefaults() *GetTSIGKeyParams

WithDefaults hydrates default values in the get t s i g key params (not the query body).

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

func (*GetTSIGKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get t s i g key params

func (*GetTSIGKeyParams) WithServerID

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

WithServerID adds the serverID to the get t s i g key params

func (*GetTSIGKeyParams) WithTimeout

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

WithTimeout adds the timeout to the get t s i g key params

func (*GetTSIGKeyParams) WithTsigkeyID

func (o *GetTSIGKeyParams) WithTsigkeyID(tsigkeyID string) *GetTSIGKeyParams

WithTsigkeyID adds the tsigkeyID to the get t s i g key params

func (*GetTSIGKeyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTSIGKeyReader

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

GetTSIGKeyReader is a Reader for the GetTSIGKey structure.

func (*GetTSIGKeyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTSIGKeysOK

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

List of TSIGKey objects

func NewListTSIGKeysOK

func NewListTSIGKeysOK() *ListTSIGKeysOK

NewListTSIGKeysOK creates a ListTSIGKeysOK with default headers values

func (*ListTSIGKeysOK) Error

func (o *ListTSIGKeysOK) Error() string

func (*ListTSIGKeysOK) GetPayload

func (o *ListTSIGKeysOK) GetPayload() []*models.TSIGKey

type ListTSIGKeysParams

type ListTSIGKeysParams struct {

	/* ServerID.

	   The id of the server
	*/
	ServerID string

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

ListTSIGKeysParams contains all the parameters to send to the API endpoint

for the list t s i g keys operation.

Typically these are written to a http.Request.

func NewListTSIGKeysParams

func NewListTSIGKeysParams() *ListTSIGKeysParams

NewListTSIGKeysParams creates a new ListTSIGKeysParams 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 NewListTSIGKeysParamsWithContext

func NewListTSIGKeysParamsWithContext(ctx context.Context) *ListTSIGKeysParams

NewListTSIGKeysParamsWithContext creates a new ListTSIGKeysParams object with the ability to set a context for a request.

func NewListTSIGKeysParamsWithHTTPClient

func NewListTSIGKeysParamsWithHTTPClient(client *http.Client) *ListTSIGKeysParams

NewListTSIGKeysParamsWithHTTPClient creates a new ListTSIGKeysParams object with the ability to set a custom HTTPClient for a request.

func NewListTSIGKeysParamsWithTimeout

func NewListTSIGKeysParamsWithTimeout(timeout time.Duration) *ListTSIGKeysParams

NewListTSIGKeysParamsWithTimeout creates a new ListTSIGKeysParams object with the ability to set a timeout on a request.

func (*ListTSIGKeysParams) SetContext

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

SetContext adds the context to the list t s i g keys params

func (*ListTSIGKeysParams) SetDefaults

func (o *ListTSIGKeysParams) SetDefaults()

SetDefaults hydrates default values in the list t s i g keys params (not the query body).

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

func (*ListTSIGKeysParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list t s i g keys params

func (*ListTSIGKeysParams) SetServerID

func (o *ListTSIGKeysParams) SetServerID(serverID string)

SetServerID adds the serverId to the list t s i g keys params

func (*ListTSIGKeysParams) SetTimeout

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

SetTimeout adds the timeout to the list t s i g keys params

func (*ListTSIGKeysParams) WithContext

WithContext adds the context to the list t s i g keys params

func (*ListTSIGKeysParams) WithDefaults

func (o *ListTSIGKeysParams) WithDefaults() *ListTSIGKeysParams

WithDefaults hydrates default values in the list t s i g keys params (not the query body).

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

func (*ListTSIGKeysParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list t s i g keys params

func (*ListTSIGKeysParams) WithServerID

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

WithServerID adds the serverID to the list t s i g keys params

func (*ListTSIGKeysParams) WithTimeout

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

WithTimeout adds the timeout to the list t s i g keys params

func (*ListTSIGKeysParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListTSIGKeysReader

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

ListTSIGKeysReader is a Reader for the ListTSIGKeys structure.

func (*ListTSIGKeysReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutTSIGKeyConflict

type PutTSIGKeyConflict struct {
	Payload *models.Error
}
PutTSIGKeyConflict describes a response with status code 409, with default header values.

An item with this name already exists

func NewPutTSIGKeyConflict

func NewPutTSIGKeyConflict() *PutTSIGKeyConflict

NewPutTSIGKeyConflict creates a PutTSIGKeyConflict with default headers values

func (*PutTSIGKeyConflict) Error

func (o *PutTSIGKeyConflict) Error() string

func (*PutTSIGKeyConflict) GetPayload

func (o *PutTSIGKeyConflict) GetPayload() *models.Error

type PutTSIGKeyOK

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

OK. TSIGKey is changed.

func NewPutTSIGKeyOK

func NewPutTSIGKeyOK() *PutTSIGKeyOK

NewPutTSIGKeyOK creates a PutTSIGKeyOK with default headers values

func (*PutTSIGKeyOK) Error

func (o *PutTSIGKeyOK) Error() string

func (*PutTSIGKeyOK) GetPayload

func (o *PutTSIGKeyOK) GetPayload() *models.TSIGKey

type PutTSIGKeyParams

type PutTSIGKeyParams struct {

	/* ServerID.

	   The id of the server to retrieve the key from
	*/
	ServerID string

	/* Tsigkey.

	   A (possibly stripped down) TSIGKey object with the new values
	*/
	Tsigkey *models.TSIGKey

	/* TsigkeyID.

	   The id of the TSIGkey. Should match the "id" field in the TSIGKey object
	*/
	TsigkeyID string

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

PutTSIGKeyParams contains all the parameters to send to the API endpoint

for the put t s i g key operation.

Typically these are written to a http.Request.

func NewPutTSIGKeyParams

func NewPutTSIGKeyParams() *PutTSIGKeyParams

NewPutTSIGKeyParams creates a new PutTSIGKeyParams 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 NewPutTSIGKeyParamsWithContext

func NewPutTSIGKeyParamsWithContext(ctx context.Context) *PutTSIGKeyParams

NewPutTSIGKeyParamsWithContext creates a new PutTSIGKeyParams object with the ability to set a context for a request.

func NewPutTSIGKeyParamsWithHTTPClient

func NewPutTSIGKeyParamsWithHTTPClient(client *http.Client) *PutTSIGKeyParams

NewPutTSIGKeyParamsWithHTTPClient creates a new PutTSIGKeyParams object with the ability to set a custom HTTPClient for a request.

func NewPutTSIGKeyParamsWithTimeout

func NewPutTSIGKeyParamsWithTimeout(timeout time.Duration) *PutTSIGKeyParams

NewPutTSIGKeyParamsWithTimeout creates a new PutTSIGKeyParams object with the ability to set a timeout on a request.

func (*PutTSIGKeyParams) SetContext

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

SetContext adds the context to the put t s i g key params

func (*PutTSIGKeyParams) SetDefaults

func (o *PutTSIGKeyParams) SetDefaults()

SetDefaults hydrates default values in the put t s i g key params (not the query body).

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

func (*PutTSIGKeyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put t s i g key params

func (*PutTSIGKeyParams) SetServerID

func (o *PutTSIGKeyParams) SetServerID(serverID string)

SetServerID adds the serverId to the put t s i g key params

func (*PutTSIGKeyParams) SetTimeout

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

SetTimeout adds the timeout to the put t s i g key params

func (*PutTSIGKeyParams) SetTsigkey

func (o *PutTSIGKeyParams) SetTsigkey(tsigkey *models.TSIGKey)

SetTsigkey adds the tsigkey to the put t s i g key params

func (*PutTSIGKeyParams) SetTsigkeyID

func (o *PutTSIGKeyParams) SetTsigkeyID(tsigkeyID string)

SetTsigkeyID adds the tsigkeyId to the put t s i g key params

func (*PutTSIGKeyParams) WithContext

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

WithContext adds the context to the put t s i g key params

func (*PutTSIGKeyParams) WithDefaults

func (o *PutTSIGKeyParams) WithDefaults() *PutTSIGKeyParams

WithDefaults hydrates default values in the put t s i g key params (not the query body).

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

func (*PutTSIGKeyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put t s i g key params

func (*PutTSIGKeyParams) WithServerID

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

WithServerID adds the serverID to the put t s i g key params

func (*PutTSIGKeyParams) WithTimeout

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

WithTimeout adds the timeout to the put t s i g key params

func (*PutTSIGKeyParams) WithTsigkey

func (o *PutTSIGKeyParams) WithTsigkey(tsigkey *models.TSIGKey) *PutTSIGKeyParams

WithTsigkey adds the tsigkey to the put t s i g key params

func (*PutTSIGKeyParams) WithTsigkeyID

func (o *PutTSIGKeyParams) WithTsigkeyID(tsigkeyID string) *PutTSIGKeyParams

WithTsigkeyID adds the tsigkeyID to the put t s i g key params

func (*PutTSIGKeyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutTSIGKeyReader

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

PutTSIGKeyReader is a Reader for the PutTSIGKey structure.

func (*PutTSIGKeyReader) ReadResponse

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