Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteV1DomainsDomainID(params *DeleteV1DomainsDomainIDParams) (*DeleteV1DomainsDomainIDOK, error)
- func (a *Client) GetV1Domains(params *GetV1DomainsParams) (*GetV1DomainsOK, error)
- func (a *Client) PostV1Domains(params *PostV1DomainsParams) (*PostV1DomainsCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteV1DomainsDomainIDNotFound
- type DeleteV1DomainsDomainIDOK
- type DeleteV1DomainsDomainIDParams
- func NewDeleteV1DomainsDomainIDParams() *DeleteV1DomainsDomainIDParams
- func NewDeleteV1DomainsDomainIDParamsWithContext(ctx context.Context) *DeleteV1DomainsDomainIDParams
- func NewDeleteV1DomainsDomainIDParamsWithHTTPClient(client *http.Client) *DeleteV1DomainsDomainIDParams
- func NewDeleteV1DomainsDomainIDParamsWithTimeout(timeout time.Duration) *DeleteV1DomainsDomainIDParams
- func (o *DeleteV1DomainsDomainIDParams) SetContext(ctx context.Context)
- func (o *DeleteV1DomainsDomainIDParams) SetDomainID(domainID string)
- func (o *DeleteV1DomainsDomainIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteV1DomainsDomainIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteV1DomainsDomainIDParams) WithContext(ctx context.Context) *DeleteV1DomainsDomainIDParams
- func (o *DeleteV1DomainsDomainIDParams) WithDomainID(domainID string) *DeleteV1DomainsDomainIDParams
- func (o *DeleteV1DomainsDomainIDParams) WithHTTPClient(client *http.Client) *DeleteV1DomainsDomainIDParams
- func (o *DeleteV1DomainsDomainIDParams) WithTimeout(timeout time.Duration) *DeleteV1DomainsDomainIDParams
- func (o *DeleteV1DomainsDomainIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteV1DomainsDomainIDPreconditionFailed
- type DeleteV1DomainsDomainIDReader
- type GetV1DomainsOK
- type GetV1DomainsParams
- func (o *GetV1DomainsParams) SetContext(ctx context.Context)
- func (o *GetV1DomainsParams) SetHTTPClient(client *http.Client)
- func (o *GetV1DomainsParams) SetTimeout(timeout time.Duration)
- func (o *GetV1DomainsParams) WithContext(ctx context.Context) *GetV1DomainsParams
- func (o *GetV1DomainsParams) WithHTTPClient(client *http.Client) *GetV1DomainsParams
- func (o *GetV1DomainsParams) WithTimeout(timeout time.Duration) *GetV1DomainsParams
- func (o *GetV1DomainsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1DomainsReader
- type PostV1DomainsBadRequest
- type PostV1DomainsCreated
- type PostV1DomainsInternalServerError
- type PostV1DomainsParams
- func (o *PostV1DomainsParams) SetBody(body *models.Domain)
- func (o *PostV1DomainsParams) SetContext(ctx context.Context)
- func (o *PostV1DomainsParams) SetHTTPClient(client *http.Client)
- func (o *PostV1DomainsParams) SetTimeout(timeout time.Duration)
- func (o *PostV1DomainsParams) WithBody(body *models.Domain) *PostV1DomainsParams
- func (o *PostV1DomainsParams) WithContext(ctx context.Context) *PostV1DomainsParams
- func (o *PostV1DomainsParams) WithHTTPClient(client *http.Client) *PostV1DomainsParams
- func (o *PostV1DomainsParams) WithTimeout(timeout time.Duration) *PostV1DomainsParams
- func (o *PostV1DomainsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostV1DomainsPreconditionFailed
- type PostV1DomainsReader
- type PostV1DomainsWrongExchangeServer
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 domains API
func (*Client) DeleteV1DomainsDomainID ¶
func (a *Client) DeleteV1DomainsDomainID(params *DeleteV1DomainsDomainIDParams) (*DeleteV1DomainsDomainIDOK, error)
DeleteV1DomainsDomainID deletes a domain reservation
func (*Client) GetV1Domains ¶
func (a *Client) GetV1Domains(params *GetV1DomainsParams) (*GetV1DomainsOK, error)
GetV1Domains lists domain reservations
func (*Client) PostV1Domains ¶
func (a *Client) PostV1Domains(params *PostV1DomainsParams) (*PostV1DomainsCreated, error)
PostV1Domains Reserve a domain
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteV1DomainsDomainID(params *DeleteV1DomainsDomainIDParams) (*DeleteV1DomainsDomainIDOK, error) GetV1Domains(params *GetV1DomainsParams) (*GetV1DomainsOK, error) PostV1Domains(params *PostV1DomainsParams) (*PostV1DomainsCreated, 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 domains API client.
type DeleteV1DomainsDomainIDNotFound ¶
type DeleteV1DomainsDomainIDNotFound struct { }
DeleteV1DomainsDomainIDNotFound handles this case with default header values.
Domain reservation not found
func NewDeleteV1DomainsDomainIDNotFound ¶
func NewDeleteV1DomainsDomainIDNotFound() *DeleteV1DomainsDomainIDNotFound
NewDeleteV1DomainsDomainIDNotFound creates a DeleteV1DomainsDomainIDNotFound with default headers values
func (*DeleteV1DomainsDomainIDNotFound) Error ¶
func (o *DeleteV1DomainsDomainIDNotFound) Error() string
type DeleteV1DomainsDomainIDOK ¶
type DeleteV1DomainsDomainIDOK struct { }
DeleteV1DomainsDomainIDOK handles this case with default header values.
Successful Response
func NewDeleteV1DomainsDomainIDOK ¶
func NewDeleteV1DomainsDomainIDOK() *DeleteV1DomainsDomainIDOK
NewDeleteV1DomainsDomainIDOK creates a DeleteV1DomainsDomainIDOK with default headers values
func (*DeleteV1DomainsDomainIDOK) Error ¶
func (o *DeleteV1DomainsDomainIDOK) Error() string
type DeleteV1DomainsDomainIDParams ¶
type DeleteV1DomainsDomainIDParams struct { /*DomainID ID of a domain to delete */ DomainID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteV1DomainsDomainIDParams contains all the parameters to send to the API endpoint for the delete v1 domains domain ID operation typically these are written to a http.Request
func NewDeleteV1DomainsDomainIDParams ¶
func NewDeleteV1DomainsDomainIDParams() *DeleteV1DomainsDomainIDParams
NewDeleteV1DomainsDomainIDParams creates a new DeleteV1DomainsDomainIDParams object with the default values initialized.
func NewDeleteV1DomainsDomainIDParamsWithContext ¶
func NewDeleteV1DomainsDomainIDParamsWithContext(ctx context.Context) *DeleteV1DomainsDomainIDParams
NewDeleteV1DomainsDomainIDParamsWithContext creates a new DeleteV1DomainsDomainIDParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteV1DomainsDomainIDParamsWithHTTPClient ¶
func NewDeleteV1DomainsDomainIDParamsWithHTTPClient(client *http.Client) *DeleteV1DomainsDomainIDParams
NewDeleteV1DomainsDomainIDParamsWithHTTPClient creates a new DeleteV1DomainsDomainIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteV1DomainsDomainIDParamsWithTimeout ¶
func NewDeleteV1DomainsDomainIDParamsWithTimeout(timeout time.Duration) *DeleteV1DomainsDomainIDParams
NewDeleteV1DomainsDomainIDParamsWithTimeout creates a new DeleteV1DomainsDomainIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteV1DomainsDomainIDParams) SetContext ¶
func (o *DeleteV1DomainsDomainIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) SetDomainID ¶
func (o *DeleteV1DomainsDomainIDParams) SetDomainID(domainID string)
SetDomainID adds the domainId to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) SetHTTPClient ¶
func (o *DeleteV1DomainsDomainIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) SetTimeout ¶
func (o *DeleteV1DomainsDomainIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) WithContext ¶
func (o *DeleteV1DomainsDomainIDParams) WithContext(ctx context.Context) *DeleteV1DomainsDomainIDParams
WithContext adds the context to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) WithDomainID ¶
func (o *DeleteV1DomainsDomainIDParams) WithDomainID(domainID string) *DeleteV1DomainsDomainIDParams
WithDomainID adds the domainID to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) WithHTTPClient ¶
func (o *DeleteV1DomainsDomainIDParams) WithHTTPClient(client *http.Client) *DeleteV1DomainsDomainIDParams
WithHTTPClient adds the HTTPClient to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) WithTimeout ¶
func (o *DeleteV1DomainsDomainIDParams) WithTimeout(timeout time.Duration) *DeleteV1DomainsDomainIDParams
WithTimeout adds the timeout to the delete v1 domains domain ID params
func (*DeleteV1DomainsDomainIDParams) WriteToRequest ¶
func (o *DeleteV1DomainsDomainIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteV1DomainsDomainIDPreconditionFailed ¶
type DeleteV1DomainsDomainIDPreconditionFailed struct { }
DeleteV1DomainsDomainIDPreconditionFailed handles this case with default header values.
Can't delete domain reservation, it's in use by a tunnel or an input with a custom domain
func NewDeleteV1DomainsDomainIDPreconditionFailed ¶
func NewDeleteV1DomainsDomainIDPreconditionFailed() *DeleteV1DomainsDomainIDPreconditionFailed
NewDeleteV1DomainsDomainIDPreconditionFailed creates a DeleteV1DomainsDomainIDPreconditionFailed with default headers values
func (*DeleteV1DomainsDomainIDPreconditionFailed) Error ¶
func (o *DeleteV1DomainsDomainIDPreconditionFailed) Error() string
type DeleteV1DomainsDomainIDReader ¶
type DeleteV1DomainsDomainIDReader struct {
// contains filtered or unexported fields
}
DeleteV1DomainsDomainIDReader is a Reader for the DeleteV1DomainsDomainID structure.
func (*DeleteV1DomainsDomainIDReader) ReadResponse ¶
func (o *DeleteV1DomainsDomainIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1DomainsOK ¶
GetV1DomainsOK handles this case with default header values.
Successful Response
func NewGetV1DomainsOK ¶
func NewGetV1DomainsOK() *GetV1DomainsOK
NewGetV1DomainsOK creates a GetV1DomainsOK with default headers values
func (*GetV1DomainsOK) Error ¶
func (o *GetV1DomainsOK) Error() string
func (*GetV1DomainsOK) GetPayload ¶
func (o *GetV1DomainsOK) GetPayload() *models.Domain
type GetV1DomainsParams ¶
type GetV1DomainsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1DomainsParams contains all the parameters to send to the API endpoint for the get v1 domains operation typically these are written to a http.Request
func NewGetV1DomainsParams ¶
func NewGetV1DomainsParams() *GetV1DomainsParams
NewGetV1DomainsParams creates a new GetV1DomainsParams object with the default values initialized.
func NewGetV1DomainsParamsWithContext ¶
func NewGetV1DomainsParamsWithContext(ctx context.Context) *GetV1DomainsParams
NewGetV1DomainsParamsWithContext creates a new GetV1DomainsParams object with the default values initialized, and the ability to set a context for a request
func NewGetV1DomainsParamsWithHTTPClient ¶
func NewGetV1DomainsParamsWithHTTPClient(client *http.Client) *GetV1DomainsParams
NewGetV1DomainsParamsWithHTTPClient creates a new GetV1DomainsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetV1DomainsParamsWithTimeout ¶
func NewGetV1DomainsParamsWithTimeout(timeout time.Duration) *GetV1DomainsParams
NewGetV1DomainsParamsWithTimeout creates a new GetV1DomainsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetV1DomainsParams) SetContext ¶
func (o *GetV1DomainsParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 domains params
func (*GetV1DomainsParams) SetHTTPClient ¶
func (o *GetV1DomainsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 domains params
func (*GetV1DomainsParams) SetTimeout ¶
func (o *GetV1DomainsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 domains params
func (*GetV1DomainsParams) WithContext ¶
func (o *GetV1DomainsParams) WithContext(ctx context.Context) *GetV1DomainsParams
WithContext adds the context to the get v1 domains params
func (*GetV1DomainsParams) WithHTTPClient ¶
func (o *GetV1DomainsParams) WithHTTPClient(client *http.Client) *GetV1DomainsParams
WithHTTPClient adds the HTTPClient to the get v1 domains params
func (*GetV1DomainsParams) WithTimeout ¶
func (o *GetV1DomainsParams) WithTimeout(timeout time.Duration) *GetV1DomainsParams
WithTimeout adds the timeout to the get v1 domains params
func (*GetV1DomainsParams) WriteToRequest ¶
func (o *GetV1DomainsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1DomainsReader ¶
type GetV1DomainsReader struct {
// contains filtered or unexported fields
}
GetV1DomainsReader is a Reader for the GetV1Domains structure.
func (*GetV1DomainsReader) ReadResponse ¶
func (o *GetV1DomainsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostV1DomainsBadRequest ¶
type PostV1DomainsBadRequest struct { }
PostV1DomainsBadRequest handles this case with default header values.
Invalid request
func NewPostV1DomainsBadRequest ¶
func NewPostV1DomainsBadRequest() *PostV1DomainsBadRequest
NewPostV1DomainsBadRequest creates a PostV1DomainsBadRequest with default headers values
func (*PostV1DomainsBadRequest) Error ¶
func (o *PostV1DomainsBadRequest) Error() string
type PostV1DomainsCreated ¶
PostV1DomainsCreated handles this case with default header values.
PostV1DomainsCreated post v1 domains created
func NewPostV1DomainsCreated ¶
func NewPostV1DomainsCreated() *PostV1DomainsCreated
NewPostV1DomainsCreated creates a PostV1DomainsCreated with default headers values
func (*PostV1DomainsCreated) Error ¶
func (o *PostV1DomainsCreated) Error() string
func (*PostV1DomainsCreated) GetPayload ¶
func (o *PostV1DomainsCreated) GetPayload() *models.Response
type PostV1DomainsInternalServerError ¶
type PostV1DomainsInternalServerError struct { }
PostV1DomainsInternalServerError handles this case with default header values.
Internal server error
func NewPostV1DomainsInternalServerError ¶
func NewPostV1DomainsInternalServerError() *PostV1DomainsInternalServerError
NewPostV1DomainsInternalServerError creates a PostV1DomainsInternalServerError with default headers values
func (*PostV1DomainsInternalServerError) Error ¶
func (o *PostV1DomainsInternalServerError) Error() string
type PostV1DomainsParams ¶
type PostV1DomainsParams struct { /*Body*/ Body *models.Domain Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostV1DomainsParams contains all the parameters to send to the API endpoint for the post v1 domains operation typically these are written to a http.Request
func NewPostV1DomainsParams ¶
func NewPostV1DomainsParams() *PostV1DomainsParams
NewPostV1DomainsParams creates a new PostV1DomainsParams object with the default values initialized.
func NewPostV1DomainsParamsWithContext ¶
func NewPostV1DomainsParamsWithContext(ctx context.Context) *PostV1DomainsParams
NewPostV1DomainsParamsWithContext creates a new PostV1DomainsParams object with the default values initialized, and the ability to set a context for a request
func NewPostV1DomainsParamsWithHTTPClient ¶
func NewPostV1DomainsParamsWithHTTPClient(client *http.Client) *PostV1DomainsParams
NewPostV1DomainsParamsWithHTTPClient creates a new PostV1DomainsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostV1DomainsParamsWithTimeout ¶
func NewPostV1DomainsParamsWithTimeout(timeout time.Duration) *PostV1DomainsParams
NewPostV1DomainsParamsWithTimeout creates a new PostV1DomainsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostV1DomainsParams) SetBody ¶
func (o *PostV1DomainsParams) SetBody(body *models.Domain)
SetBody adds the body to the post v1 domains params
func (*PostV1DomainsParams) SetContext ¶
func (o *PostV1DomainsParams) SetContext(ctx context.Context)
SetContext adds the context to the post v1 domains params
func (*PostV1DomainsParams) SetHTTPClient ¶
func (o *PostV1DomainsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post v1 domains params
func (*PostV1DomainsParams) SetTimeout ¶
func (o *PostV1DomainsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post v1 domains params
func (*PostV1DomainsParams) WithBody ¶
func (o *PostV1DomainsParams) WithBody(body *models.Domain) *PostV1DomainsParams
WithBody adds the body to the post v1 domains params
func (*PostV1DomainsParams) WithContext ¶
func (o *PostV1DomainsParams) WithContext(ctx context.Context) *PostV1DomainsParams
WithContext adds the context to the post v1 domains params
func (*PostV1DomainsParams) WithHTTPClient ¶
func (o *PostV1DomainsParams) WithHTTPClient(client *http.Client) *PostV1DomainsParams
WithHTTPClient adds the HTTPClient to the post v1 domains params
func (*PostV1DomainsParams) WithTimeout ¶
func (o *PostV1DomainsParams) WithTimeout(timeout time.Duration) *PostV1DomainsParams
WithTimeout adds the timeout to the post v1 domains params
func (*PostV1DomainsParams) WriteToRequest ¶
func (o *PostV1DomainsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostV1DomainsPreconditionFailed ¶
type PostV1DomainsPreconditionFailed struct { }
PostV1DomainsPreconditionFailed handles this case with default header values.
Domain already taken
func NewPostV1DomainsPreconditionFailed ¶
func NewPostV1DomainsPreconditionFailed() *PostV1DomainsPreconditionFailed
NewPostV1DomainsPreconditionFailed creates a PostV1DomainsPreconditionFailed with default headers values
func (*PostV1DomainsPreconditionFailed) Error ¶
func (o *PostV1DomainsPreconditionFailed) Error() string
type PostV1DomainsReader ¶
type PostV1DomainsReader struct {
// contains filtered or unexported fields
}
PostV1DomainsReader is a Reader for the PostV1Domains structure.
func (*PostV1DomainsReader) ReadResponse ¶
func (o *PostV1DomainsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostV1DomainsWrongExchangeServer ¶
type PostV1DomainsWrongExchangeServer struct { }
PostV1DomainsWrongExchangeServer handles this case with default header values.
Your subscription doesn't include domain reservations
func NewPostV1DomainsWrongExchangeServer ¶
func NewPostV1DomainsWrongExchangeServer() *PostV1DomainsWrongExchangeServer
NewPostV1DomainsWrongExchangeServer creates a PostV1DomainsWrongExchangeServer with default headers values
func (*PostV1DomainsWrongExchangeServer) Error ¶
func (o *PostV1DomainsWrongExchangeServer) Error() string