Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PeersListDefault
- type PeersListOK
- type PeersListParams
- func (o *PeersListParams) SetContext(ctx context.Context)
- func (o *PeersListParams) SetDefaults()
- func (o *PeersListParams) SetHTTPClient(client *http.Client)
- func (o *PeersListParams) SetTimeout(timeout time.Duration)
- func (o *PeersListParams) WithContext(ctx context.Context) *PeersListParams
- func (o *PeersListParams) WithDefaults() *PeersListParams
- func (o *PeersListParams) WithHTTPClient(client *http.Client) *PeersListParams
- func (o *PeersListParams) WithTimeout(timeout time.Duration) *PeersListParams
- func (o *PeersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PeersListReader
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 wireguard API
func (*Client) PeersList ¶
func (a *Client) PeersList(params *PeersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PeersListOK, error)
PeersList lists of device peers should be presented on client
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 { PeersList(params *PeersListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PeersListOK, 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 wireguard API client.
type PeersListDefault ¶
PeersListDefault describes a response with status code -1, with default header values.
error
func NewPeersListDefault ¶
func NewPeersListDefault(code int) *PeersListDefault
NewPeersListDefault creates a PeersListDefault with default headers values
func (*PeersListDefault) Code ¶
func (o *PeersListDefault) Code() int
Code gets the status code for the peers list default response
func (*PeersListDefault) Error ¶
func (o *PeersListDefault) Error() string
func (*PeersListDefault) GetPayload ¶
func (o *PeersListDefault) GetPayload() *models.Error
type PeersListOK ¶
type PeersListOK struct {
Payload models.WireGuardPeers
}
PeersListOK describes a response with status code 200, with default header values.
ok
func NewPeersListOK ¶
func NewPeersListOK() *PeersListOK
NewPeersListOK creates a PeersListOK with default headers values
func (*PeersListOK) Error ¶
func (o *PeersListOK) Error() string
func (*PeersListOK) GetPayload ¶
func (o *PeersListOK) GetPayload() models.WireGuardPeers
type PeersListParams ¶
type PeersListParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PeersListParams contains all the parameters to send to the API endpoint
for the peers list operation. Typically these are written to a http.Request.
func NewPeersListParams ¶
func NewPeersListParams() *PeersListParams
NewPeersListParams creates a new PeersListParams 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 NewPeersListParamsWithContext ¶
func NewPeersListParamsWithContext(ctx context.Context) *PeersListParams
NewPeersListParamsWithContext creates a new PeersListParams object with the ability to set a context for a request.
func NewPeersListParamsWithHTTPClient ¶
func NewPeersListParamsWithHTTPClient(client *http.Client) *PeersListParams
NewPeersListParamsWithHTTPClient creates a new PeersListParams object with the ability to set a custom HTTPClient for a request.
func NewPeersListParamsWithTimeout ¶
func NewPeersListParamsWithTimeout(timeout time.Duration) *PeersListParams
NewPeersListParamsWithTimeout creates a new PeersListParams object with the ability to set a timeout on a request.
func (*PeersListParams) SetContext ¶
func (o *PeersListParams) SetContext(ctx context.Context)
SetContext adds the context to the peers list params
func (*PeersListParams) SetDefaults ¶
func (o *PeersListParams) SetDefaults()
SetDefaults hydrates default values in the peers list params (not the query body).
All values with no default are reset to their zero value.
func (*PeersListParams) SetHTTPClient ¶
func (o *PeersListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the peers list params
func (*PeersListParams) SetTimeout ¶
func (o *PeersListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the peers list params
func (*PeersListParams) WithContext ¶
func (o *PeersListParams) WithContext(ctx context.Context) *PeersListParams
WithContext adds the context to the peers list params
func (*PeersListParams) WithDefaults ¶
func (o *PeersListParams) WithDefaults() *PeersListParams
WithDefaults hydrates default values in the peers list params (not the query body).
All values with no default are reset to their zero value.
func (*PeersListParams) WithHTTPClient ¶
func (o *PeersListParams) WithHTTPClient(client *http.Client) *PeersListParams
WithHTTPClient adds the HTTPClient to the peers list params
func (*PeersListParams) WithTimeout ¶
func (o *PeersListParams) WithTimeout(timeout time.Duration) *PeersListParams
WithTimeout adds the timeout to the peers list params
func (*PeersListParams) WriteToRequest ¶
func (o *PeersListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PeersListReader ¶
type PeersListReader struct {
// contains filtered or unexported fields
}
PeersListReader is a Reader for the PeersList structure.
func (*PeersListReader) ReadResponse ¶
func (o *PeersListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.