Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateAutoprimary(params *CreateAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateAutoprimaryCreated, error)
- func (a *Client) DeleteAutoprimary(params *DeleteAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAutoprimaryNoContent, error)
- func (a *Client) GetAutoprimaries(params *GetAutoprimariesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAutoprimariesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateAutoprimaryCreated
- type CreateAutoprimaryParams
- func NewCreateAutoprimaryParams() *CreateAutoprimaryParams
- func NewCreateAutoprimaryParamsWithContext(ctx context.Context) *CreateAutoprimaryParams
- func NewCreateAutoprimaryParamsWithHTTPClient(client *http.Client) *CreateAutoprimaryParams
- func NewCreateAutoprimaryParamsWithTimeout(timeout time.Duration) *CreateAutoprimaryParams
- func (o *CreateAutoprimaryParams) SetAutoprimary(autoprimary *models.Autoprimary)
- func (o *CreateAutoprimaryParams) SetContext(ctx context.Context)
- func (o *CreateAutoprimaryParams) SetDefaults()
- func (o *CreateAutoprimaryParams) SetHTTPClient(client *http.Client)
- func (o *CreateAutoprimaryParams) SetServerID(serverID string)
- func (o *CreateAutoprimaryParams) SetTimeout(timeout time.Duration)
- func (o *CreateAutoprimaryParams) WithAutoprimary(autoprimary *models.Autoprimary) *CreateAutoprimaryParams
- func (o *CreateAutoprimaryParams) WithContext(ctx context.Context) *CreateAutoprimaryParams
- func (o *CreateAutoprimaryParams) WithDefaults() *CreateAutoprimaryParams
- func (o *CreateAutoprimaryParams) WithHTTPClient(client *http.Client) *CreateAutoprimaryParams
- func (o *CreateAutoprimaryParams) WithServerID(serverID string) *CreateAutoprimaryParams
- func (o *CreateAutoprimaryParams) WithTimeout(timeout time.Duration) *CreateAutoprimaryParams
- func (o *CreateAutoprimaryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateAutoprimaryReader
- type DeleteAutoprimaryNoContent
- type DeleteAutoprimaryParams
- func NewDeleteAutoprimaryParams() *DeleteAutoprimaryParams
- func NewDeleteAutoprimaryParamsWithContext(ctx context.Context) *DeleteAutoprimaryParams
- func NewDeleteAutoprimaryParamsWithHTTPClient(client *http.Client) *DeleteAutoprimaryParams
- func NewDeleteAutoprimaryParamsWithTimeout(timeout time.Duration) *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) SetContext(ctx context.Context)
- func (o *DeleteAutoprimaryParams) SetDefaults()
- func (o *DeleteAutoprimaryParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAutoprimaryParams) SetIP(ip string)
- func (o *DeleteAutoprimaryParams) SetNameserver(nameserver string)
- func (o *DeleteAutoprimaryParams) SetServerID(serverID string)
- func (o *DeleteAutoprimaryParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAutoprimaryParams) WithContext(ctx context.Context) *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) WithDefaults() *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) WithHTTPClient(client *http.Client) *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) WithIP(ip string) *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) WithNameserver(nameserver string) *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) WithServerID(serverID string) *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) WithTimeout(timeout time.Duration) *DeleteAutoprimaryParams
- func (o *DeleteAutoprimaryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAutoprimaryReader
- type GetAutoprimariesOK
- type GetAutoprimariesParams
- func NewGetAutoprimariesParams() *GetAutoprimariesParams
- func NewGetAutoprimariesParamsWithContext(ctx context.Context) *GetAutoprimariesParams
- func NewGetAutoprimariesParamsWithHTTPClient(client *http.Client) *GetAutoprimariesParams
- func NewGetAutoprimariesParamsWithTimeout(timeout time.Duration) *GetAutoprimariesParams
- func (o *GetAutoprimariesParams) SetContext(ctx context.Context)
- func (o *GetAutoprimariesParams) SetDefaults()
- func (o *GetAutoprimariesParams) SetHTTPClient(client *http.Client)
- func (o *GetAutoprimariesParams) SetServerID(serverID string)
- func (o *GetAutoprimariesParams) SetTimeout(timeout time.Duration)
- func (o *GetAutoprimariesParams) WithContext(ctx context.Context) *GetAutoprimariesParams
- func (o *GetAutoprimariesParams) WithDefaults() *GetAutoprimariesParams
- func (o *GetAutoprimariesParams) WithHTTPClient(client *http.Client) *GetAutoprimariesParams
- func (o *GetAutoprimariesParams) WithServerID(serverID string) *GetAutoprimariesParams
- func (o *GetAutoprimariesParams) WithTimeout(timeout time.Duration) *GetAutoprimariesParams
- func (o *GetAutoprimariesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAutoprimariesReader
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 autoprimary API
func (*Client) CreateAutoprimary ¶
func (a *Client) CreateAutoprimary(params *CreateAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAutoprimaryCreated, error)
CreateAutoprimary adds an autoprimary
This methods add a new autoprimary server.
func (*Client) DeleteAutoprimary ¶
func (a *Client) DeleteAutoprimary(params *DeleteAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAutoprimaryNoContent, error)
DeleteAutoprimary deletes the autoprimary entry
func (*Client) GetAutoprimaries ¶
func (a *Client) GetAutoprimaries(params *GetAutoprimariesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAutoprimariesOK, error)
GetAutoprimaries gets a list of autoprimaries
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 { CreateAutoprimary(params *CreateAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAutoprimaryCreated, error) DeleteAutoprimary(params *DeleteAutoprimaryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAutoprimaryNoContent, error) GetAutoprimaries(params *GetAutoprimariesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAutoprimariesOK, 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 autoprimary API client.
type CreateAutoprimaryCreated ¶
type CreateAutoprimaryCreated struct { }
CreateAutoprimaryCreated describes a response with status code 201, with default header values.
Created
func NewCreateAutoprimaryCreated ¶
func NewCreateAutoprimaryCreated() *CreateAutoprimaryCreated
NewCreateAutoprimaryCreated creates a CreateAutoprimaryCreated with default headers values
func (*CreateAutoprimaryCreated) Error ¶
func (o *CreateAutoprimaryCreated) Error() string
type CreateAutoprimaryParams ¶
type CreateAutoprimaryParams struct { /* Autoprimary. autoprimary entry to add */ Autoprimary *models.Autoprimary /* ServerID. The id of the server to manage the list of autoprimaries on */ ServerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateAutoprimaryParams contains all the parameters to send to the API endpoint
for the create autoprimary operation. Typically these are written to a http.Request.
func NewCreateAutoprimaryParams ¶
func NewCreateAutoprimaryParams() *CreateAutoprimaryParams
NewCreateAutoprimaryParams creates a new CreateAutoprimaryParams 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 NewCreateAutoprimaryParamsWithContext ¶
func NewCreateAutoprimaryParamsWithContext(ctx context.Context) *CreateAutoprimaryParams
NewCreateAutoprimaryParamsWithContext creates a new CreateAutoprimaryParams object with the ability to set a context for a request.
func NewCreateAutoprimaryParamsWithHTTPClient ¶
func NewCreateAutoprimaryParamsWithHTTPClient(client *http.Client) *CreateAutoprimaryParams
NewCreateAutoprimaryParamsWithHTTPClient creates a new CreateAutoprimaryParams object with the ability to set a custom HTTPClient for a request.
func NewCreateAutoprimaryParamsWithTimeout ¶
func NewCreateAutoprimaryParamsWithTimeout(timeout time.Duration) *CreateAutoprimaryParams
NewCreateAutoprimaryParamsWithTimeout creates a new CreateAutoprimaryParams object with the ability to set a timeout on a request.
func (*CreateAutoprimaryParams) SetAutoprimary ¶
func (o *CreateAutoprimaryParams) SetAutoprimary(autoprimary *models.Autoprimary)
SetAutoprimary adds the autoprimary to the create autoprimary params
func (*CreateAutoprimaryParams) SetContext ¶
func (o *CreateAutoprimaryParams) SetContext(ctx context.Context)
SetContext adds the context to the create autoprimary params
func (*CreateAutoprimaryParams) SetDefaults ¶
func (o *CreateAutoprimaryParams) SetDefaults()
SetDefaults hydrates default values in the create autoprimary params (not the query body).
All values with no default are reset to their zero value.
func (*CreateAutoprimaryParams) SetHTTPClient ¶
func (o *CreateAutoprimaryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create autoprimary params
func (*CreateAutoprimaryParams) SetServerID ¶
func (o *CreateAutoprimaryParams) SetServerID(serverID string)
SetServerID adds the serverId to the create autoprimary params
func (*CreateAutoprimaryParams) SetTimeout ¶
func (o *CreateAutoprimaryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create autoprimary params
func (*CreateAutoprimaryParams) WithAutoprimary ¶
func (o *CreateAutoprimaryParams) WithAutoprimary(autoprimary *models.Autoprimary) *CreateAutoprimaryParams
WithAutoprimary adds the autoprimary to the create autoprimary params
func (*CreateAutoprimaryParams) WithContext ¶
func (o *CreateAutoprimaryParams) WithContext(ctx context.Context) *CreateAutoprimaryParams
WithContext adds the context to the create autoprimary params
func (*CreateAutoprimaryParams) WithDefaults ¶
func (o *CreateAutoprimaryParams) WithDefaults() *CreateAutoprimaryParams
WithDefaults hydrates default values in the create autoprimary params (not the query body).
All values with no default are reset to their zero value.
func (*CreateAutoprimaryParams) WithHTTPClient ¶
func (o *CreateAutoprimaryParams) WithHTTPClient(client *http.Client) *CreateAutoprimaryParams
WithHTTPClient adds the HTTPClient to the create autoprimary params
func (*CreateAutoprimaryParams) WithServerID ¶
func (o *CreateAutoprimaryParams) WithServerID(serverID string) *CreateAutoprimaryParams
WithServerID adds the serverID to the create autoprimary params
func (*CreateAutoprimaryParams) WithTimeout ¶
func (o *CreateAutoprimaryParams) WithTimeout(timeout time.Duration) *CreateAutoprimaryParams
WithTimeout adds the timeout to the create autoprimary params
func (*CreateAutoprimaryParams) WriteToRequest ¶
func (o *CreateAutoprimaryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateAutoprimaryReader ¶
type CreateAutoprimaryReader struct {
// contains filtered or unexported fields
}
CreateAutoprimaryReader is a Reader for the CreateAutoprimary structure.
func (*CreateAutoprimaryReader) ReadResponse ¶
func (o *CreateAutoprimaryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteAutoprimaryNoContent ¶
type DeleteAutoprimaryNoContent struct { }
DeleteAutoprimaryNoContent describes a response with status code 204, with default header values.
OK, key was deleted
func NewDeleteAutoprimaryNoContent ¶
func NewDeleteAutoprimaryNoContent() *DeleteAutoprimaryNoContent
NewDeleteAutoprimaryNoContent creates a DeleteAutoprimaryNoContent with default headers values
func (*DeleteAutoprimaryNoContent) Error ¶
func (o *DeleteAutoprimaryNoContent) Error() string
type DeleteAutoprimaryParams ¶
type DeleteAutoprimaryParams struct { /* IP. IP address of autoprimary */ IP string /* Nameserver. DNS name of the autoprimary */ Nameserver string /* ServerID. The id of the server to delete the autoprimary from */ ServerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteAutoprimaryParams contains all the parameters to send to the API endpoint
for the delete autoprimary operation. Typically these are written to a http.Request.
func NewDeleteAutoprimaryParams ¶
func NewDeleteAutoprimaryParams() *DeleteAutoprimaryParams
NewDeleteAutoprimaryParams creates a new DeleteAutoprimaryParams 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 NewDeleteAutoprimaryParamsWithContext ¶
func NewDeleteAutoprimaryParamsWithContext(ctx context.Context) *DeleteAutoprimaryParams
NewDeleteAutoprimaryParamsWithContext creates a new DeleteAutoprimaryParams object with the ability to set a context for a request.
func NewDeleteAutoprimaryParamsWithHTTPClient ¶
func NewDeleteAutoprimaryParamsWithHTTPClient(client *http.Client) *DeleteAutoprimaryParams
NewDeleteAutoprimaryParamsWithHTTPClient creates a new DeleteAutoprimaryParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteAutoprimaryParamsWithTimeout ¶
func NewDeleteAutoprimaryParamsWithTimeout(timeout time.Duration) *DeleteAutoprimaryParams
NewDeleteAutoprimaryParamsWithTimeout creates a new DeleteAutoprimaryParams object with the ability to set a timeout on a request.
func (*DeleteAutoprimaryParams) SetContext ¶
func (o *DeleteAutoprimaryParams) SetContext(ctx context.Context)
SetContext adds the context to the delete autoprimary params
func (*DeleteAutoprimaryParams) SetDefaults ¶
func (o *DeleteAutoprimaryParams) SetDefaults()
SetDefaults hydrates default values in the delete autoprimary params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAutoprimaryParams) SetHTTPClient ¶
func (o *DeleteAutoprimaryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete autoprimary params
func (*DeleteAutoprimaryParams) SetIP ¶
func (o *DeleteAutoprimaryParams) SetIP(ip string)
SetIP adds the ip to the delete autoprimary params
func (*DeleteAutoprimaryParams) SetNameserver ¶
func (o *DeleteAutoprimaryParams) SetNameserver(nameserver string)
SetNameserver adds the nameserver to the delete autoprimary params
func (*DeleteAutoprimaryParams) SetServerID ¶
func (o *DeleteAutoprimaryParams) SetServerID(serverID string)
SetServerID adds the serverId to the delete autoprimary params
func (*DeleteAutoprimaryParams) SetTimeout ¶
func (o *DeleteAutoprimaryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete autoprimary params
func (*DeleteAutoprimaryParams) WithContext ¶
func (o *DeleteAutoprimaryParams) WithContext(ctx context.Context) *DeleteAutoprimaryParams
WithContext adds the context to the delete autoprimary params
func (*DeleteAutoprimaryParams) WithDefaults ¶
func (o *DeleteAutoprimaryParams) WithDefaults() *DeleteAutoprimaryParams
WithDefaults hydrates default values in the delete autoprimary params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAutoprimaryParams) WithHTTPClient ¶
func (o *DeleteAutoprimaryParams) WithHTTPClient(client *http.Client) *DeleteAutoprimaryParams
WithHTTPClient adds the HTTPClient to the delete autoprimary params
func (*DeleteAutoprimaryParams) WithIP ¶
func (o *DeleteAutoprimaryParams) WithIP(ip string) *DeleteAutoprimaryParams
WithIP adds the ip to the delete autoprimary params
func (*DeleteAutoprimaryParams) WithNameserver ¶
func (o *DeleteAutoprimaryParams) WithNameserver(nameserver string) *DeleteAutoprimaryParams
WithNameserver adds the nameserver to the delete autoprimary params
func (*DeleteAutoprimaryParams) WithServerID ¶
func (o *DeleteAutoprimaryParams) WithServerID(serverID string) *DeleteAutoprimaryParams
WithServerID adds the serverID to the delete autoprimary params
func (*DeleteAutoprimaryParams) WithTimeout ¶
func (o *DeleteAutoprimaryParams) WithTimeout(timeout time.Duration) *DeleteAutoprimaryParams
WithTimeout adds the timeout to the delete autoprimary params
func (*DeleteAutoprimaryParams) WriteToRequest ¶
func (o *DeleteAutoprimaryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAutoprimaryReader ¶
type DeleteAutoprimaryReader struct {
// contains filtered or unexported fields
}
DeleteAutoprimaryReader is a Reader for the DeleteAutoprimary structure.
func (*DeleteAutoprimaryReader) ReadResponse ¶
func (o *DeleteAutoprimaryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAutoprimariesOK ¶
type GetAutoprimariesOK struct {
Payload *models.Autoprimary
}
GetAutoprimariesOK describes a response with status code 200, with default header values.
OK.
func NewGetAutoprimariesOK ¶
func NewGetAutoprimariesOK() *GetAutoprimariesOK
NewGetAutoprimariesOK creates a GetAutoprimariesOK with default headers values
func (*GetAutoprimariesOK) Error ¶
func (o *GetAutoprimariesOK) Error() string
func (*GetAutoprimariesOK) GetPayload ¶
func (o *GetAutoprimariesOK) GetPayload() *models.Autoprimary
type GetAutoprimariesParams ¶
type GetAutoprimariesParams struct { /* ServerID. The id of the server to manage the list of autoprimaries on */ ServerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAutoprimariesParams contains all the parameters to send to the API endpoint
for the get autoprimaries operation. Typically these are written to a http.Request.
func NewGetAutoprimariesParams ¶
func NewGetAutoprimariesParams() *GetAutoprimariesParams
NewGetAutoprimariesParams creates a new GetAutoprimariesParams 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 NewGetAutoprimariesParamsWithContext ¶
func NewGetAutoprimariesParamsWithContext(ctx context.Context) *GetAutoprimariesParams
NewGetAutoprimariesParamsWithContext creates a new GetAutoprimariesParams object with the ability to set a context for a request.
func NewGetAutoprimariesParamsWithHTTPClient ¶
func NewGetAutoprimariesParamsWithHTTPClient(client *http.Client) *GetAutoprimariesParams
NewGetAutoprimariesParamsWithHTTPClient creates a new GetAutoprimariesParams object with the ability to set a custom HTTPClient for a request.
func NewGetAutoprimariesParamsWithTimeout ¶
func NewGetAutoprimariesParamsWithTimeout(timeout time.Duration) *GetAutoprimariesParams
NewGetAutoprimariesParamsWithTimeout creates a new GetAutoprimariesParams object with the ability to set a timeout on a request.
func (*GetAutoprimariesParams) SetContext ¶
func (o *GetAutoprimariesParams) SetContext(ctx context.Context)
SetContext adds the context to the get autoprimaries params
func (*GetAutoprimariesParams) SetDefaults ¶
func (o *GetAutoprimariesParams) SetDefaults()
SetDefaults hydrates default values in the get autoprimaries params (not the query body).
All values with no default are reset to their zero value.
func (*GetAutoprimariesParams) SetHTTPClient ¶
func (o *GetAutoprimariesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get autoprimaries params
func (*GetAutoprimariesParams) SetServerID ¶
func (o *GetAutoprimariesParams) SetServerID(serverID string)
SetServerID adds the serverId to the get autoprimaries params
func (*GetAutoprimariesParams) SetTimeout ¶
func (o *GetAutoprimariesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get autoprimaries params
func (*GetAutoprimariesParams) WithContext ¶
func (o *GetAutoprimariesParams) WithContext(ctx context.Context) *GetAutoprimariesParams
WithContext adds the context to the get autoprimaries params
func (*GetAutoprimariesParams) WithDefaults ¶
func (o *GetAutoprimariesParams) WithDefaults() *GetAutoprimariesParams
WithDefaults hydrates default values in the get autoprimaries params (not the query body).
All values with no default are reset to their zero value.
func (*GetAutoprimariesParams) WithHTTPClient ¶
func (o *GetAutoprimariesParams) WithHTTPClient(client *http.Client) *GetAutoprimariesParams
WithHTTPClient adds the HTTPClient to the get autoprimaries params
func (*GetAutoprimariesParams) WithServerID ¶
func (o *GetAutoprimariesParams) WithServerID(serverID string) *GetAutoprimariesParams
WithServerID adds the serverID to the get autoprimaries params
func (*GetAutoprimariesParams) WithTimeout ¶
func (o *GetAutoprimariesParams) WithTimeout(timeout time.Duration) *GetAutoprimariesParams
WithTimeout adds the timeout to the get autoprimaries params
func (*GetAutoprimariesParams) WriteToRequest ¶
func (o *GetAutoprimariesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAutoprimariesReader ¶
type GetAutoprimariesReader struct {
// contains filtered or unexported fields
}
GetAutoprimariesReader is a Reader for the GetAutoprimaries structure.
func (*GetAutoprimariesReader) ReadResponse ¶
func (o *GetAutoprimariesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.