Documentation ¶
Index ¶
- Constants
- type DeviceCreate
- type DeviceCreateConflict
- type DeviceCreateCreated
- type DeviceCreateDefault
- func (o *DeviceCreateDefault) SetPayload(payload *models.Error)
- func (o *DeviceCreateDefault) SetStatusCode(code int)
- func (o *DeviceCreateDefault) WithPayload(payload *models.Error) *DeviceCreateDefault
- func (o *DeviceCreateDefault) WithStatusCode(code int) *DeviceCreateDefault
- func (o *DeviceCreateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeviceCreateHandler
- type DeviceCreateHandlerFunc
- type DeviceCreateParams
- type DeviceCreateURL
- func (o *DeviceCreateURL) Build() (*url.URL, error)
- func (o *DeviceCreateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeviceCreateURL) Must(u *url.URL, err error) *url.URL
- func (o *DeviceCreateURL) SetBasePath(bp string)
- func (o *DeviceCreateURL) String() string
- func (o *DeviceCreateURL) StringFull(scheme, host string) string
- func (o *DeviceCreateURL) WithBasePath(bp string) *DeviceCreateURL
- type DeviceDelete
- type DeviceDeleteDefault
- func (o *DeviceDeleteDefault) SetPayload(payload *models.Error)
- func (o *DeviceDeleteDefault) SetStatusCode(code int)
- func (o *DeviceDeleteDefault) WithPayload(payload *models.Error) *DeviceDeleteDefault
- func (o *DeviceDeleteDefault) WithStatusCode(code int) *DeviceDeleteDefault
- func (o *DeviceDeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeviceDeleteHandler
- type DeviceDeleteHandlerFunc
- type DeviceDeleteNoContent
- type DeviceDeleteNotFound
- type DeviceDeleteParams
- type DeviceDeleteURL
- func (o *DeviceDeleteURL) Build() (*url.URL, error)
- func (o *DeviceDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeviceDeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *DeviceDeleteURL) SetBasePath(bp string)
- func (o *DeviceDeleteURL) String() string
- func (o *DeviceDeleteURL) StringFull(scheme, host string) string
- func (o *DeviceDeleteURL) WithBasePath(bp string) *DeviceDeleteURL
- type DeviceGet
- type DeviceGetDefault
- func (o *DeviceGetDefault) SetPayload(payload *models.Error)
- func (o *DeviceGetDefault) SetStatusCode(code int)
- func (o *DeviceGetDefault) WithPayload(payload *models.Error) *DeviceGetDefault
- func (o *DeviceGetDefault) WithStatusCode(code int) *DeviceGetDefault
- func (o *DeviceGetDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeviceGetHandler
- type DeviceGetHandlerFunc
- type DeviceGetNotFound
- type DeviceGetOK
- type DeviceGetParams
- type DeviceGetURL
- func (o *DeviceGetURL) Build() (*url.URL, error)
- func (o *DeviceGetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeviceGetURL) Must(u *url.URL, err error) *url.URL
- func (o *DeviceGetURL) SetBasePath(bp string)
- func (o *DeviceGetURL) String() string
- func (o *DeviceGetURL) StringFull(scheme, host string) string
- func (o *DeviceGetURL) WithBasePath(bp string) *DeviceGetURL
- type DeviceList
- type DeviceListDefault
- func (o *DeviceListDefault) SetPayload(payload *models.Error)
- func (o *DeviceListDefault) SetStatusCode(code int)
- func (o *DeviceListDefault) WithPayload(payload *models.Error) *DeviceListDefault
- func (o *DeviceListDefault) WithStatusCode(code int) *DeviceListDefault
- func (o *DeviceListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeviceListHandler
- type DeviceListHandlerFunc
- type DeviceListOK
- type DeviceListParams
- type DeviceListURL
- func (o *DeviceListURL) Build() (*url.URL, error)
- func (o *DeviceListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeviceListURL) Must(u *url.URL, err error) *url.URL
- func (o *DeviceListURL) SetBasePath(bp string)
- func (o *DeviceListURL) String() string
- func (o *DeviceListURL) StringFull(scheme, host string) string
- func (o *DeviceListURL) WithBasePath(bp string) *DeviceListURL
- type PeerCreate
- type PeerCreateCreated
- type PeerCreateDefault
- func (o *PeerCreateDefault) SetPayload(payload *models.Error)
- func (o *PeerCreateDefault) SetStatusCode(code int)
- func (o *PeerCreateDefault) WithPayload(payload *models.Error) *PeerCreateDefault
- func (o *PeerCreateDefault) WithStatusCode(code int) *PeerCreateDefault
- func (o *PeerCreateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PeerCreateHandler
- type PeerCreateHandlerFunc
- type PeerCreateNotFound
- type PeerCreateParams
- type PeerCreateURL
- func (o *PeerCreateURL) Build() (*url.URL, error)
- func (o *PeerCreateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PeerCreateURL) Must(u *url.URL, err error) *url.URL
- func (o *PeerCreateURL) SetBasePath(bp string)
- func (o *PeerCreateURL) String() string
- func (o *PeerCreateURL) StringFull(scheme, host string) string
- func (o *PeerCreateURL) WithBasePath(bp string) *PeerCreateURL
- type PeerDelete
- type PeerDeleteDefault
- func (o *PeerDeleteDefault) SetPayload(payload *models.Error)
- func (o *PeerDeleteDefault) SetStatusCode(code int)
- func (o *PeerDeleteDefault) WithPayload(payload *models.Error) *PeerDeleteDefault
- func (o *PeerDeleteDefault) WithStatusCode(code int) *PeerDeleteDefault
- func (o *PeerDeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PeerDeleteHandler
- type PeerDeleteHandlerFunc
- type PeerDeleteNoContent
- type PeerDeleteNotFound
- type PeerDeleteParams
- type PeerDeleteURL
- func (o *PeerDeleteURL) Build() (*url.URL, error)
- func (o *PeerDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PeerDeleteURL) Must(u *url.URL, err error) *url.URL
- func (o *PeerDeleteURL) SetBasePath(bp string)
- func (o *PeerDeleteURL) String() string
- func (o *PeerDeleteURL) StringFull(scheme, host string) string
- func (o *PeerDeleteURL) WithBasePath(bp string) *PeerDeleteURL
- type PeerGet
- type PeerGetDefault
- func (o *PeerGetDefault) SetPayload(payload *models.Error)
- func (o *PeerGetDefault) SetStatusCode(code int)
- func (o *PeerGetDefault) WithPayload(payload *models.Error) *PeerGetDefault
- func (o *PeerGetDefault) WithStatusCode(code int) *PeerGetDefault
- func (o *PeerGetDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PeerGetHandler
- type PeerGetHandlerFunc
- type PeerGetNotFound
- type PeerGetOK
- type PeerGetParams
- type PeerGetURL
- func (o *PeerGetURL) Build() (*url.URL, error)
- func (o *PeerGetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PeerGetURL) Must(u *url.URL, err error) *url.URL
- func (o *PeerGetURL) SetBasePath(bp string)
- func (o *PeerGetURL) String() string
- func (o *PeerGetURL) StringFull(scheme, host string) string
- func (o *PeerGetURL) WithBasePath(bp string) *PeerGetURL
- type PeerList
- type PeerListDefault
- func (o *PeerListDefault) SetPayload(payload *models.Error)
- func (o *PeerListDefault) SetStatusCode(code int)
- func (o *PeerListDefault) WithPayload(payload *models.Error) *PeerListDefault
- func (o *PeerListDefault) WithStatusCode(code int) *PeerListDefault
- func (o *PeerListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PeerListHandler
- type PeerListHandlerFunc
- type PeerListNotFound
- type PeerListOK
- type PeerListParams
- type PeerListURL
- func (o *PeerListURL) Build() (*url.URL, error)
- func (o *PeerListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PeerListURL) Must(u *url.URL, err error) *url.URL
- func (o *PeerListURL) SetBasePath(bp string)
- func (o *PeerListURL) String() string
- func (o *PeerListURL) StringFull(scheme, host string) string
- func (o *PeerListURL) WithBasePath(bp string) *PeerListURL
Constants ¶
const DeviceCreateConflictCode int = 409
DeviceCreateConflictCode is the HTTP code returned for type DeviceCreateConflict
const DeviceCreateCreatedCode int = 201
DeviceCreateCreatedCode is the HTTP code returned for type DeviceCreateCreated
const DeviceDeleteNoContentCode int = 204
DeviceDeleteNoContentCode is the HTTP code returned for type DeviceDeleteNoContent
const DeviceDeleteNotFoundCode int = 404
DeviceDeleteNotFoundCode is the HTTP code returned for type DeviceDeleteNotFound
const DeviceGetNotFoundCode int = 404
DeviceGetNotFoundCode is the HTTP code returned for type DeviceGetNotFound
const DeviceGetOKCode int = 200
DeviceGetOKCode is the HTTP code returned for type DeviceGetOK
const DeviceListOKCode int = 200
DeviceListOKCode is the HTTP code returned for type DeviceListOK
const PeerCreateCreatedCode int = 201
PeerCreateCreatedCode is the HTTP code returned for type PeerCreateCreated
const PeerCreateNotFoundCode int = 404
PeerCreateNotFoundCode is the HTTP code returned for type PeerCreateNotFound
const PeerDeleteNoContentCode int = 204
PeerDeleteNoContentCode is the HTTP code returned for type PeerDeleteNoContent
const PeerDeleteNotFoundCode int = 404
PeerDeleteNotFoundCode is the HTTP code returned for type PeerDeleteNotFound
const PeerGetNotFoundCode int = 404
PeerGetNotFoundCode is the HTTP code returned for type PeerGetNotFound
const PeerGetOKCode int = 200
PeerGetOKCode is the HTTP code returned for type PeerGetOK
const PeerListNotFoundCode int = 404
PeerListNotFoundCode is the HTTP code returned for type PeerListNotFound
const PeerListOKCode int = 200
PeerListOKCode is the HTTP code returned for type PeerListOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceCreate ¶
type DeviceCreate struct { Context *middleware.Context Handler DeviceCreateHandler }
DeviceCreate swagger:route POST /devices/ wireguard deviceCreate
create new wireguard device
func NewDeviceCreate ¶
func NewDeviceCreate(ctx *middleware.Context, handler DeviceCreateHandler) *DeviceCreate
NewDeviceCreate creates a new http.Handler for the device create operation
func (*DeviceCreate) ServeHTTP ¶
func (o *DeviceCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeviceCreateConflict ¶ added in v0.1.0
DeviceCreateConflict device exists
swagger:response deviceCreateConflict
func NewDeviceCreateConflict ¶ added in v0.1.0
func NewDeviceCreateConflict() *DeviceCreateConflict
NewDeviceCreateConflict creates DeviceCreateConflict with default headers values
func (*DeviceCreateConflict) SetPayload ¶ added in v0.1.0
func (o *DeviceCreateConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the device create conflict response
func (*DeviceCreateConflict) WithPayload ¶ added in v0.1.0
func (o *DeviceCreateConflict) WithPayload(payload *models.Error) *DeviceCreateConflict
WithPayload adds the payload to the device create conflict response
func (*DeviceCreateConflict) WriteResponse ¶ added in v0.1.0
func (o *DeviceCreateConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceCreateCreated ¶
type DeviceCreateCreated struct { /* */ Location string `json:"Location"` }
DeviceCreateCreated created
swagger:response deviceCreateCreated
func NewDeviceCreateCreated ¶
func NewDeviceCreateCreated() *DeviceCreateCreated
NewDeviceCreateCreated creates DeviceCreateCreated with default headers values
func (*DeviceCreateCreated) SetLocation ¶
func (o *DeviceCreateCreated) SetLocation(location string)
SetLocation sets the location to the device create created response
func (*DeviceCreateCreated) WithLocation ¶
func (o *DeviceCreateCreated) WithLocation(location string) *DeviceCreateCreated
WithLocation adds the location to the device create created response
func (*DeviceCreateCreated) WriteResponse ¶
func (o *DeviceCreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceCreateDefault ¶
type DeviceCreateDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeviceCreateDefault error
swagger:response deviceCreateDefault
func NewDeviceCreateDefault ¶
func NewDeviceCreateDefault(code int) *DeviceCreateDefault
NewDeviceCreateDefault creates DeviceCreateDefault with default headers values
func (*DeviceCreateDefault) SetPayload ¶
func (o *DeviceCreateDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the device create default response
func (*DeviceCreateDefault) SetStatusCode ¶
func (o *DeviceCreateDefault) SetStatusCode(code int)
SetStatusCode sets the status to the device create default response
func (*DeviceCreateDefault) WithPayload ¶
func (o *DeviceCreateDefault) WithPayload(payload *models.Error) *DeviceCreateDefault
WithPayload adds the payload to the device create default response
func (*DeviceCreateDefault) WithStatusCode ¶
func (o *DeviceCreateDefault) WithStatusCode(code int) *DeviceCreateDefault
WithStatusCode adds the status to the device create default response
func (*DeviceCreateDefault) WriteResponse ¶
func (o *DeviceCreateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceCreateHandler ¶
type DeviceCreateHandler interface {
Handle(DeviceCreateParams, interface{}) middleware.Responder
}
DeviceCreateHandler interface for that can handle valid device create params
type DeviceCreateHandlerFunc ¶
type DeviceCreateHandlerFunc func(DeviceCreateParams, interface{}) middleware.Responder
DeviceCreateHandlerFunc turns a function with the right signature into a device create handler
func (DeviceCreateHandlerFunc) Handle ¶
func (fn DeviceCreateHandlerFunc) Handle(params DeviceCreateParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeviceCreateParams ¶
type DeviceCreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*device configuration Required: true In: body */ Device *models.WireguardDevice }
DeviceCreateParams contains all the bound params for the device create operation typically these are obtained from a http.Request
swagger:parameters DeviceCreate
func NewDeviceCreateParams ¶
func NewDeviceCreateParams() DeviceCreateParams
NewDeviceCreateParams creates a new DeviceCreateParams object no default values defined in spec.
func (*DeviceCreateParams) BindRequest ¶
func (o *DeviceCreateParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeviceCreateParams() beforehand.
type DeviceCreateURL ¶
type DeviceCreateURL struct {
// contains filtered or unexported fields
}
DeviceCreateURL generates an URL for the device create operation
func (*DeviceCreateURL) Build ¶
func (o *DeviceCreateURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeviceCreateURL) BuildFull ¶
func (o *DeviceCreateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeviceCreateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeviceCreateURL) SetBasePath ¶
func (o *DeviceCreateURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeviceCreateURL) String ¶
func (o *DeviceCreateURL) String() string
String returns the string representation of the path with query string
func (*DeviceCreateURL) StringFull ¶
func (o *DeviceCreateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeviceCreateURL) WithBasePath ¶
func (o *DeviceCreateURL) WithBasePath(bp string) *DeviceCreateURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeviceDelete ¶
type DeviceDelete struct { Context *middleware.Context Handler DeviceDeleteHandler }
DeviceDelete swagger:route DELETE /devices/{dev} wireguard deviceDelete
delete wireguard interface
func NewDeviceDelete ¶
func NewDeviceDelete(ctx *middleware.Context, handler DeviceDeleteHandler) *DeviceDelete
NewDeviceDelete creates a new http.Handler for the device delete operation
func (*DeviceDelete) ServeHTTP ¶
func (o *DeviceDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeviceDeleteDefault ¶
type DeviceDeleteDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeviceDeleteDefault error
swagger:response deviceDeleteDefault
func NewDeviceDeleteDefault ¶
func NewDeviceDeleteDefault(code int) *DeviceDeleteDefault
NewDeviceDeleteDefault creates DeviceDeleteDefault with default headers values
func (*DeviceDeleteDefault) SetPayload ¶
func (o *DeviceDeleteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the device delete default response
func (*DeviceDeleteDefault) SetStatusCode ¶
func (o *DeviceDeleteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the device delete default response
func (*DeviceDeleteDefault) WithPayload ¶
func (o *DeviceDeleteDefault) WithPayload(payload *models.Error) *DeviceDeleteDefault
WithPayload adds the payload to the device delete default response
func (*DeviceDeleteDefault) WithStatusCode ¶
func (o *DeviceDeleteDefault) WithStatusCode(code int) *DeviceDeleteDefault
WithStatusCode adds the status to the device delete default response
func (*DeviceDeleteDefault) WriteResponse ¶
func (o *DeviceDeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceDeleteHandler ¶
type DeviceDeleteHandler interface {
Handle(DeviceDeleteParams, interface{}) middleware.Responder
}
DeviceDeleteHandler interface for that can handle valid device delete params
type DeviceDeleteHandlerFunc ¶
type DeviceDeleteHandlerFunc func(DeviceDeleteParams, interface{}) middleware.Responder
DeviceDeleteHandlerFunc turns a function with the right signature into a device delete handler
func (DeviceDeleteHandlerFunc) Handle ¶
func (fn DeviceDeleteHandlerFunc) Handle(params DeviceDeleteParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeviceDeleteNoContent ¶
type DeviceDeleteNoContent struct { }
DeviceDeleteNoContent no content
swagger:response deviceDeleteNoContent
func NewDeviceDeleteNoContent ¶
func NewDeviceDeleteNoContent() *DeviceDeleteNoContent
NewDeviceDeleteNoContent creates DeviceDeleteNoContent with default headers values
func (*DeviceDeleteNoContent) WriteResponse ¶
func (o *DeviceDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceDeleteNotFound ¶
type DeviceDeleteNotFound struct { }
DeviceDeleteNotFound not found
swagger:response deviceDeleteNotFound
func NewDeviceDeleteNotFound ¶
func NewDeviceDeleteNotFound() *DeviceDeleteNotFound
NewDeviceDeleteNotFound creates DeviceDeleteNotFound with default headers values
func (*DeviceDeleteNotFound) WriteResponse ¶
func (o *DeviceDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceDeleteParams ¶
type DeviceDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Dev string }
DeviceDeleteParams contains all the bound params for the device delete operation typically these are obtained from a http.Request
swagger:parameters DeviceDelete
func NewDeviceDeleteParams ¶
func NewDeviceDeleteParams() DeviceDeleteParams
NewDeviceDeleteParams creates a new DeviceDeleteParams object no default values defined in spec.
func (*DeviceDeleteParams) BindRequest ¶
func (o *DeviceDeleteParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeviceDeleteParams() beforehand.
type DeviceDeleteURL ¶
type DeviceDeleteURL struct { Dev string // contains filtered or unexported fields }
DeviceDeleteURL generates an URL for the device delete operation
func (*DeviceDeleteURL) Build ¶
func (o *DeviceDeleteURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeviceDeleteURL) BuildFull ¶
func (o *DeviceDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeviceDeleteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeviceDeleteURL) SetBasePath ¶
func (o *DeviceDeleteURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeviceDeleteURL) String ¶
func (o *DeviceDeleteURL) String() string
String returns the string representation of the path with query string
func (*DeviceDeleteURL) StringFull ¶
func (o *DeviceDeleteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeviceDeleteURL) WithBasePath ¶
func (o *DeviceDeleteURL) WithBasePath(bp string) *DeviceDeleteURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeviceGet ¶
type DeviceGet struct { Context *middleware.Context Handler DeviceGetHandler }
DeviceGet swagger:route GET /devices/{dev} wireguard deviceGet
get wireguard device details
func NewDeviceGet ¶
func NewDeviceGet(ctx *middleware.Context, handler DeviceGetHandler) *DeviceGet
NewDeviceGet creates a new http.Handler for the device get operation
type DeviceGetDefault ¶
type DeviceGetDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeviceGetDefault error
swagger:response deviceGetDefault
func NewDeviceGetDefault ¶
func NewDeviceGetDefault(code int) *DeviceGetDefault
NewDeviceGetDefault creates DeviceGetDefault with default headers values
func (*DeviceGetDefault) SetPayload ¶
func (o *DeviceGetDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the device get default response
func (*DeviceGetDefault) SetStatusCode ¶
func (o *DeviceGetDefault) SetStatusCode(code int)
SetStatusCode sets the status to the device get default response
func (*DeviceGetDefault) WithPayload ¶
func (o *DeviceGetDefault) WithPayload(payload *models.Error) *DeviceGetDefault
WithPayload adds the payload to the device get default response
func (*DeviceGetDefault) WithStatusCode ¶
func (o *DeviceGetDefault) WithStatusCode(code int) *DeviceGetDefault
WithStatusCode adds the status to the device get default response
func (*DeviceGetDefault) WriteResponse ¶
func (o *DeviceGetDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceGetHandler ¶
type DeviceGetHandler interface {
Handle(DeviceGetParams, interface{}) middleware.Responder
}
DeviceGetHandler interface for that can handle valid device get params
type DeviceGetHandlerFunc ¶
type DeviceGetHandlerFunc func(DeviceGetParams, interface{}) middleware.Responder
DeviceGetHandlerFunc turns a function with the right signature into a device get handler
func (DeviceGetHandlerFunc) Handle ¶
func (fn DeviceGetHandlerFunc) Handle(params DeviceGetParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeviceGetNotFound ¶
type DeviceGetNotFound struct { }
DeviceGetNotFound not found
swagger:response deviceGetNotFound
func NewDeviceGetNotFound ¶
func NewDeviceGetNotFound() *DeviceGetNotFound
NewDeviceGetNotFound creates DeviceGetNotFound with default headers values
func (*DeviceGetNotFound) WriteResponse ¶
func (o *DeviceGetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceGetOK ¶
type DeviceGetOK struct { /* In: Body */ Payload *models.WireguardDevice `json:"body,omitempty"` }
DeviceGetOK ok
swagger:response deviceGetOK
func NewDeviceGetOK ¶
func NewDeviceGetOK() *DeviceGetOK
NewDeviceGetOK creates DeviceGetOK with default headers values
func (*DeviceGetOK) SetPayload ¶
func (o *DeviceGetOK) SetPayload(payload *models.WireguardDevice)
SetPayload sets the payload to the device get o k response
func (*DeviceGetOK) WithPayload ¶
func (o *DeviceGetOK) WithPayload(payload *models.WireguardDevice) *DeviceGetOK
WithPayload adds the payload to the device get o k response
func (*DeviceGetOK) WriteResponse ¶
func (o *DeviceGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceGetParams ¶
type DeviceGetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Dev string }
DeviceGetParams contains all the bound params for the device get operation typically these are obtained from a http.Request
swagger:parameters DeviceGet
func NewDeviceGetParams ¶
func NewDeviceGetParams() DeviceGetParams
NewDeviceGetParams creates a new DeviceGetParams object no default values defined in spec.
func (*DeviceGetParams) BindRequest ¶
func (o *DeviceGetParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeviceGetParams() beforehand.
type DeviceGetURL ¶
type DeviceGetURL struct { Dev string // contains filtered or unexported fields }
DeviceGetURL generates an URL for the device get operation
func (*DeviceGetURL) Build ¶
func (o *DeviceGetURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeviceGetURL) BuildFull ¶
func (o *DeviceGetURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeviceGetURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeviceGetURL) SetBasePath ¶
func (o *DeviceGetURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeviceGetURL) String ¶
func (o *DeviceGetURL) String() string
String returns the string representation of the path with query string
func (*DeviceGetURL) StringFull ¶
func (o *DeviceGetURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeviceGetURL) WithBasePath ¶
func (o *DeviceGetURL) WithBasePath(bp string) *DeviceGetURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeviceList ¶
type DeviceList struct { Context *middleware.Context Handler DeviceListHandler }
DeviceList swagger:route GET /devices/ wireguard deviceList
get wireguard devices
func NewDeviceList ¶
func NewDeviceList(ctx *middleware.Context, handler DeviceListHandler) *DeviceList
NewDeviceList creates a new http.Handler for the device list operation
func (*DeviceList) ServeHTTP ¶
func (o *DeviceList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeviceListDefault ¶
type DeviceListDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeviceListDefault error
swagger:response deviceListDefault
func NewDeviceListDefault ¶
func NewDeviceListDefault(code int) *DeviceListDefault
NewDeviceListDefault creates DeviceListDefault with default headers values
func (*DeviceListDefault) SetPayload ¶
func (o *DeviceListDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the device list default response
func (*DeviceListDefault) SetStatusCode ¶
func (o *DeviceListDefault) SetStatusCode(code int)
SetStatusCode sets the status to the device list default response
func (*DeviceListDefault) WithPayload ¶
func (o *DeviceListDefault) WithPayload(payload *models.Error) *DeviceListDefault
WithPayload adds the payload to the device list default response
func (*DeviceListDefault) WithStatusCode ¶
func (o *DeviceListDefault) WithStatusCode(code int) *DeviceListDefault
WithStatusCode adds the status to the device list default response
func (*DeviceListDefault) WriteResponse ¶
func (o *DeviceListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceListHandler ¶
type DeviceListHandler interface {
Handle(DeviceListParams, interface{}) middleware.Responder
}
DeviceListHandler interface for that can handle valid device list params
type DeviceListHandlerFunc ¶
type DeviceListHandlerFunc func(DeviceListParams, interface{}) middleware.Responder
DeviceListHandlerFunc turns a function with the right signature into a device list handler
func (DeviceListHandlerFunc) Handle ¶
func (fn DeviceListHandlerFunc) Handle(params DeviceListParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type DeviceListOK ¶
type DeviceListOK struct { /* In: Body */ Payload []*models.WireguardDevice `json:"body,omitempty"` }
DeviceListOK ok
swagger:response deviceListOK
func NewDeviceListOK ¶
func NewDeviceListOK() *DeviceListOK
NewDeviceListOK creates DeviceListOK with default headers values
func (*DeviceListOK) SetPayload ¶
func (o *DeviceListOK) SetPayload(payload []*models.WireguardDevice)
SetPayload sets the payload to the device list o k response
func (*DeviceListOK) WithPayload ¶
func (o *DeviceListOK) WithPayload(payload []*models.WireguardDevice) *DeviceListOK
WithPayload adds the payload to the device list o k response
func (*DeviceListOK) WriteResponse ¶
func (o *DeviceListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeviceListParams ¶
DeviceListParams contains all the bound params for the device list operation typically these are obtained from a http.Request
swagger:parameters DeviceList
func NewDeviceListParams ¶
func NewDeviceListParams() DeviceListParams
NewDeviceListParams creates a new DeviceListParams object no default values defined in spec.
func (*DeviceListParams) BindRequest ¶
func (o *DeviceListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeviceListParams() beforehand.
type DeviceListURL ¶
type DeviceListURL struct {
// contains filtered or unexported fields
}
DeviceListURL generates an URL for the device list operation
func (*DeviceListURL) Build ¶
func (o *DeviceListURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeviceListURL) BuildFull ¶
func (o *DeviceListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeviceListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeviceListURL) SetBasePath ¶
func (o *DeviceListURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeviceListURL) String ¶
func (o *DeviceListURL) String() string
String returns the string representation of the path with query string
func (*DeviceListURL) StringFull ¶
func (o *DeviceListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeviceListURL) WithBasePath ¶
func (o *DeviceListURL) WithBasePath(bp string) *DeviceListURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PeerCreate ¶
type PeerCreate struct { Context *middleware.Context Handler PeerCreateHandler }
PeerCreate swagger:route POST /devices/{dev}/peers/ wireguard peerCreate
add peer to wireguard device
func NewPeerCreate ¶
func NewPeerCreate(ctx *middleware.Context, handler PeerCreateHandler) *PeerCreate
NewPeerCreate creates a new http.Handler for the peer create operation
func (*PeerCreate) ServeHTTP ¶
func (o *PeerCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PeerCreateCreated ¶
type PeerCreateCreated struct { /* */ Location string `json:"Location"` }
PeerCreateCreated created
swagger:response peerCreateCreated
func NewPeerCreateCreated ¶
func NewPeerCreateCreated() *PeerCreateCreated
NewPeerCreateCreated creates PeerCreateCreated with default headers values
func (*PeerCreateCreated) SetLocation ¶
func (o *PeerCreateCreated) SetLocation(location string)
SetLocation sets the location to the peer create created response
func (*PeerCreateCreated) WithLocation ¶
func (o *PeerCreateCreated) WithLocation(location string) *PeerCreateCreated
WithLocation adds the location to the peer create created response
func (*PeerCreateCreated) WriteResponse ¶
func (o *PeerCreateCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerCreateDefault ¶
type PeerCreateDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PeerCreateDefault error
swagger:response peerCreateDefault
func NewPeerCreateDefault ¶
func NewPeerCreateDefault(code int) *PeerCreateDefault
NewPeerCreateDefault creates PeerCreateDefault with default headers values
func (*PeerCreateDefault) SetPayload ¶
func (o *PeerCreateDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the peer create default response
func (*PeerCreateDefault) SetStatusCode ¶
func (o *PeerCreateDefault) SetStatusCode(code int)
SetStatusCode sets the status to the peer create default response
func (*PeerCreateDefault) WithPayload ¶
func (o *PeerCreateDefault) WithPayload(payload *models.Error) *PeerCreateDefault
WithPayload adds the payload to the peer create default response
func (*PeerCreateDefault) WithStatusCode ¶
func (o *PeerCreateDefault) WithStatusCode(code int) *PeerCreateDefault
WithStatusCode adds the status to the peer create default response
func (*PeerCreateDefault) WriteResponse ¶
func (o *PeerCreateDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerCreateHandler ¶
type PeerCreateHandler interface {
Handle(PeerCreateParams, interface{}) middleware.Responder
}
PeerCreateHandler interface for that can handle valid peer create params
type PeerCreateHandlerFunc ¶
type PeerCreateHandlerFunc func(PeerCreateParams, interface{}) middleware.Responder
PeerCreateHandlerFunc turns a function with the right signature into a peer create handler
func (PeerCreateHandlerFunc) Handle ¶
func (fn PeerCreateHandlerFunc) Handle(params PeerCreateParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PeerCreateNotFound ¶
type PeerCreateNotFound struct { }
PeerCreateNotFound device not found
swagger:response peerCreateNotFound
func NewPeerCreateNotFound ¶
func NewPeerCreateNotFound() *PeerCreateNotFound
NewPeerCreateNotFound creates PeerCreateNotFound with default headers values
func (*PeerCreateNotFound) WriteResponse ¶
func (o *PeerCreateNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerCreateParams ¶
type PeerCreateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Dev string /*peer configuration Required: true In: body */ Peer *models.WireguardPeer }
PeerCreateParams contains all the bound params for the peer create operation typically these are obtained from a http.Request
swagger:parameters PeerCreate
func NewPeerCreateParams ¶
func NewPeerCreateParams() PeerCreateParams
NewPeerCreateParams creates a new PeerCreateParams object no default values defined in spec.
func (*PeerCreateParams) BindRequest ¶
func (o *PeerCreateParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPeerCreateParams() beforehand.
type PeerCreateURL ¶
type PeerCreateURL struct { Dev string // contains filtered or unexported fields }
PeerCreateURL generates an URL for the peer create operation
func (*PeerCreateURL) Build ¶
func (o *PeerCreateURL) Build() (*url.URL, error)
Build a url path and query string
func (*PeerCreateURL) BuildFull ¶
func (o *PeerCreateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PeerCreateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PeerCreateURL) SetBasePath ¶
func (o *PeerCreateURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PeerCreateURL) String ¶
func (o *PeerCreateURL) String() string
String returns the string representation of the path with query string
func (*PeerCreateURL) StringFull ¶
func (o *PeerCreateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PeerCreateURL) WithBasePath ¶
func (o *PeerCreateURL) WithBasePath(bp string) *PeerCreateURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PeerDelete ¶
type PeerDelete struct { Context *middleware.Context Handler PeerDeleteHandler }
PeerDelete swagger:route DELETE /devices/{dev}/peers/{peer_id} wireguard peerDelete
delete wireguard's peer
func NewPeerDelete ¶
func NewPeerDelete(ctx *middleware.Context, handler PeerDeleteHandler) *PeerDelete
NewPeerDelete creates a new http.Handler for the peer delete operation
func (*PeerDelete) ServeHTTP ¶
func (o *PeerDelete) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PeerDeleteDefault ¶
type PeerDeleteDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PeerDeleteDefault error
swagger:response peerDeleteDefault
func NewPeerDeleteDefault ¶
func NewPeerDeleteDefault(code int) *PeerDeleteDefault
NewPeerDeleteDefault creates PeerDeleteDefault with default headers values
func (*PeerDeleteDefault) SetPayload ¶
func (o *PeerDeleteDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the peer delete default response
func (*PeerDeleteDefault) SetStatusCode ¶
func (o *PeerDeleteDefault) SetStatusCode(code int)
SetStatusCode sets the status to the peer delete default response
func (*PeerDeleteDefault) WithPayload ¶
func (o *PeerDeleteDefault) WithPayload(payload *models.Error) *PeerDeleteDefault
WithPayload adds the payload to the peer delete default response
func (*PeerDeleteDefault) WithStatusCode ¶
func (o *PeerDeleteDefault) WithStatusCode(code int) *PeerDeleteDefault
WithStatusCode adds the status to the peer delete default response
func (*PeerDeleteDefault) WriteResponse ¶
func (o *PeerDeleteDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerDeleteHandler ¶
type PeerDeleteHandler interface {
Handle(PeerDeleteParams, interface{}) middleware.Responder
}
PeerDeleteHandler interface for that can handle valid peer delete params
type PeerDeleteHandlerFunc ¶
type PeerDeleteHandlerFunc func(PeerDeleteParams, interface{}) middleware.Responder
PeerDeleteHandlerFunc turns a function with the right signature into a peer delete handler
func (PeerDeleteHandlerFunc) Handle ¶
func (fn PeerDeleteHandlerFunc) Handle(params PeerDeleteParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PeerDeleteNoContent ¶
type PeerDeleteNoContent struct { }
PeerDeleteNoContent no content
swagger:response peerDeleteNoContent
func NewPeerDeleteNoContent ¶
func NewPeerDeleteNoContent() *PeerDeleteNoContent
NewPeerDeleteNoContent creates PeerDeleteNoContent with default headers values
func (*PeerDeleteNoContent) WriteResponse ¶
func (o *PeerDeleteNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerDeleteNotFound ¶
type PeerDeleteNotFound struct { }
PeerDeleteNotFound not found
swagger:response peerDeleteNotFound
func NewPeerDeleteNotFound ¶
func NewPeerDeleteNotFound() *PeerDeleteNotFound
NewPeerDeleteNotFound creates PeerDeleteNotFound with default headers values
func (*PeerDeleteNotFound) WriteResponse ¶
func (o *PeerDeleteNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerDeleteParams ¶
type PeerDeleteParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Dev string /* Required: true In: path */ PeerID string }
PeerDeleteParams contains all the bound params for the peer delete operation typically these are obtained from a http.Request
swagger:parameters PeerDelete
func NewPeerDeleteParams ¶
func NewPeerDeleteParams() PeerDeleteParams
NewPeerDeleteParams creates a new PeerDeleteParams object no default values defined in spec.
func (*PeerDeleteParams) BindRequest ¶
func (o *PeerDeleteParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPeerDeleteParams() beforehand.
type PeerDeleteURL ¶
PeerDeleteURL generates an URL for the peer delete operation
func (*PeerDeleteURL) Build ¶
func (o *PeerDeleteURL) Build() (*url.URL, error)
Build a url path and query string
func (*PeerDeleteURL) BuildFull ¶
func (o *PeerDeleteURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PeerDeleteURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PeerDeleteURL) SetBasePath ¶
func (o *PeerDeleteURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PeerDeleteURL) String ¶
func (o *PeerDeleteURL) String() string
String returns the string representation of the path with query string
func (*PeerDeleteURL) StringFull ¶
func (o *PeerDeleteURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PeerDeleteURL) WithBasePath ¶
func (o *PeerDeleteURL) WithBasePath(bp string) *PeerDeleteURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PeerGet ¶
type PeerGet struct { Context *middleware.Context Handler PeerGetHandler }
PeerGet swagger:route GET /devices/{dev}/peers/{peer_id} wireguard peerGet
wireguard peer's detail
func NewPeerGet ¶
func NewPeerGet(ctx *middleware.Context, handler PeerGetHandler) *PeerGet
NewPeerGet creates a new http.Handler for the peer get operation
type PeerGetDefault ¶
type PeerGetDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PeerGetDefault error
swagger:response peerGetDefault
func NewPeerGetDefault ¶
func NewPeerGetDefault(code int) *PeerGetDefault
NewPeerGetDefault creates PeerGetDefault with default headers values
func (*PeerGetDefault) SetPayload ¶
func (o *PeerGetDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the peer get default response
func (*PeerGetDefault) SetStatusCode ¶
func (o *PeerGetDefault) SetStatusCode(code int)
SetStatusCode sets the status to the peer get default response
func (*PeerGetDefault) WithPayload ¶
func (o *PeerGetDefault) WithPayload(payload *models.Error) *PeerGetDefault
WithPayload adds the payload to the peer get default response
func (*PeerGetDefault) WithStatusCode ¶
func (o *PeerGetDefault) WithStatusCode(code int) *PeerGetDefault
WithStatusCode adds the status to the peer get default response
func (*PeerGetDefault) WriteResponse ¶
func (o *PeerGetDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerGetHandler ¶
type PeerGetHandler interface {
Handle(PeerGetParams, interface{}) middleware.Responder
}
PeerGetHandler interface for that can handle valid peer get params
type PeerGetHandlerFunc ¶
type PeerGetHandlerFunc func(PeerGetParams, interface{}) middleware.Responder
PeerGetHandlerFunc turns a function with the right signature into a peer get handler
func (PeerGetHandlerFunc) Handle ¶
func (fn PeerGetHandlerFunc) Handle(params PeerGetParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PeerGetNotFound ¶
type PeerGetNotFound struct { }
PeerGetNotFound peer/device not found
swagger:response peerGetNotFound
func NewPeerGetNotFound ¶
func NewPeerGetNotFound() *PeerGetNotFound
NewPeerGetNotFound creates PeerGetNotFound with default headers values
func (*PeerGetNotFound) WriteResponse ¶
func (o *PeerGetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerGetOK ¶
type PeerGetOK struct { /* In: Body */ Payload *models.WireguardPeer `json:"body,omitempty"` }
PeerGetOK ok
swagger:response peerGetOK
func NewPeerGetOK ¶
func NewPeerGetOK() *PeerGetOK
NewPeerGetOK creates PeerGetOK with default headers values
func (*PeerGetOK) SetPayload ¶
func (o *PeerGetOK) SetPayload(payload *models.WireguardPeer)
SetPayload sets the payload to the peer get o k response
func (*PeerGetOK) WithPayload ¶
func (o *PeerGetOK) WithPayload(payload *models.WireguardPeer) *PeerGetOK
WithPayload adds the payload to the peer get o k response
func (*PeerGetOK) WriteResponse ¶
func (o *PeerGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerGetParams ¶
type PeerGetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Dev string /* Required: true In: path */ PeerID string }
PeerGetParams contains all the bound params for the peer get operation typically these are obtained from a http.Request
swagger:parameters PeerGet
func NewPeerGetParams ¶
func NewPeerGetParams() PeerGetParams
NewPeerGetParams creates a new PeerGetParams object no default values defined in spec.
func (*PeerGetParams) BindRequest ¶
func (o *PeerGetParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPeerGetParams() beforehand.
type PeerGetURL ¶
PeerGetURL generates an URL for the peer get operation
func (*PeerGetURL) Build ¶
func (o *PeerGetURL) Build() (*url.URL, error)
Build a url path and query string
func (*PeerGetURL) BuildFull ¶
func (o *PeerGetURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PeerGetURL) SetBasePath ¶
func (o *PeerGetURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PeerGetURL) String ¶
func (o *PeerGetURL) String() string
String returns the string representation of the path with query string
func (*PeerGetURL) StringFull ¶
func (o *PeerGetURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PeerGetURL) WithBasePath ¶
func (o *PeerGetURL) WithBasePath(bp string) *PeerGetURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type PeerList ¶
type PeerList struct { Context *middleware.Context Handler PeerListHandler }
PeerList swagger:route GET /devices/{dev}/peers/ wireguard peerList
get wireguard device's peers
func NewPeerList ¶
func NewPeerList(ctx *middleware.Context, handler PeerListHandler) *PeerList
NewPeerList creates a new http.Handler for the peer list operation
type PeerListDefault ¶
type PeerListDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PeerListDefault error
swagger:response peerListDefault
func NewPeerListDefault ¶
func NewPeerListDefault(code int) *PeerListDefault
NewPeerListDefault creates PeerListDefault with default headers values
func (*PeerListDefault) SetPayload ¶
func (o *PeerListDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the peer list default response
func (*PeerListDefault) SetStatusCode ¶
func (o *PeerListDefault) SetStatusCode(code int)
SetStatusCode sets the status to the peer list default response
func (*PeerListDefault) WithPayload ¶
func (o *PeerListDefault) WithPayload(payload *models.Error) *PeerListDefault
WithPayload adds the payload to the peer list default response
func (*PeerListDefault) WithStatusCode ¶
func (o *PeerListDefault) WithStatusCode(code int) *PeerListDefault
WithStatusCode adds the status to the peer list default response
func (*PeerListDefault) WriteResponse ¶
func (o *PeerListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerListHandler ¶
type PeerListHandler interface {
Handle(PeerListParams, interface{}) middleware.Responder
}
PeerListHandler interface for that can handle valid peer list params
type PeerListHandlerFunc ¶
type PeerListHandlerFunc func(PeerListParams, interface{}) middleware.Responder
PeerListHandlerFunc turns a function with the right signature into a peer list handler
func (PeerListHandlerFunc) Handle ¶
func (fn PeerListHandlerFunc) Handle(params PeerListParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type PeerListNotFound ¶
type PeerListNotFound struct { }
PeerListNotFound not found
swagger:response peerListNotFound
func NewPeerListNotFound ¶
func NewPeerListNotFound() *PeerListNotFound
NewPeerListNotFound creates PeerListNotFound with default headers values
func (*PeerListNotFound) WriteResponse ¶
func (o *PeerListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerListOK ¶
type PeerListOK struct { /* In: Body */ Payload []*models.WireguardPeer `json:"body,omitempty"` }
PeerListOK ok
swagger:response peerListOK
func NewPeerListOK ¶
func NewPeerListOK() *PeerListOK
NewPeerListOK creates PeerListOK with default headers values
func (*PeerListOK) SetPayload ¶
func (o *PeerListOK) SetPayload(payload []*models.WireguardPeer)
SetPayload sets the payload to the peer list o k response
func (*PeerListOK) WithPayload ¶
func (o *PeerListOK) WithPayload(payload []*models.WireguardPeer) *PeerListOK
WithPayload adds the payload to the peer list o k response
func (*PeerListOK) WriteResponse ¶
func (o *PeerListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PeerListParams ¶
type PeerListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ Dev string }
PeerListParams contains all the bound params for the peer list operation typically these are obtained from a http.Request
swagger:parameters PeerList
func NewPeerListParams ¶
func NewPeerListParams() PeerListParams
NewPeerListParams creates a new PeerListParams object no default values defined in spec.
func (*PeerListParams) BindRequest ¶
func (o *PeerListParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPeerListParams() beforehand.
type PeerListURL ¶
type PeerListURL struct { Dev string // contains filtered or unexported fields }
PeerListURL generates an URL for the peer list operation
func (*PeerListURL) Build ¶
func (o *PeerListURL) Build() (*url.URL, error)
Build a url path and query string
func (*PeerListURL) BuildFull ¶
func (o *PeerListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PeerListURL) SetBasePath ¶
func (o *PeerListURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PeerListURL) String ¶
func (o *PeerListURL) String() string
String returns the string representation of the path with query string
func (*PeerListURL) StringFull ¶
func (o *PeerListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PeerListURL) WithBasePath ¶
func (o *PeerListURL) WithBasePath(bp string) *PeerListURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- device_create.go
- device_create_parameters.go
- device_create_responses.go
- device_create_urlbuilder.go
- device_delete.go
- device_delete_parameters.go
- device_delete_responses.go
- device_delete_urlbuilder.go
- device_get.go
- device_get_parameters.go
- device_get_responses.go
- device_get_urlbuilder.go
- device_list.go
- device_list_parameters.go
- device_list_responses.go
- device_list_urlbuilder.go
- peer_create.go
- peer_create_parameters.go
- peer_create_responses.go
- peer_create_urlbuilder.go
- peer_delete.go
- peer_delete_parameters.go
- peer_delete_responses.go
- peer_delete_urlbuilder.go
- peer_get.go
- peer_get_parameters.go
- peer_get_responses.go
- peer_get_urlbuilder.go
- peer_list.go
- peer_list_parameters.go
- peer_list_responses.go
- peer_list_urlbuilder.go