Documentation ¶
Overview ¶
Package zerotier provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package zerotier provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package zerotier provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- Constants
- func Get6Plane(networkID, address string) (string, error)
- func GetRFC4193(networkID, address string) (string, error)
- func NewDeleteControllerNetworkMemberRequest(server string, networkID string, nodeID string) (*http.Request, error)
- func NewDeleteControllerNetworkRequest(server string, networkID string) (*http.Request, error)
- func NewDeleteNetworkRequest(server string, networkID string) (*http.Request, error)
- func NewGenerateControllerNetworkRequest(server string, controllerID string, ...) (*http.Request, error)
- func NewGenerateControllerNetworkRequestWithBody(server string, controllerID string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetControllerNetworkMemberRequest(server string, networkID string, nodeID string) (*http.Request, error)
- func NewGetControllerNetworkMembersRequest(server string, networkID string) (*http.Request, error)
- func NewGetControllerNetworkRequest(server string, networkID string) (*http.Request, error)
- func NewGetControllerNetworksRequest(server string) (*http.Request, error)
- func NewGetControllerStatusRequest(server string) (*http.Request, error)
- func NewGetNetworkRequest(server string, networkID string) (*http.Request, error)
- func NewGetNetworksRequest(server string) (*http.Request, error)
- func NewGetPeerRequest(server string, address string) (*http.Request, error)
- func NewGetPeersRequest(server string) (*http.Request, error)
- func NewGetStatusRequest(server string) (*http.Request, error)
- func NewSetControllerNetworkMemberRequest(server string, networkID string, nodeID string, ...) (*http.Request, error)
- func NewSetControllerNetworkMemberRequestWithBody(server string, networkID string, nodeID string, contentType string, ...) (*http.Request, error)
- func NewSetControllerNetworkRequest(server string, networkID string, body SetControllerNetworkJSONRequestBody) (*http.Request, error)
- func NewSetControllerNetworkRequestWithBody(server string, networkID string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateNetworkRequest(server string, networkID string, body UpdateNetworkJSONRequestBody) (*http.Request, error)
- func NewUpdateNetworkRequestWithBody(server string, networkID string, contentType string, body io.Reader) (*http.Request, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type Client
- func (c *Client) DeleteControllerNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteControllerNetworkMember(ctx context.Context, networkID string, nodeID string, ...) (*http.Response, error)
- func (c *Client) DeleteNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GenerateControllerNetwork(ctx context.Context, controllerID string, ...) (*http.Response, error)
- func (c *Client) GenerateControllerNetworkWithBody(ctx context.Context, controllerID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetControllerNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetControllerNetworkMember(ctx context.Context, networkID string, nodeID string, ...) (*http.Response, error)
- func (c *Client) GetControllerNetworkMembers(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetControllerNetworks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetControllerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNetworks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPeer(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPeers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SetControllerNetwork(ctx context.Context, networkID string, ...) (*http.Response, error)
- func (c *Client) SetControllerNetworkMember(ctx context.Context, networkID string, nodeID string, ...) (*http.Response, error)
- func (c *Client) SetControllerNetworkMemberWithBody(ctx context.Context, networkID string, nodeID string, contentType string, ...) (*http.Response, error)
- func (c *Client) SetControllerNetworkWithBody(ctx context.Context, networkID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateNetwork(ctx context.Context, networkID string, body UpdateNetworkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateNetworkWithBody(ctx context.Context, networkID string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, ...) (*DeleteControllerNetworkMemberResponse, error)
- func (c *ClientWithResponses) DeleteControllerNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteControllerNetworkResponse, error)
- func (c *ClientWithResponses) DeleteNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteNetworkResponse, error)
- func (c *ClientWithResponses) GenerateControllerNetworkWithBodyWithResponse(ctx context.Context, controllerID string, contentType string, body io.Reader, ...) (*GenerateControllerNetworkResponse, error)
- func (c *ClientWithResponses) GenerateControllerNetworkWithResponse(ctx context.Context, controllerID string, ...) (*GenerateControllerNetworkResponse, error)
- func (c *ClientWithResponses) GetControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, ...) (*GetControllerNetworkMemberResponse, error)
- func (c *ClientWithResponses) GetControllerNetworkMembersWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkMembersResponse, error)
- func (c *ClientWithResponses) GetControllerNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkResponse, error)
- func (c *ClientWithResponses) GetControllerNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetControllerNetworksResponse, error)
- func (c *ClientWithResponses) GetControllerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetControllerStatusResponse, error)
- func (c *ClientWithResponses) GetNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetNetworkResponse, error)
- func (c *ClientWithResponses) GetNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNetworksResponse, error)
- func (c *ClientWithResponses) GetPeerWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetPeerResponse, error)
- func (c *ClientWithResponses) GetPeersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPeersResponse, error)
- func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
- func (c *ClientWithResponses) SetControllerNetworkMemberWithBodyWithResponse(ctx context.Context, networkID string, nodeID string, contentType string, ...) (*SetControllerNetworkMemberResponse, error)
- func (c *ClientWithResponses) SetControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, ...) (*SetControllerNetworkMemberResponse, error)
- func (c *ClientWithResponses) SetControllerNetworkWithBodyWithResponse(ctx context.Context, networkID string, contentType string, body io.Reader, ...) (*SetControllerNetworkResponse, error)
- func (c *ClientWithResponses) SetControllerNetworkWithResponse(ctx context.Context, networkID string, ...) (*SetControllerNetworkResponse, error)
- func (c *ClientWithResponses) UpdateNetworkWithBodyWithResponse(ctx context.Context, networkID string, contentType string, body io.Reader, ...) (*UpdateNetworkResponse, error)
- func (c *ClientWithResponses) UpdateNetworkWithResponse(ctx context.Context, networkID string, body UpdateNetworkJSONRequestBody, ...) (*UpdateNetworkResponse, error)
- type ClientWithResponsesInterface
- type ControllerNetwork
- type ControllerNetworkMember
- type ControllerStatus
- type DeleteControllerNetworkMemberResponse
- type DeleteControllerNetworkResponse
- type DeleteNetworkResponse
- type EchoRouter
- type GenerateControllerNetworkJSONRequestBody
- type GenerateControllerNetworkResponse
- type GetControllerNetworkMemberResponse
- type GetControllerNetworkMembersResponse
- type GetControllerNetworkResponse
- type GetControllerNetworksResponse
- type GetControllerStatusResponse
- type GetNetworkResponse
- type GetNetworksResponse
- type GetPeerResponse
- type GetPeersResponse
- type GetStatusResponse
- type HttpRequestDoer
- type IpAssignmentPool
- type Network
- type Peer
- type RequestEditorFn
- type Route
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) DeleteControllerNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteControllerNetworkMember(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GenerateControllerNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetControllerNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetControllerNetworkMember(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetControllerNetworkMembers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetControllerNetworks(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetControllerStatus(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNetworks(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPeer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPeers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetStatus(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) SetControllerNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) SetControllerNetworkMember(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateNetwork(ctx echo.Context) error
- type SetControllerNetworkJSONRequestBody
- type SetControllerNetworkMemberJSONRequestBody
- type SetControllerNetworkMemberResponse
- type SetControllerNetworkResponse
- type Status
- type UpdateNetworkJSONRequestBody
- type UpdateNetworkResponse
- type V4AssignMode
- type V6AssignMode
Constants ¶
const (
ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetRFC4193 ¶ added in v0.7.1
func NewDeleteControllerNetworkMemberRequest ¶
func NewDeleteControllerNetworkMemberRequest(server string, networkID string, nodeID string) (*http.Request, error)
NewDeleteControllerNetworkMemberRequest generates requests for DeleteControllerNetworkMember
func NewDeleteControllerNetworkRequest ¶
NewDeleteControllerNetworkRequest generates requests for DeleteControllerNetwork
func NewDeleteNetworkRequest ¶
NewDeleteNetworkRequest generates requests for DeleteNetwork
func NewGenerateControllerNetworkRequest ¶
func NewGenerateControllerNetworkRequest(server string, controllerID string, body GenerateControllerNetworkJSONRequestBody) (*http.Request, error)
NewGenerateControllerNetworkRequest calls the generic GenerateControllerNetwork builder with application/json body
func NewGenerateControllerNetworkRequestWithBody ¶
func NewGenerateControllerNetworkRequestWithBody(server string, controllerID string, contentType string, body io.Reader) (*http.Request, error)
NewGenerateControllerNetworkRequestWithBody generates requests for GenerateControllerNetwork with any type of body
func NewGetControllerNetworkMemberRequest ¶
func NewGetControllerNetworkMemberRequest(server string, networkID string, nodeID string) (*http.Request, error)
NewGetControllerNetworkMemberRequest generates requests for GetControllerNetworkMember
func NewGetControllerNetworkMembersRequest ¶
NewGetControllerNetworkMembersRequest generates requests for GetControllerNetworkMembers
func NewGetControllerNetworkRequest ¶
NewGetControllerNetworkRequest generates requests for GetControllerNetwork
func NewGetControllerNetworksRequest ¶
NewGetControllerNetworksRequest generates requests for GetControllerNetworks
func NewGetControllerStatusRequest ¶
NewGetControllerStatusRequest generates requests for GetControllerStatus
func NewGetNetworkRequest ¶
NewGetNetworkRequest generates requests for GetNetwork
func NewGetNetworksRequest ¶
NewGetNetworksRequest generates requests for GetNetworks
func NewGetPeerRequest ¶
NewGetPeerRequest generates requests for GetPeer
func NewGetPeersRequest ¶
NewGetPeersRequest generates requests for GetPeers
func NewGetStatusRequest ¶
NewGetStatusRequest generates requests for GetStatus
func NewSetControllerNetworkMemberRequest ¶
func NewSetControllerNetworkMemberRequest(server string, networkID string, nodeID string, body SetControllerNetworkMemberJSONRequestBody) (*http.Request, error)
NewSetControllerNetworkMemberRequest calls the generic SetControllerNetworkMember builder with application/json body
func NewSetControllerNetworkMemberRequestWithBody ¶
func NewSetControllerNetworkMemberRequestWithBody(server string, networkID string, nodeID string, contentType string, body io.Reader) (*http.Request, error)
NewSetControllerNetworkMemberRequestWithBody generates requests for SetControllerNetworkMember with any type of body
func NewSetControllerNetworkRequest ¶
func NewSetControllerNetworkRequest(server string, networkID string, body SetControllerNetworkJSONRequestBody) (*http.Request, error)
NewSetControllerNetworkRequest calls the generic SetControllerNetwork builder with application/json body
func NewSetControllerNetworkRequestWithBody ¶
func NewSetControllerNetworkRequestWithBody(server string, networkID string, contentType string, body io.Reader) (*http.Request, error)
NewSetControllerNetworkRequestWithBody generates requests for SetControllerNetwork with any type of body
func NewUpdateNetworkRequest ¶
func NewUpdateNetworkRequest(server string, networkID string, body UpdateNetworkJSONRequestBody) (*http.Request, error)
NewUpdateNetworkRequest calls the generic UpdateNetwork builder with application/json body
func NewUpdateNetworkRequestWithBody ¶
func NewUpdateNetworkRequestWithBody(server string, networkID string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNetworkRequestWithBody generates requests for UpdateNetwork with any type of body
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewAuthClient ¶
func NewAuthClient(server string, authtoken string, opts ...ClientOption) (*Client, error)
NewAuthClient creates a new Client, with the server's required authtoken and reasonable defaults.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteControllerNetwork ¶
func (*Client) DeleteControllerNetworkMember ¶
func (*Client) DeleteNetwork ¶
func (*Client) GenerateControllerNetwork ¶
func (c *Client) GenerateControllerNetwork(ctx context.Context, controllerID string, body GenerateControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GenerateControllerNetworkWithBody ¶
func (*Client) GetControllerNetwork ¶
func (*Client) GetControllerNetworkMember ¶
func (*Client) GetControllerNetworkMembers ¶
func (*Client) GetControllerNetworks ¶
func (*Client) GetControllerStatus ¶
func (*Client) GetNetwork ¶
func (*Client) GetNetworks ¶
func (*Client) SetControllerNetwork ¶
func (c *Client) SetControllerNetwork(ctx context.Context, networkID string, body SetControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetControllerNetworkMember ¶
func (c *Client) SetControllerNetworkMember(ctx context.Context, networkID string, nodeID string, body SetControllerNetworkMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetControllerNetworkMemberWithBody ¶
func (*Client) SetControllerNetworkWithBody ¶
func (*Client) UpdateNetwork ¶
func (c *Client) UpdateNetwork(ctx context.Context, networkID string, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetControllerStatus request GetControllerStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetControllerNetworks request GetControllerNetworks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GenerateControllerNetwork request with any body GenerateControllerNetworkWithBody(ctx context.Context, controllerID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) GenerateControllerNetwork(ctx context.Context, controllerID string, body GenerateControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteControllerNetwork request DeleteControllerNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetControllerNetwork request GetControllerNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error) // SetControllerNetwork request with any body SetControllerNetworkWithBody(ctx context.Context, networkID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SetControllerNetwork(ctx context.Context, networkID string, body SetControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetControllerNetworkMembers request GetControllerNetworkMembers(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteControllerNetworkMember request DeleteControllerNetworkMember(ctx context.Context, networkID string, nodeID string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetControllerNetworkMember request GetControllerNetworkMember(ctx context.Context, networkID string, nodeID string, reqEditors ...RequestEditorFn) (*http.Response, error) // SetControllerNetworkMember request with any body SetControllerNetworkMemberWithBody(ctx context.Context, networkID string, nodeID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SetControllerNetworkMember(ctx context.Context, networkID string, nodeID string, body SetControllerNetworkMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNetworks request GetNetworks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteNetwork request DeleteNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetNetwork request GetNetwork(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateNetwork request with any body UpdateNetworkWithBody(ctx context.Context, networkID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateNetwork(ctx context.Context, networkID string, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPeers request GetPeers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetPeer request GetPeer(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetStatus request GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewAuthClientWithResponses ¶
func NewAuthClientWithResponses(server string, authtoken string, opts ...ClientOption) (*ClientWithResponses, error)
NewAuthClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling and the server's required authtoken.
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteControllerNetworkMemberWithResponse ¶
func (c *ClientWithResponses) DeleteControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, reqEditors ...RequestEditorFn) (*DeleteControllerNetworkMemberResponse, error)
DeleteControllerNetworkMemberWithResponse request returning *DeleteControllerNetworkMemberResponse
func (*ClientWithResponses) DeleteControllerNetworkWithResponse ¶
func (c *ClientWithResponses) DeleteControllerNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteControllerNetworkResponse, error)
DeleteControllerNetworkWithResponse request returning *DeleteControllerNetworkResponse
func (*ClientWithResponses) DeleteNetworkWithResponse ¶
func (c *ClientWithResponses) DeleteNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteNetworkResponse, error)
DeleteNetworkWithResponse request returning *DeleteNetworkResponse
func (*ClientWithResponses) GenerateControllerNetworkWithBodyWithResponse ¶
func (c *ClientWithResponses) GenerateControllerNetworkWithBodyWithResponse(ctx context.Context, controllerID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateControllerNetworkResponse, error)
GenerateControllerNetworkWithBodyWithResponse request with arbitrary body returning *GenerateControllerNetworkResponse
func (*ClientWithResponses) GenerateControllerNetworkWithResponse ¶
func (c *ClientWithResponses) GenerateControllerNetworkWithResponse(ctx context.Context, controllerID string, body GenerateControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateControllerNetworkResponse, error)
func (*ClientWithResponses) GetControllerNetworkMemberWithResponse ¶
func (c *ClientWithResponses) GetControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkMemberResponse, error)
GetControllerNetworkMemberWithResponse request returning *GetControllerNetworkMemberResponse
func (*ClientWithResponses) GetControllerNetworkMembersWithResponse ¶
func (c *ClientWithResponses) GetControllerNetworkMembersWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkMembersResponse, error)
GetControllerNetworkMembersWithResponse request returning *GetControllerNetworkMembersResponse
func (*ClientWithResponses) GetControllerNetworkWithResponse ¶
func (c *ClientWithResponses) GetControllerNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkResponse, error)
GetControllerNetworkWithResponse request returning *GetControllerNetworkResponse
func (*ClientWithResponses) GetControllerNetworksWithResponse ¶
func (c *ClientWithResponses) GetControllerNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetControllerNetworksResponse, error)
GetControllerNetworksWithResponse request returning *GetControllerNetworksResponse
func (*ClientWithResponses) GetControllerStatusWithResponse ¶
func (c *ClientWithResponses) GetControllerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetControllerStatusResponse, error)
GetControllerStatusWithResponse request returning *GetControllerStatusResponse
func (*ClientWithResponses) GetNetworkWithResponse ¶
func (c *ClientWithResponses) GetNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetNetworkResponse, error)
GetNetworkWithResponse request returning *GetNetworkResponse
func (*ClientWithResponses) GetNetworksWithResponse ¶
func (c *ClientWithResponses) GetNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNetworksResponse, error)
GetNetworksWithResponse request returning *GetNetworksResponse
func (*ClientWithResponses) GetPeerWithResponse ¶
func (c *ClientWithResponses) GetPeerWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetPeerResponse, error)
GetPeerWithResponse request returning *GetPeerResponse
func (*ClientWithResponses) GetPeersWithResponse ¶
func (c *ClientWithResponses) GetPeersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPeersResponse, error)
GetPeersWithResponse request returning *GetPeersResponse
func (*ClientWithResponses) GetStatusWithResponse ¶
func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
GetStatusWithResponse request returning *GetStatusResponse
func (*ClientWithResponses) SetControllerNetworkMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) SetControllerNetworkMemberWithBodyWithResponse(ctx context.Context, networkID string, nodeID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetControllerNetworkMemberResponse, error)
SetControllerNetworkMemberWithBodyWithResponse request with arbitrary body returning *SetControllerNetworkMemberResponse
func (*ClientWithResponses) SetControllerNetworkMemberWithResponse ¶
func (c *ClientWithResponses) SetControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, body SetControllerNetworkMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*SetControllerNetworkMemberResponse, error)
func (*ClientWithResponses) SetControllerNetworkWithBodyWithResponse ¶
func (c *ClientWithResponses) SetControllerNetworkWithBodyWithResponse(ctx context.Context, networkID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetControllerNetworkResponse, error)
SetControllerNetworkWithBodyWithResponse request with arbitrary body returning *SetControllerNetworkResponse
func (*ClientWithResponses) SetControllerNetworkWithResponse ¶
func (c *ClientWithResponses) SetControllerNetworkWithResponse(ctx context.Context, networkID string, body SetControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*SetControllerNetworkResponse, error)
func (*ClientWithResponses) UpdateNetworkWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNetworkWithBodyWithResponse(ctx context.Context, networkID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error)
UpdateNetworkWithBodyWithResponse request with arbitrary body returning *UpdateNetworkResponse
func (*ClientWithResponses) UpdateNetworkWithResponse ¶
func (c *ClientWithResponses) UpdateNetworkWithResponse(ctx context.Context, networkID string, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetControllerStatus request GetControllerStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetControllerStatusResponse, error) // GetControllerNetworks request GetControllerNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetControllerNetworksResponse, error) // GenerateControllerNetwork request with any body GenerateControllerNetworkWithBodyWithResponse(ctx context.Context, controllerID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateControllerNetworkResponse, error) GenerateControllerNetworkWithResponse(ctx context.Context, controllerID string, body GenerateControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateControllerNetworkResponse, error) // DeleteControllerNetwork request DeleteControllerNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteControllerNetworkResponse, error) // GetControllerNetwork request GetControllerNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkResponse, error) // SetControllerNetwork request with any body SetControllerNetworkWithBodyWithResponse(ctx context.Context, networkID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetControllerNetworkResponse, error) SetControllerNetworkWithResponse(ctx context.Context, networkID string, body SetControllerNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*SetControllerNetworkResponse, error) // GetControllerNetworkMembers request GetControllerNetworkMembersWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkMembersResponse, error) // DeleteControllerNetworkMember request DeleteControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, reqEditors ...RequestEditorFn) (*DeleteControllerNetworkMemberResponse, error) // GetControllerNetworkMember request GetControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, reqEditors ...RequestEditorFn) (*GetControllerNetworkMemberResponse, error) // SetControllerNetworkMember request with any body SetControllerNetworkMemberWithBodyWithResponse(ctx context.Context, networkID string, nodeID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetControllerNetworkMemberResponse, error) SetControllerNetworkMemberWithResponse(ctx context.Context, networkID string, nodeID string, body SetControllerNetworkMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*SetControllerNetworkMemberResponse, error) // GetNetworks request GetNetworksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNetworksResponse, error) // DeleteNetwork request DeleteNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*DeleteNetworkResponse, error) // GetNetwork request GetNetworkWithResponse(ctx context.Context, networkID string, reqEditors ...RequestEditorFn) (*GetNetworkResponse, error) // UpdateNetwork request with any body UpdateNetworkWithBodyWithResponse(ctx context.Context, networkID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error) UpdateNetworkWithResponse(ctx context.Context, networkID string, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error) // GetPeers request GetPeersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPeersResponse, error) // GetPeer request GetPeerWithResponse(ctx context.Context, address string, reqEditors ...RequestEditorFn) (*GetPeerResponse, error) // GetStatus request GetStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatusResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ControllerNetwork ¶
type ControllerNetwork struct { Capabilities *[]map[string]interface{} `json:"capabilities,omitempty"` CreationTime *float32 `json:"creationTime,omitempty"` EnableBroadcast *bool `json:"enableBroadcast,omitempty"` Id *string `json:"id,omitempty"` IpAssignmentPools *[]IpAssignmentPool `json:"ipAssignmentPools,omitempty"` Mtu *int `json:"mtu,omitempty"` MulticastLimit *int `json:"multicastLimit,omitempty"` Name *string `json:"name,omitempty"` Nwid *string `json:"nwid,omitempty"` Objtype *string `json:"objtype,omitempty"` Private *bool `json:"private,omitempty"` RemoteTraceLevel *int `json:"remoteTraceLevel,omitempty"` RemoteTraceTarget *string `json:"remoteTraceTarget,omitempty"` Revision *int `json:"revision,omitempty"` Routes *[]Route `json:"routes,omitempty"` Rules *[]map[string]interface{} `json:"rules,omitempty"` Tags *[]map[string]interface{} `json:"tags,omitempty"` V4AssignMode *V4AssignMode `json:"v4AssignMode,omitempty"` V6AssignMode *V6AssignMode `json:"v6AssignMode,omitempty"` }
ControllerNetwork defines model for ControllerNetwork.
type ControllerNetworkMember ¶
type ControllerNetworkMember struct { ActiveBridge *bool `json:"activeBridge,omitempty"` Address *string `json:"address,omitempty"` Authorized *bool `json:"authorized,omitempty"` Id *string `json:"id,omitempty"` Identity *string `json:"identity,omitempty"` IpAssignments *[]string `json:"ipAssignments,omitempty"` Nwid *string `json:"nwid,omitempty"` Revision *int `json:"revision,omitempty"` VMajor *int `json:"vMajor,omitempty"` VMinor *int `json:"vMinor,omitempty"` VProto *int `json:"vProto,omitempty"` VRev *int `json:"vRev,omitempty"` }
ControllerNetworkMember defines model for ControllerNetworkMember.
type ControllerStatus ¶
type ControllerStatus struct { ApiVersion *int `json:"apiVersion,omitempty"` Clock *int64 `json:"clock,omitempty"` Controller *bool `json:"controller,omitempty"` }
ControllerStatus defines model for ControllerStatus.
type DeleteControllerNetworkMemberResponse ¶
type DeleteControllerNetworkMemberResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerNetworkMember }
func ParseDeleteControllerNetworkMemberResponse ¶
func ParseDeleteControllerNetworkMemberResponse(rsp *http.Response) (*DeleteControllerNetworkMemberResponse, error)
ParseDeleteControllerNetworkMemberResponse parses an HTTP response from a DeleteControllerNetworkMemberWithResponse call
func (DeleteControllerNetworkMemberResponse) Status ¶
func (r DeleteControllerNetworkMemberResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteControllerNetworkMemberResponse) StatusCode ¶
func (r DeleteControllerNetworkMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteControllerNetworkResponse ¶
type DeleteControllerNetworkResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerNetwork }
func ParseDeleteControllerNetworkResponse ¶
func ParseDeleteControllerNetworkResponse(rsp *http.Response) (*DeleteControllerNetworkResponse, error)
ParseDeleteControllerNetworkResponse parses an HTTP response from a DeleteControllerNetworkWithResponse call
func (DeleteControllerNetworkResponse) Status ¶
func (r DeleteControllerNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteControllerNetworkResponse) StatusCode ¶
func (r DeleteControllerNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNetworkResponse ¶
func ParseDeleteNetworkResponse ¶
func ParseDeleteNetworkResponse(rsp *http.Response) (*DeleteNetworkResponse, error)
ParseDeleteNetworkResponse parses an HTTP response from a DeleteNetworkWithResponse call
func (DeleteNetworkResponse) Status ¶
func (r DeleteNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNetworkResponse) StatusCode ¶
func (r DeleteNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GenerateControllerNetworkJSONRequestBody ¶
type GenerateControllerNetworkJSONRequestBody = ControllerNetwork
GenerateControllerNetworkJSONRequestBody defines body for GenerateControllerNetwork for application/json ContentType.
type GenerateControllerNetworkResponse ¶
type GenerateControllerNetworkResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerNetwork }
func ParseGenerateControllerNetworkResponse ¶
func ParseGenerateControllerNetworkResponse(rsp *http.Response) (*GenerateControllerNetworkResponse, error)
ParseGenerateControllerNetworkResponse parses an HTTP response from a GenerateControllerNetworkWithResponse call
func (GenerateControllerNetworkResponse) Status ¶
func (r GenerateControllerNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (GenerateControllerNetworkResponse) StatusCode ¶
func (r GenerateControllerNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetControllerNetworkMemberResponse ¶
type GetControllerNetworkMemberResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerNetworkMember }
func ParseGetControllerNetworkMemberResponse ¶
func ParseGetControllerNetworkMemberResponse(rsp *http.Response) (*GetControllerNetworkMemberResponse, error)
ParseGetControllerNetworkMemberResponse parses an HTTP response from a GetControllerNetworkMemberWithResponse call
func (GetControllerNetworkMemberResponse) Status ¶
func (r GetControllerNetworkMemberResponse) Status() string
Status returns HTTPResponse.Status
func (GetControllerNetworkMemberResponse) StatusCode ¶
func (r GetControllerNetworkMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetControllerNetworkMembersResponse ¶
type GetControllerNetworkMembersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *map[string]int }
func ParseGetControllerNetworkMembersResponse ¶
func ParseGetControllerNetworkMembersResponse(rsp *http.Response) (*GetControllerNetworkMembersResponse, error)
ParseGetControllerNetworkMembersResponse parses an HTTP response from a GetControllerNetworkMembersWithResponse call
func (GetControllerNetworkMembersResponse) Status ¶
func (r GetControllerNetworkMembersResponse) Status() string
Status returns HTTPResponse.Status
func (GetControllerNetworkMembersResponse) StatusCode ¶
func (r GetControllerNetworkMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetControllerNetworkResponse ¶
type GetControllerNetworkResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerNetwork }
func ParseGetControllerNetworkResponse ¶
func ParseGetControllerNetworkResponse(rsp *http.Response) (*GetControllerNetworkResponse, error)
ParseGetControllerNetworkResponse parses an HTTP response from a GetControllerNetworkWithResponse call
func (GetControllerNetworkResponse) Status ¶
func (r GetControllerNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (GetControllerNetworkResponse) StatusCode ¶
func (r GetControllerNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetControllerNetworksResponse ¶
type GetControllerNetworksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]string }
func ParseGetControllerNetworksResponse ¶
func ParseGetControllerNetworksResponse(rsp *http.Response) (*GetControllerNetworksResponse, error)
ParseGetControllerNetworksResponse parses an HTTP response from a GetControllerNetworksWithResponse call
func (GetControllerNetworksResponse) Status ¶
func (r GetControllerNetworksResponse) Status() string
Status returns HTTPResponse.Status
func (GetControllerNetworksResponse) StatusCode ¶
func (r GetControllerNetworksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetControllerStatusResponse ¶
type GetControllerStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerStatus }
func ParseGetControllerStatusResponse ¶
func ParseGetControllerStatusResponse(rsp *http.Response) (*GetControllerStatusResponse, error)
ParseGetControllerStatusResponse parses an HTTP response from a GetControllerStatusWithResponse call
func (GetControllerStatusResponse) Status ¶
func (r GetControllerStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetControllerStatusResponse) StatusCode ¶
func (r GetControllerStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNetworkResponse ¶
func ParseGetNetworkResponse ¶
func ParseGetNetworkResponse(rsp *http.Response) (*GetNetworkResponse, error)
ParseGetNetworkResponse parses an HTTP response from a GetNetworkWithResponse call
func (GetNetworkResponse) Status ¶
func (r GetNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (GetNetworkResponse) StatusCode ¶
func (r GetNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNetworksResponse ¶
func ParseGetNetworksResponse ¶
func ParseGetNetworksResponse(rsp *http.Response) (*GetNetworksResponse, error)
ParseGetNetworksResponse parses an HTTP response from a GetNetworksWithResponse call
func (GetNetworksResponse) Status ¶
func (r GetNetworksResponse) Status() string
Status returns HTTPResponse.Status
func (GetNetworksResponse) StatusCode ¶
func (r GetNetworksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPeerResponse ¶
func ParseGetPeerResponse ¶
func ParseGetPeerResponse(rsp *http.Response) (*GetPeerResponse, error)
ParseGetPeerResponse parses an HTTP response from a GetPeerWithResponse call
func (GetPeerResponse) Status ¶
func (r GetPeerResponse) Status() string
Status returns HTTPResponse.Status
func (GetPeerResponse) StatusCode ¶
func (r GetPeerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPeersResponse ¶
func ParseGetPeersResponse ¶
func ParseGetPeersResponse(rsp *http.Response) (*GetPeersResponse, error)
ParseGetPeersResponse parses an HTTP response from a GetPeersWithResponse call
func (GetPeersResponse) Status ¶
func (r GetPeersResponse) Status() string
Status returns HTTPResponse.Status
func (GetPeersResponse) StatusCode ¶
func (r GetPeersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStatusResponse ¶
func ParseGetStatusResponse ¶
func ParseGetStatusResponse(rsp *http.Response) (*GetStatusResponse, error)
ParseGetStatusResponse parses an HTTP response from a GetStatusWithResponse call
func (GetStatusResponse) Status ¶
func (r GetStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetStatusResponse) StatusCode ¶
func (r GetStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IpAssignmentPool ¶
type IpAssignmentPool struct { IpRangeEnd *string `json:"ipRangeEnd,omitempty"` IpRangeStart *string `json:"ipRangeStart,omitempty"` }
IpAssignmentPool defines model for IpAssignmentPool.
type Network ¶
type Network struct { // AllowDNS Let ZeroTier modify the system's DNS settings. AllowDNS *bool `json:"allowDNS,omitempty"` // AllowDefault Let ZeroTier modify the system's default route. AllowDefault *bool `json:"allowDefault,omitempty"` // AllowGlobal Let ZeroTier manage IP addresses and Route assignments that aren't in private ranges (rfc1918). AllowGlobal *bool `json:"allowGlobal,omitempty"` // AllowManaged Let ZeroTier to manage IP addresses and Route assignments. AllowManaged *bool `json:"allowManaged,omitempty"` AssignedAddresses *[]string `json:"assignedAddresses,omitempty"` Bridge *bool `json:"bridge,omitempty"` BroadcastEnabled *bool `json:"broadcastEnabled,omitempty"` Dns *struct { Domain *string `json:"domain,omitempty"` Servers *[]string `json:"servers,omitempty"` } `json:"dns,omitempty"` Id *string `json:"id,omitempty"` // Mac MAC address for this network's interface. Mac *string `json:"mac,omitempty"` Mtu *int `json:"mtu,omitempty"` MulticastSubscriptions *[]struct { Adi *int64 `json:"adi,omitempty"` Mac *string `json:"mac,omitempty"` } `json:"multicastSubscriptions,omitempty"` Name *string `json:"name,omitempty"` NetconfRevision *int `json:"netconfRevision,omitempty"` PortDeviceName *string `json:"portDeviceName,omitempty"` PortError *int `json:"portError,omitempty"` Routes *[]struct { Flags *int `json:"flags,omitempty"` Metric *int `json:"metric,omitempty"` Target *string `json:"target,omitempty"` Via *string `json:"via,omitempty"` } `json:"routes,omitempty"` Status *string `json:"status,omitempty"` Type *string `json:"type,omitempty"` }
Network defines model for Network.
type Peer ¶
type Peer struct { Address *string `json:"address,omitempty"` IsBonded *bool `json:"isBonded,omitempty"` Latency *int `json:"latency,omitempty"` Paths *[]struct { Active *bool `json:"active,omitempty"` Address *string `json:"address,omitempty"` Expired *bool `json:"expired,omitempty"` LastReceive *int64 `json:"lastReceive,omitempty"` LastSend *int64 `json:"lastSend,omitempty"` Preferred *bool `json:"preferred,omitempty"` TrustedPathId *int `json:"trustedPathId,omitempty"` } `json:"paths,omitempty"` Role *string `json:"role,omitempty"` Version *string `json:"version,omitempty"` VersionMajor *int `json:"versionMajor,omitempty"` VersionMinor *int `json:"versionMinor,omitempty"` VersionRev *int `json:"versionRev,omitempty"` }
Peer defines model for Peer.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface { // Get Controller Status. // (GET /controller) GetControllerStatus(ctx echo.Context) error // List Networks. // (GET /controller/network) GetControllerNetworks(ctx echo.Context) error // Generate Random Network ID. // (POST /controller/network/{controllerID}______) GenerateControllerNetwork(ctx echo.Context, controllerID string) error // Delete a network. // (DELETE /controller/network/{networkID}) DeleteControllerNetwork(ctx echo.Context, networkID string) error // Get Network by ID. // (GET /controller/network/{networkID}) GetControllerNetwork(ctx echo.Context, networkID string) error // Create or Update a Network. // (POST /controller/network/{networkID}) SetControllerNetwork(ctx echo.Context, networkID string) error // List Network Members. // (GET /controller/network/{networkID}/member) GetControllerNetworkMembers(ctx echo.Context, networkID string) error // Remove a network member. // (DELETE /controller/network/{networkID}/member/{nodeID}) DeleteControllerNetworkMember(ctx echo.Context, networkID string, nodeID string) error // Get Network Member Details by ID. // (GET /controller/network/{networkID}/member/{nodeID}) GetControllerNetworkMember(ctx echo.Context, networkID string, nodeID string) error // Create or Update a Network Membership. // (POST /controller/network/{networkID}/member/{nodeID}) SetControllerNetworkMember(ctx echo.Context, networkID string, nodeID string) error // Get all network memberships. // (GET /network) GetNetworks(ctx echo.Context) error // Leave a network. // (DELETE /network/{networkID}) DeleteNetwork(ctx echo.Context, networkID string) error // Get a joined Network membership configuration by Network ID. // (GET /network/{networkID}) GetNetwork(ctx echo.Context, networkID string) error // Join a network or update it's configuration by Network ID. // (POST /network/{networkID}) UpdateNetwork(ctx echo.Context, networkID string) error // Get all peers. // (GET /peer) GetPeers(ctx echo.Context) error // Get information about a specific peer by Node ID. // (GET /peer/{address}) GetPeer(ctx echo.Context, address string) error // Node status and addressing info. // (GET /status) GetStatus(ctx echo.Context) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) DeleteControllerNetwork ¶
func (w *ServerInterfaceWrapper) DeleteControllerNetwork(ctx echo.Context) error
DeleteControllerNetwork converts echo context to params.
func (*ServerInterfaceWrapper) DeleteControllerNetworkMember ¶
func (w *ServerInterfaceWrapper) DeleteControllerNetworkMember(ctx echo.Context) error
DeleteControllerNetworkMember converts echo context to params.
func (*ServerInterfaceWrapper) DeleteNetwork ¶
func (w *ServerInterfaceWrapper) DeleteNetwork(ctx echo.Context) error
DeleteNetwork converts echo context to params.
func (*ServerInterfaceWrapper) GenerateControllerNetwork ¶
func (w *ServerInterfaceWrapper) GenerateControllerNetwork(ctx echo.Context) error
GenerateControllerNetwork converts echo context to params.
func (*ServerInterfaceWrapper) GetControllerNetwork ¶
func (w *ServerInterfaceWrapper) GetControllerNetwork(ctx echo.Context) error
GetControllerNetwork converts echo context to params.
func (*ServerInterfaceWrapper) GetControllerNetworkMember ¶
func (w *ServerInterfaceWrapper) GetControllerNetworkMember(ctx echo.Context) error
GetControllerNetworkMember converts echo context to params.
func (*ServerInterfaceWrapper) GetControllerNetworkMembers ¶
func (w *ServerInterfaceWrapper) GetControllerNetworkMembers(ctx echo.Context) error
GetControllerNetworkMembers converts echo context to params.
func (*ServerInterfaceWrapper) GetControllerNetworks ¶
func (w *ServerInterfaceWrapper) GetControllerNetworks(ctx echo.Context) error
GetControllerNetworks converts echo context to params.
func (*ServerInterfaceWrapper) GetControllerStatus ¶
func (w *ServerInterfaceWrapper) GetControllerStatus(ctx echo.Context) error
GetControllerStatus converts echo context to params.
func (*ServerInterfaceWrapper) GetNetwork ¶
func (w *ServerInterfaceWrapper) GetNetwork(ctx echo.Context) error
GetNetwork converts echo context to params.
func (*ServerInterfaceWrapper) GetNetworks ¶
func (w *ServerInterfaceWrapper) GetNetworks(ctx echo.Context) error
GetNetworks converts echo context to params.
func (*ServerInterfaceWrapper) GetPeer ¶
func (w *ServerInterfaceWrapper) GetPeer(ctx echo.Context) error
GetPeer converts echo context to params.
func (*ServerInterfaceWrapper) GetPeers ¶
func (w *ServerInterfaceWrapper) GetPeers(ctx echo.Context) error
GetPeers converts echo context to params.
func (*ServerInterfaceWrapper) GetStatus ¶
func (w *ServerInterfaceWrapper) GetStatus(ctx echo.Context) error
GetStatus converts echo context to params.
func (*ServerInterfaceWrapper) SetControllerNetwork ¶
func (w *ServerInterfaceWrapper) SetControllerNetwork(ctx echo.Context) error
SetControllerNetwork converts echo context to params.
func (*ServerInterfaceWrapper) SetControllerNetworkMember ¶
func (w *ServerInterfaceWrapper) SetControllerNetworkMember(ctx echo.Context) error
SetControllerNetworkMember converts echo context to params.
func (*ServerInterfaceWrapper) UpdateNetwork ¶
func (w *ServerInterfaceWrapper) UpdateNetwork(ctx echo.Context) error
UpdateNetwork converts echo context to params.
type SetControllerNetworkJSONRequestBody ¶
type SetControllerNetworkJSONRequestBody = ControllerNetwork
SetControllerNetworkJSONRequestBody defines body for SetControllerNetwork for application/json ContentType.
type SetControllerNetworkMemberJSONRequestBody ¶
type SetControllerNetworkMemberJSONRequestBody = ControllerNetworkMember
SetControllerNetworkMemberJSONRequestBody defines body for SetControllerNetworkMember for application/json ContentType.
type SetControllerNetworkMemberResponse ¶
type SetControllerNetworkMemberResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerNetworkMember }
func ParseSetControllerNetworkMemberResponse ¶
func ParseSetControllerNetworkMemberResponse(rsp *http.Response) (*SetControllerNetworkMemberResponse, error)
ParseSetControllerNetworkMemberResponse parses an HTTP response from a SetControllerNetworkMemberWithResponse call
func (SetControllerNetworkMemberResponse) Status ¶
func (r SetControllerNetworkMemberResponse) Status() string
Status returns HTTPResponse.Status
func (SetControllerNetworkMemberResponse) StatusCode ¶
func (r SetControllerNetworkMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetControllerNetworkResponse ¶
type SetControllerNetworkResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ControllerNetwork }
func ParseSetControllerNetworkResponse ¶
func ParseSetControllerNetworkResponse(rsp *http.Response) (*SetControllerNetworkResponse, error)
ParseSetControllerNetworkResponse parses an HTTP response from a SetControllerNetworkWithResponse call
func (SetControllerNetworkResponse) Status ¶
func (r SetControllerNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (SetControllerNetworkResponse) StatusCode ¶
func (r SetControllerNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Status ¶
type Status struct { Address *string `json:"address,omitempty"` Clock *int64 `json:"clock,omitempty"` Config *struct { Settings *struct { AllowTcpFallbackRelay *bool `json:"allowTcpFallbackRelay,omitempty"` PortMappingEnabled *bool `json:"portMappingEnabled,omitempty"` PrimaryPort *int `json:"primaryPort,omitempty"` } `json:"settings,omitempty"` } `json:"config,omitempty"` Online *bool `json:"online,omitempty"` PlanetWorldId *int64 `json:"planetWorldId,omitempty"` PlanetWorldTimestamp *int64 `json:"planetWorldTimestamp,omitempty"` PublicIdentity *string `json:"publicIdentity,omitempty"` TcpFallbackActive *bool `json:"tcpFallbackActive,omitempty"` Version *string `json:"version,omitempty"` VersionBuild *int `json:"versionBuild,omitempty"` VersionMajor *int `json:"versionMajor,omitempty"` VersionMinor *int `json:"versionMinor,omitempty"` VersionRev *int `json:"versionRev,omitempty"` }
Status defines model for Status.
type UpdateNetworkJSONRequestBody ¶
type UpdateNetworkJSONRequestBody = Network
UpdateNetworkJSONRequestBody defines body for UpdateNetwork for application/json ContentType.
type UpdateNetworkResponse ¶
func ParseUpdateNetworkResponse ¶
func ParseUpdateNetworkResponse(rsp *http.Response) (*UpdateNetworkResponse, error)
ParseUpdateNetworkResponse parses an HTTP response from a UpdateNetworkWithResponse call
func (UpdateNetworkResponse) Status ¶
func (r UpdateNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateNetworkResponse) StatusCode ¶
func (r UpdateNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V4AssignMode ¶
type V4AssignMode struct {
Zt *bool `json:"zt,omitempty"`
}
V4AssignMode defines model for V4AssignMode.
type V6AssignMode ¶
type V6AssignMode struct { N6plane *bool `json:"6plane,omitempty"` Rfc4193 *bool `json:"rfc4193,omitempty"` Zt *bool `json:"zt,omitempty"` }
V6AssignMode defines model for V6AssignMode.