Documentation
¶
Overview ¶
Package gen contains generated code for the network API.
Package gen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type DNSConfigCollectionResponse
- type DNSConfigResponse
- type DNSConfigResponseStatus
- type DNSConfigUpdateRequest
- type DNSDeleteCollectionResponse
- type DNSDeleteRequest
- type DNSDeleteResultItem
- type DNSDeleteResultItemStatus
- type DNSUpdateCollectionResponse
- type DNSUpdateResultItem
- type DNSUpdateResultItemStatus
- type DeleteNodeNetworkDNS200JSONResponse
- type DeleteNodeNetworkDNS400JSONResponse
- type DeleteNodeNetworkDNS401JSONResponse
- type DeleteNodeNetworkDNS403JSONResponse
- type DeleteNodeNetworkDNS500JSONResponse
- type DeleteNodeNetworkDNSJSONRequestBody
- type DeleteNodeNetworkDNSRequestObject
- type DeleteNodeNetworkDNSResponseObject
- type DeleteNodeNetworkInterface200JSONResponse
- type DeleteNodeNetworkInterface400JSONResponse
- type DeleteNodeNetworkInterface401JSONResponse
- type DeleteNodeNetworkInterface403JSONResponse
- type DeleteNodeNetworkInterface500JSONResponse
- type DeleteNodeNetworkInterfaceRequestObject
- type DeleteNodeNetworkInterfaceResponseObject
- type DeleteNodeNetworkRoute200JSONResponse
- type DeleteNodeNetworkRoute400JSONResponse
- type DeleteNodeNetworkRoute401JSONResponse
- type DeleteNodeNetworkRoute403JSONResponse
- type DeleteNodeNetworkRoute500JSONResponse
- type DeleteNodeNetworkRouteRequestObject
- type DeleteNodeNetworkRouteResponseObject
- type EchoRouter
- type ErrorResponse
- type GetNodeNetworkDNSByInterface200JSONResponse
- type GetNodeNetworkDNSByInterface400JSONResponse
- type GetNodeNetworkDNSByInterface401JSONResponse
- type GetNodeNetworkDNSByInterface403JSONResponse
- type GetNodeNetworkDNSByInterface500JSONResponse
- type GetNodeNetworkDNSByInterfaceRequestObject
- type GetNodeNetworkDNSByInterfaceResponseObject
- type GetNodeNetworkInterface200JSONResponse
- type GetNodeNetworkInterface400JSONResponse
- type GetNodeNetworkInterface401JSONResponse
- type GetNodeNetworkInterface403JSONResponse
- type GetNodeNetworkInterface500JSONResponse
- type GetNodeNetworkInterfaceByName200JSONResponse
- type GetNodeNetworkInterfaceByName400JSONResponse
- type GetNodeNetworkInterfaceByName401JSONResponse
- type GetNodeNetworkInterfaceByName403JSONResponse
- type GetNodeNetworkInterfaceByName404JSONResponse
- type GetNodeNetworkInterfaceByName500JSONResponse
- type GetNodeNetworkInterfaceByNameRequestObject
- type GetNodeNetworkInterfaceByNameResponseObject
- type GetNodeNetworkInterfaceRequestObject
- type GetNodeNetworkInterfaceResponseObject
- type GetNodeNetworkRoute200JSONResponse
- type GetNodeNetworkRoute400JSONResponse
- type GetNodeNetworkRoute401JSONResponse
- type GetNodeNetworkRoute403JSONResponse
- type GetNodeNetworkRoute500JSONResponse
- type GetNodeNetworkRouteByInterface200JSONResponse
- type GetNodeNetworkRouteByInterface400JSONResponse
- type GetNodeNetworkRouteByInterface401JSONResponse
- type GetNodeNetworkRouteByInterface403JSONResponse
- type GetNodeNetworkRouteByInterface404JSONResponse
- type GetNodeNetworkRouteByInterface500JSONResponse
- type GetNodeNetworkRouteByInterfaceRequestObject
- type GetNodeNetworkRouteByInterfaceResponseObject
- type GetNodeNetworkRouteRequestObject
- type GetNodeNetworkRouteResponseObject
- type Hostname
- type InterfaceConfigRequest
- type InterfaceGetEntry
- type InterfaceGetEntryStatus
- type InterfaceGetResponse
- type InterfaceInfo
- type InterfaceListEntry
- type InterfaceListEntryStatus
- type InterfaceListResponse
- type InterfaceMutationEntry
- type InterfaceMutationEntryStatus
- type InterfaceMutationResponse
- type InterfaceName
- type PingCollectionResponse
- type PingResponse
- type PingResponseStatus
- type PostNodeNetworkInterface200JSONResponse
- type PostNodeNetworkInterface400JSONResponse
- type PostNodeNetworkInterface401JSONResponse
- type PostNodeNetworkInterface403JSONResponse
- type PostNodeNetworkInterface500JSONResponse
- type PostNodeNetworkInterfaceJSONRequestBody
- type PostNodeNetworkInterfaceRequestObject
- type PostNodeNetworkInterfaceResponseObject
- type PostNodeNetworkPing200JSONResponse
- type PostNodeNetworkPing400JSONResponse
- type PostNodeNetworkPing401JSONResponse
- type PostNodeNetworkPing403JSONResponse
- type PostNodeNetworkPing500JSONResponse
- type PostNodeNetworkPingJSONBody
- type PostNodeNetworkPingJSONRequestBody
- type PostNodeNetworkPingRequestObject
- type PostNodeNetworkPingResponseObject
- type PostNodeNetworkRoute200JSONResponse
- type PostNodeNetworkRoute400JSONResponse
- type PostNodeNetworkRoute401JSONResponse
- type PostNodeNetworkRoute403JSONResponse
- type PostNodeNetworkRoute500JSONResponse
- type PostNodeNetworkRouteJSONRequestBody
- type PostNodeNetworkRouteRequestObject
- type PostNodeNetworkRouteResponseObject
- type PutNodeNetworkDNS202JSONResponse
- type PutNodeNetworkDNS400JSONResponse
- type PutNodeNetworkDNS401JSONResponse
- type PutNodeNetworkDNS403JSONResponse
- type PutNodeNetworkDNS500JSONResponse
- type PutNodeNetworkDNSJSONRequestBody
- type PutNodeNetworkDNSRequestObject
- type PutNodeNetworkDNSResponseObject
- type PutNodeNetworkInterface200JSONResponse
- type PutNodeNetworkInterface400JSONResponse
- type PutNodeNetworkInterface401JSONResponse
- type PutNodeNetworkInterface403JSONResponse
- type PutNodeNetworkInterface404JSONResponse
- type PutNodeNetworkInterface500JSONResponse
- type PutNodeNetworkInterfaceJSONRequestBody
- type PutNodeNetworkInterfaceRequestObject
- type PutNodeNetworkInterfaceResponseObject
- type PutNodeNetworkRoute200JSONResponse
- type PutNodeNetworkRoute400JSONResponse
- type PutNodeNetworkRoute401JSONResponse
- type PutNodeNetworkRoute403JSONResponse
- type PutNodeNetworkRoute404JSONResponse
- type PutNodeNetworkRoute500JSONResponse
- type PutNodeNetworkRouteJSONRequestBody
- type PutNodeNetworkRouteRequestObject
- type PutNodeNetworkRouteResponseObject
- type RouteConfigRequest
- type RouteGetEntry
- type RouteGetEntryStatus
- type RouteGetResponse
- type RouteInfo
- type RouteInterfaceName
- type RouteItem
- type RouteListEntry
- type RouteListEntryStatus
- type RouteListResponse
- type RouteMutationEntry
- type RouteMutationEntryStatus
- type RouteMutationResponse
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) DeleteNodeNetworkDNS(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteNodeNetworkInterface(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteNodeNetworkRoute(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNodeNetworkDNSByInterface(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNodeNetworkInterface(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNodeNetworkInterfaceByName(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNodeNetworkRoute(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetNodeNetworkRouteByInterface(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostNodeNetworkInterface(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostNodeNetworkPing(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PostNodeNetworkRoute(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutNodeNetworkDNS(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutNodeNetworkInterface(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutNodeNetworkRoute(ctx echo.Context) error
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
Constants ¶
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
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 DNSConfigCollectionResponse ¶
type DNSConfigCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []DNSConfigResponse `json:"results"`
}
DNSConfigCollectionResponse defines model for DNSConfigCollectionResponse.
type DNSConfigResponse ¶
type DNSConfigResponse struct {
// Changed Whether the operation modified system state.
Changed *bool `json:"changed,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent that served this config.
Hostname string `json:"hostname"`
// SearchDomains List of search domains.
SearchDomains *[]string `json:"search_domains,omitempty"`
// Servers List of configured DNS servers.
Servers *[]string `json:"servers,omitempty"`
// Status The status of the operation for this host.
Status DNSConfigResponseStatus `json:"status"`
}
DNSConfigResponse defines model for DNSConfigResponse.
type DNSConfigResponseStatus ¶
type DNSConfigResponseStatus string
DNSConfigResponseStatus The status of the operation for this host.
const ( DNSConfigResponseStatusFailed DNSConfigResponseStatus = "failed" DNSConfigResponseStatusOk DNSConfigResponseStatus = "ok" DNSConfigResponseStatusSkipped DNSConfigResponseStatus = "skipped" )
Defines values for DNSConfigResponseStatus.
type DNSConfigUpdateRequest ¶
type DNSConfigUpdateRequest struct {
// InterfaceName The name of the network interface to apply DNS configuration to. Accepts alphanumeric names or @fact. references.
InterfaceName string `json:"interface_name" validate:"required,alphanum_or_fact"`
// OverrideDhcp When true, disables DHCP-provided DNS servers so only the configured servers are used. When false or omitted, DHCP DNS servers are merged alongside the configured ones (default Netplan behavior).
OverrideDhcp *bool `json:"override_dhcp,omitempty" validate:"omitempty"`
// SearchDomains New list of search domains to configure.
SearchDomains *[]string `json:"search_domains,omitempty" validate:"required_without=Servers,omitempty,dive,hostname,min=1"`
// Servers New list of DNS servers to configure.
Servers *[]string `json:"servers,omitempty" validate:"required_without=SearchDomains,omitempty,dive,ip,min=1"`
}
DNSConfigUpdateRequest defines model for DNSConfigUpdateRequest.
type DNSDeleteCollectionResponse ¶
type DNSDeleteCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []DNSDeleteResultItem `json:"results"`
}
DNSDeleteCollectionResponse defines model for DNSDeleteCollectionResponse.
type DNSDeleteRequest ¶
type DNSDeleteRequest struct {
// InterfaceName The name of the network interface to delete DNS configuration from.
InterfaceName string `json:"interface_name" validate:"required,alphanum_or_fact"`
}
DNSDeleteRequest defines model for DNSDeleteRequest.
type DNSDeleteResultItem ¶
type DNSDeleteResultItem struct {
// Changed Whether the DNS configuration was actually modified.
Changed *bool `json:"changed,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname Hostname of the agent that processed this operation.
Hostname string `json:"hostname"`
// Status The status of the operation for this host.
Status DNSDeleteResultItemStatus `json:"status"`
}
DNSDeleteResultItem defines model for DNSDeleteResultItem.
type DNSDeleteResultItemStatus ¶
type DNSDeleteResultItemStatus string
DNSDeleteResultItemStatus The status of the operation for this host.
const ( DNSDeleteResultItemStatusFailed DNSDeleteResultItemStatus = "failed" DNSDeleteResultItemStatusOk DNSDeleteResultItemStatus = "ok" DNSDeleteResultItemStatusSkipped DNSDeleteResultItemStatus = "skipped" )
Defines values for DNSDeleteResultItemStatus.
type DNSUpdateCollectionResponse ¶
type DNSUpdateCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []DNSUpdateResultItem `json:"results"`
}
DNSUpdateCollectionResponse defines model for DNSUpdateCollectionResponse.
type DNSUpdateResultItem ¶
type DNSUpdateResultItem struct {
// Changed Whether the DNS configuration was actually modified.
Changed *bool `json:"changed,omitempty"`
Error *string `json:"error,omitempty"`
Hostname string `json:"hostname"`
Status DNSUpdateResultItemStatus `json:"status"`
}
DNSUpdateResultItem defines model for DNSUpdateResultItem.
type DNSUpdateResultItemStatus ¶
type DNSUpdateResultItemStatus string
DNSUpdateResultItemStatus defines model for DNSUpdateResultItem.Status.
const ( DNSUpdateResultItemStatusFailed DNSUpdateResultItemStatus = "failed" DNSUpdateResultItemStatusOk DNSUpdateResultItemStatus = "ok" DNSUpdateResultItemStatusSkipped DNSUpdateResultItemStatus = "skipped" )
Defines values for DNSUpdateResultItemStatus.
type DeleteNodeNetworkDNS200JSONResponse ¶
type DeleteNodeNetworkDNS200JSONResponse DNSDeleteCollectionResponse
func (DeleteNodeNetworkDNS200JSONResponse) VisitDeleteNodeNetworkDNSResponse ¶
func (response DeleteNodeNetworkDNS200JSONResponse) VisitDeleteNodeNetworkDNSResponse(w http.ResponseWriter) error
type DeleteNodeNetworkDNS400JSONResponse ¶
type DeleteNodeNetworkDNS400JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkDNS400JSONResponse) VisitDeleteNodeNetworkDNSResponse ¶
func (response DeleteNodeNetworkDNS400JSONResponse) VisitDeleteNodeNetworkDNSResponse(w http.ResponseWriter) error
type DeleteNodeNetworkDNS401JSONResponse ¶
type DeleteNodeNetworkDNS401JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkDNS401JSONResponse) VisitDeleteNodeNetworkDNSResponse ¶
func (response DeleteNodeNetworkDNS401JSONResponse) VisitDeleteNodeNetworkDNSResponse(w http.ResponseWriter) error
type DeleteNodeNetworkDNS403JSONResponse ¶
type DeleteNodeNetworkDNS403JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkDNS403JSONResponse) VisitDeleteNodeNetworkDNSResponse ¶
func (response DeleteNodeNetworkDNS403JSONResponse) VisitDeleteNodeNetworkDNSResponse(w http.ResponseWriter) error
type DeleteNodeNetworkDNS500JSONResponse ¶
type DeleteNodeNetworkDNS500JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkDNS500JSONResponse) VisitDeleteNodeNetworkDNSResponse ¶
func (response DeleteNodeNetworkDNS500JSONResponse) VisitDeleteNodeNetworkDNSResponse(w http.ResponseWriter) error
type DeleteNodeNetworkDNSJSONRequestBody ¶
type DeleteNodeNetworkDNSJSONRequestBody = DNSDeleteRequest
DeleteNodeNetworkDNSJSONRequestBody defines body for DeleteNodeNetworkDNS for application/json ContentType.
type DeleteNodeNetworkDNSRequestObject ¶
type DeleteNodeNetworkDNSRequestObject struct {
Hostname Hostname `json:"hostname"`
Body *DeleteNodeNetworkDNSJSONRequestBody
}
type DeleteNodeNetworkDNSResponseObject ¶
type DeleteNodeNetworkDNSResponseObject interface {
VisitDeleteNodeNetworkDNSResponse(w http.ResponseWriter) error
}
type DeleteNodeNetworkInterface200JSONResponse ¶
type DeleteNodeNetworkInterface200JSONResponse InterfaceMutationResponse
func (DeleteNodeNetworkInterface200JSONResponse) VisitDeleteNodeNetworkInterfaceResponse ¶
func (response DeleteNodeNetworkInterface200JSONResponse) VisitDeleteNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type DeleteNodeNetworkInterface400JSONResponse ¶
type DeleteNodeNetworkInterface400JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkInterface400JSONResponse) VisitDeleteNodeNetworkInterfaceResponse ¶
func (response DeleteNodeNetworkInterface400JSONResponse) VisitDeleteNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type DeleteNodeNetworkInterface401JSONResponse ¶
type DeleteNodeNetworkInterface401JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkInterface401JSONResponse) VisitDeleteNodeNetworkInterfaceResponse ¶
func (response DeleteNodeNetworkInterface401JSONResponse) VisitDeleteNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type DeleteNodeNetworkInterface403JSONResponse ¶
type DeleteNodeNetworkInterface403JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkInterface403JSONResponse) VisitDeleteNodeNetworkInterfaceResponse ¶
func (response DeleteNodeNetworkInterface403JSONResponse) VisitDeleteNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type DeleteNodeNetworkInterface500JSONResponse ¶
type DeleteNodeNetworkInterface500JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkInterface500JSONResponse) VisitDeleteNodeNetworkInterfaceResponse ¶
func (response DeleteNodeNetworkInterface500JSONResponse) VisitDeleteNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type DeleteNodeNetworkInterfaceRequestObject ¶
type DeleteNodeNetworkInterfaceRequestObject struct {
Hostname Hostname `json:"hostname"`
Name InterfaceName `json:"name"`
}
type DeleteNodeNetworkInterfaceResponseObject ¶
type DeleteNodeNetworkInterfaceResponseObject interface {
VisitDeleteNodeNetworkInterfaceResponse(w http.ResponseWriter) error
}
type DeleteNodeNetworkRoute200JSONResponse ¶
type DeleteNodeNetworkRoute200JSONResponse RouteMutationResponse
func (DeleteNodeNetworkRoute200JSONResponse) VisitDeleteNodeNetworkRouteResponse ¶
func (response DeleteNodeNetworkRoute200JSONResponse) VisitDeleteNodeNetworkRouteResponse(w http.ResponseWriter) error
type DeleteNodeNetworkRoute400JSONResponse ¶
type DeleteNodeNetworkRoute400JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkRoute400JSONResponse) VisitDeleteNodeNetworkRouteResponse ¶
func (response DeleteNodeNetworkRoute400JSONResponse) VisitDeleteNodeNetworkRouteResponse(w http.ResponseWriter) error
type DeleteNodeNetworkRoute401JSONResponse ¶
type DeleteNodeNetworkRoute401JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkRoute401JSONResponse) VisitDeleteNodeNetworkRouteResponse ¶
func (response DeleteNodeNetworkRoute401JSONResponse) VisitDeleteNodeNetworkRouteResponse(w http.ResponseWriter) error
type DeleteNodeNetworkRoute403JSONResponse ¶
type DeleteNodeNetworkRoute403JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkRoute403JSONResponse) VisitDeleteNodeNetworkRouteResponse ¶
func (response DeleteNodeNetworkRoute403JSONResponse) VisitDeleteNodeNetworkRouteResponse(w http.ResponseWriter) error
type DeleteNodeNetworkRoute500JSONResponse ¶
type DeleteNodeNetworkRoute500JSONResponse externalRef0.ErrorResponse
func (DeleteNodeNetworkRoute500JSONResponse) VisitDeleteNodeNetworkRouteResponse ¶
func (response DeleteNodeNetworkRoute500JSONResponse) VisitDeleteNodeNetworkRouteResponse(w http.ResponseWriter) error
type DeleteNodeNetworkRouteRequestObject ¶
type DeleteNodeNetworkRouteRequestObject struct {
Hostname Hostname `json:"hostname"`
InterfaceName RouteInterfaceName `json:"interfaceName"`
}
type DeleteNodeNetworkRouteResponseObject ¶
type DeleteNodeNetworkRouteResponseObject interface {
VisitDeleteNodeNetworkRouteResponse(w http.ResponseWriter) error
}
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 ErrorResponse ¶
type ErrorResponse = externalRef0.ErrorResponse
ErrorResponse defines model for ErrorResponse.
type GetNodeNetworkDNSByInterface200JSONResponse ¶
type GetNodeNetworkDNSByInterface200JSONResponse DNSConfigCollectionResponse
func (GetNodeNetworkDNSByInterface200JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse ¶
func (response GetNodeNetworkDNSByInterface200JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkDNSByInterface400JSONResponse ¶
type GetNodeNetworkDNSByInterface400JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkDNSByInterface400JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse ¶
func (response GetNodeNetworkDNSByInterface400JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkDNSByInterface401JSONResponse ¶
type GetNodeNetworkDNSByInterface401JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkDNSByInterface401JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse ¶
func (response GetNodeNetworkDNSByInterface401JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkDNSByInterface403JSONResponse ¶
type GetNodeNetworkDNSByInterface403JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkDNSByInterface403JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse ¶
func (response GetNodeNetworkDNSByInterface403JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkDNSByInterface500JSONResponse ¶
type GetNodeNetworkDNSByInterface500JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkDNSByInterface500JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse ¶
func (response GetNodeNetworkDNSByInterface500JSONResponse) VisitGetNodeNetworkDNSByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkDNSByInterfaceResponseObject ¶
type GetNodeNetworkDNSByInterfaceResponseObject interface {
VisitGetNodeNetworkDNSByInterfaceResponse(w http.ResponseWriter) error
}
type GetNodeNetworkInterface200JSONResponse ¶
type GetNodeNetworkInterface200JSONResponse InterfaceListResponse
func (GetNodeNetworkInterface200JSONResponse) VisitGetNodeNetworkInterfaceResponse ¶
func (response GetNodeNetworkInterface200JSONResponse) VisitGetNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkInterface400JSONResponse ¶
type GetNodeNetworkInterface400JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterface400JSONResponse) VisitGetNodeNetworkInterfaceResponse ¶
func (response GetNodeNetworkInterface400JSONResponse) VisitGetNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkInterface401JSONResponse ¶
type GetNodeNetworkInterface401JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterface401JSONResponse) VisitGetNodeNetworkInterfaceResponse ¶
func (response GetNodeNetworkInterface401JSONResponse) VisitGetNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkInterface403JSONResponse ¶
type GetNodeNetworkInterface403JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterface403JSONResponse) VisitGetNodeNetworkInterfaceResponse ¶
func (response GetNodeNetworkInterface403JSONResponse) VisitGetNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkInterface500JSONResponse ¶
type GetNodeNetworkInterface500JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterface500JSONResponse) VisitGetNodeNetworkInterfaceResponse ¶
func (response GetNodeNetworkInterface500JSONResponse) VisitGetNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkInterfaceByName200JSONResponse ¶
type GetNodeNetworkInterfaceByName200JSONResponse InterfaceGetResponse
func (GetNodeNetworkInterfaceByName200JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse ¶
func (response GetNodeNetworkInterfaceByName200JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse(w http.ResponseWriter) error
type GetNodeNetworkInterfaceByName400JSONResponse ¶
type GetNodeNetworkInterfaceByName400JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterfaceByName400JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse ¶
func (response GetNodeNetworkInterfaceByName400JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse(w http.ResponseWriter) error
type GetNodeNetworkInterfaceByName401JSONResponse ¶
type GetNodeNetworkInterfaceByName401JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterfaceByName401JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse ¶
func (response GetNodeNetworkInterfaceByName401JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse(w http.ResponseWriter) error
type GetNodeNetworkInterfaceByName403JSONResponse ¶
type GetNodeNetworkInterfaceByName403JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterfaceByName403JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse ¶
func (response GetNodeNetworkInterfaceByName403JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse(w http.ResponseWriter) error
type GetNodeNetworkInterfaceByName404JSONResponse ¶
type GetNodeNetworkInterfaceByName404JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterfaceByName404JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse ¶
func (response GetNodeNetworkInterfaceByName404JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse(w http.ResponseWriter) error
type GetNodeNetworkInterfaceByName500JSONResponse ¶
type GetNodeNetworkInterfaceByName500JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkInterfaceByName500JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse ¶
func (response GetNodeNetworkInterfaceByName500JSONResponse) VisitGetNodeNetworkInterfaceByNameResponse(w http.ResponseWriter) error
type GetNodeNetworkInterfaceByNameRequestObject ¶
type GetNodeNetworkInterfaceByNameRequestObject struct {
Hostname Hostname `json:"hostname"`
Name InterfaceName `json:"name"`
}
type GetNodeNetworkInterfaceByNameResponseObject ¶
type GetNodeNetworkInterfaceByNameResponseObject interface {
VisitGetNodeNetworkInterfaceByNameResponse(w http.ResponseWriter) error
}
type GetNodeNetworkInterfaceRequestObject ¶
type GetNodeNetworkInterfaceRequestObject struct {
Hostname Hostname `json:"hostname"`
}
type GetNodeNetworkInterfaceResponseObject ¶
type GetNodeNetworkInterfaceResponseObject interface {
VisitGetNodeNetworkInterfaceResponse(w http.ResponseWriter) error
}
type GetNodeNetworkRoute200JSONResponse ¶
type GetNodeNetworkRoute200JSONResponse RouteListResponse
func (GetNodeNetworkRoute200JSONResponse) VisitGetNodeNetworkRouteResponse ¶
func (response GetNodeNetworkRoute200JSONResponse) VisitGetNodeNetworkRouteResponse(w http.ResponseWriter) error
type GetNodeNetworkRoute400JSONResponse ¶
type GetNodeNetworkRoute400JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRoute400JSONResponse) VisitGetNodeNetworkRouteResponse ¶
func (response GetNodeNetworkRoute400JSONResponse) VisitGetNodeNetworkRouteResponse(w http.ResponseWriter) error
type GetNodeNetworkRoute401JSONResponse ¶
type GetNodeNetworkRoute401JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRoute401JSONResponse) VisitGetNodeNetworkRouteResponse ¶
func (response GetNodeNetworkRoute401JSONResponse) VisitGetNodeNetworkRouteResponse(w http.ResponseWriter) error
type GetNodeNetworkRoute403JSONResponse ¶
type GetNodeNetworkRoute403JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRoute403JSONResponse) VisitGetNodeNetworkRouteResponse ¶
func (response GetNodeNetworkRoute403JSONResponse) VisitGetNodeNetworkRouteResponse(w http.ResponseWriter) error
type GetNodeNetworkRoute500JSONResponse ¶
type GetNodeNetworkRoute500JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRoute500JSONResponse) VisitGetNodeNetworkRouteResponse ¶
func (response GetNodeNetworkRoute500JSONResponse) VisitGetNodeNetworkRouteResponse(w http.ResponseWriter) error
type GetNodeNetworkRouteByInterface200JSONResponse ¶
type GetNodeNetworkRouteByInterface200JSONResponse RouteGetResponse
func (GetNodeNetworkRouteByInterface200JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse ¶
func (response GetNodeNetworkRouteByInterface200JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkRouteByInterface400JSONResponse ¶
type GetNodeNetworkRouteByInterface400JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRouteByInterface400JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse ¶
func (response GetNodeNetworkRouteByInterface400JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkRouteByInterface401JSONResponse ¶
type GetNodeNetworkRouteByInterface401JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRouteByInterface401JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse ¶
func (response GetNodeNetworkRouteByInterface401JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkRouteByInterface403JSONResponse ¶
type GetNodeNetworkRouteByInterface403JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRouteByInterface403JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse ¶
func (response GetNodeNetworkRouteByInterface403JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkRouteByInterface404JSONResponse ¶
type GetNodeNetworkRouteByInterface404JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRouteByInterface404JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse ¶
func (response GetNodeNetworkRouteByInterface404JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkRouteByInterface500JSONResponse ¶
type GetNodeNetworkRouteByInterface500JSONResponse externalRef0.ErrorResponse
func (GetNodeNetworkRouteByInterface500JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse ¶
func (response GetNodeNetworkRouteByInterface500JSONResponse) VisitGetNodeNetworkRouteByInterfaceResponse(w http.ResponseWriter) error
type GetNodeNetworkRouteByInterfaceRequestObject ¶
type GetNodeNetworkRouteByInterfaceRequestObject struct {
Hostname Hostname `json:"hostname"`
InterfaceName RouteInterfaceName `json:"interfaceName"`
}
type GetNodeNetworkRouteByInterfaceResponseObject ¶
type GetNodeNetworkRouteByInterfaceResponseObject interface {
VisitGetNodeNetworkRouteByInterfaceResponse(w http.ResponseWriter) error
}
type GetNodeNetworkRouteRequestObject ¶
type GetNodeNetworkRouteRequestObject struct {
Hostname Hostname `json:"hostname"`
}
type GetNodeNetworkRouteResponseObject ¶
type GetNodeNetworkRouteResponseObject interface {
VisitGetNodeNetworkRouteResponse(w http.ResponseWriter) error
}
type InterfaceConfigRequest ¶
type InterfaceConfigRequest struct {
Addresses *[]string `json:"addresses,omitempty" validate:"omitempty,dive,cidr"`
Dhcp4 *bool `json:"dhcp4,omitempty" validate:"omitempty"`
Dhcp6 *bool `json:"dhcp6,omitempty" validate:"omitempty"`
Gateway4 *string `json:"gateway4,omitempty" validate:"omitempty,ipv4"`
Gateway6 *string `json:"gateway6,omitempty" validate:"omitempty,ipv6"`
MacAddress *string `json:"mac_address,omitempty" validate:"omitempty"`
Mtu *int `json:"mtu,omitempty" validate:"omitempty,min=68,max=9000"`
Wakeonlan *bool `json:"wakeonlan,omitempty" validate:"omitempty"`
}
InterfaceConfigRequest defines model for InterfaceConfigRequest.
type InterfaceGetEntry ¶
type InterfaceGetEntry struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname Hostname of the agent that reported this entry.
Hostname string `json:"hostname"`
// Interface Information about a network interface.
Interface *InterfaceInfo `json:"interface,omitempty"`
// Status The status of the operation for this host.
Status InterfaceGetEntryStatus `json:"status"`
}
InterfaceGetEntry Interface get result for a single agent.
type InterfaceGetEntryStatus ¶
type InterfaceGetEntryStatus string
InterfaceGetEntryStatus The status of the operation for this host.
const ( InterfaceGetEntryStatusFailed InterfaceGetEntryStatus = "failed" InterfaceGetEntryStatusOk InterfaceGetEntryStatus = "ok" InterfaceGetEntryStatusSkipped InterfaceGetEntryStatus = "skipped" )
Defines values for InterfaceGetEntryStatus.
type InterfaceGetResponse ¶
type InterfaceGetResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []InterfaceGetEntry `json:"results"`
}
InterfaceGetResponse defines model for InterfaceGetResponse.
type InterfaceInfo ¶
type InterfaceInfo struct {
// Addresses IP addresses assigned to the interface (CIDR).
Addresses *[]string `json:"addresses,omitempty"`
// Dhcp4 Whether DHCPv4 is enabled.
Dhcp4 *bool `json:"dhcp4,omitempty"`
// Dhcp6 Whether DHCPv6 is enabled.
Dhcp6 *bool `json:"dhcp6,omitempty"`
// Family Address family (inet, inet6, dual).
Family *string `json:"family,omitempty"`
// Gateway4 IPv4 gateway address.
Gateway4 *string `json:"gateway4,omitempty"`
// Gateway6 IPv6 gateway address.
Gateway6 *string `json:"gateway6,omitempty"`
// Ipv4 Primary IPv4 address.
Ipv4 *string `json:"ipv4,omitempty"`
// Ipv6 Primary IPv6 address.
Ipv6 *string `json:"ipv6,omitempty"`
// Mac Hardware MAC address.
Mac *string `json:"mac,omitempty"`
// MacAddress Configured MAC address override.
MacAddress *string `json:"mac_address,omitempty"`
// Mtu Maximum transmission unit.
Mtu *int `json:"mtu,omitempty"`
// Name Interface name.
Name *string `json:"name,omitempty"`
// Primary Whether this is the primary (default route) interface.
Primary *bool `json:"primary,omitempty"`
// State Operational state of the interface.
State *string `json:"state,omitempty"`
// Wakeonlan Whether Wake-on-LAN is enabled.
Wakeonlan *bool `json:"wakeonlan,omitempty"`
}
InterfaceInfo Information about a network interface.
type InterfaceListEntry ¶
type InterfaceListEntry struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname Hostname of the agent that reported this entry.
Hostname string `json:"hostname"`
// Interfaces List of network interfaces on this host.
Interfaces *[]InterfaceInfo `json:"interfaces,omitempty"`
// Status The status of the operation for this host.
Status InterfaceListEntryStatus `json:"status"`
}
InterfaceListEntry Interface list result for a single agent.
type InterfaceListEntryStatus ¶
type InterfaceListEntryStatus string
InterfaceListEntryStatus The status of the operation for this host.
const ( InterfaceListEntryStatusFailed InterfaceListEntryStatus = "failed" InterfaceListEntryStatusOk InterfaceListEntryStatus = "ok" InterfaceListEntryStatusSkipped InterfaceListEntryStatus = "skipped" )
Defines values for InterfaceListEntryStatus.
type InterfaceListResponse ¶
type InterfaceListResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []InterfaceListEntry `json:"results"`
}
InterfaceListResponse defines model for InterfaceListResponse.
type InterfaceMutationEntry ¶
type InterfaceMutationEntry struct {
// Changed Whether the operation modified system state.
Changed *bool `json:"changed,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname Hostname of the agent that processed this operation.
Hostname string `json:"hostname"`
// Name Interface name.
Name *string `json:"name,omitempty"`
// Status The status of the operation for this host.
Status InterfaceMutationEntryStatus `json:"status"`
}
InterfaceMutationEntry Result of an interface mutation operation for one host.
type InterfaceMutationEntryStatus ¶
type InterfaceMutationEntryStatus string
InterfaceMutationEntryStatus The status of the operation for this host.
const ( InterfaceMutationEntryStatusFailed InterfaceMutationEntryStatus = "failed" InterfaceMutationEntryStatusOk InterfaceMutationEntryStatus = "ok" InterfaceMutationEntryStatusSkipped InterfaceMutationEntryStatus = "skipped" )
Defines values for InterfaceMutationEntryStatus.
type InterfaceMutationResponse ¶
type InterfaceMutationResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []InterfaceMutationEntry `json:"results"`
}
InterfaceMutationResponse defines model for InterfaceMutationResponse.
type PingCollectionResponse ¶
type PingCollectionResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []PingResponse `json:"results"`
}
PingCollectionResponse defines model for PingCollectionResponse.
type PingResponse ¶
type PingResponse struct {
// AvgRtt Average round-trip time in Go time.Duration format.
AvgRtt *string `json:"avg_rtt,omitempty"`
// Changed Whether the operation modified system state.
Changed *bool `json:"changed,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname The hostname of the agent that executed the ping.
Hostname string `json:"hostname"`
// MaxRtt Maximum round-trip time in Go time.Duration format.
MaxRtt *string `json:"max_rtt,omitempty"`
// MinRtt Minimum round-trip time in Go time.Duration format.
MinRtt *string `json:"min_rtt,omitempty"`
// PacketLoss Percentage of packet loss.
PacketLoss *float64 `json:"packet_loss,omitempty"`
// PacketsReceived Number of packets received.
PacketsReceived *int `json:"packets_received,omitempty"`
// PacketsSent Number of packets sent.
PacketsSent *int `json:"packets_sent,omitempty"`
// Status The status of the operation for this host.
Status PingResponseStatus `json:"status"`
}
PingResponse defines model for PingResponse.
type PingResponseStatus ¶
type PingResponseStatus string
PingResponseStatus The status of the operation for this host.
const ( PingResponseStatusFailed PingResponseStatus = "failed" PingResponseStatusOk PingResponseStatus = "ok" PingResponseStatusSkipped PingResponseStatus = "skipped" )
Defines values for PingResponseStatus.
type PostNodeNetworkInterface200JSONResponse ¶
type PostNodeNetworkInterface200JSONResponse InterfaceMutationResponse
func (PostNodeNetworkInterface200JSONResponse) VisitPostNodeNetworkInterfaceResponse ¶
func (response PostNodeNetworkInterface200JSONResponse) VisitPostNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PostNodeNetworkInterface400JSONResponse ¶
type PostNodeNetworkInterface400JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkInterface400JSONResponse) VisitPostNodeNetworkInterfaceResponse ¶
func (response PostNodeNetworkInterface400JSONResponse) VisitPostNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PostNodeNetworkInterface401JSONResponse ¶
type PostNodeNetworkInterface401JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkInterface401JSONResponse) VisitPostNodeNetworkInterfaceResponse ¶
func (response PostNodeNetworkInterface401JSONResponse) VisitPostNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PostNodeNetworkInterface403JSONResponse ¶
type PostNodeNetworkInterface403JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkInterface403JSONResponse) VisitPostNodeNetworkInterfaceResponse ¶
func (response PostNodeNetworkInterface403JSONResponse) VisitPostNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PostNodeNetworkInterface500JSONResponse ¶
type PostNodeNetworkInterface500JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkInterface500JSONResponse) VisitPostNodeNetworkInterfaceResponse ¶
func (response PostNodeNetworkInterface500JSONResponse) VisitPostNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PostNodeNetworkInterfaceJSONRequestBody ¶
type PostNodeNetworkInterfaceJSONRequestBody = InterfaceConfigRequest
PostNodeNetworkInterfaceJSONRequestBody defines body for PostNodeNetworkInterface for application/json ContentType.
type PostNodeNetworkInterfaceRequestObject ¶
type PostNodeNetworkInterfaceRequestObject struct {
Hostname Hostname `json:"hostname"`
Name InterfaceName `json:"name"`
Body *PostNodeNetworkInterfaceJSONRequestBody
}
type PostNodeNetworkInterfaceResponseObject ¶
type PostNodeNetworkInterfaceResponseObject interface {
VisitPostNodeNetworkInterfaceResponse(w http.ResponseWriter) error
}
type PostNodeNetworkPing200JSONResponse ¶
type PostNodeNetworkPing200JSONResponse PingCollectionResponse
func (PostNodeNetworkPing200JSONResponse) VisitPostNodeNetworkPingResponse ¶
func (response PostNodeNetworkPing200JSONResponse) VisitPostNodeNetworkPingResponse(w http.ResponseWriter) error
type PostNodeNetworkPing400JSONResponse ¶
type PostNodeNetworkPing400JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkPing400JSONResponse) VisitPostNodeNetworkPingResponse ¶
func (response PostNodeNetworkPing400JSONResponse) VisitPostNodeNetworkPingResponse(w http.ResponseWriter) error
type PostNodeNetworkPing401JSONResponse ¶
type PostNodeNetworkPing401JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkPing401JSONResponse) VisitPostNodeNetworkPingResponse ¶
func (response PostNodeNetworkPing401JSONResponse) VisitPostNodeNetworkPingResponse(w http.ResponseWriter) error
type PostNodeNetworkPing403JSONResponse ¶
type PostNodeNetworkPing403JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkPing403JSONResponse) VisitPostNodeNetworkPingResponse ¶
func (response PostNodeNetworkPing403JSONResponse) VisitPostNodeNetworkPingResponse(w http.ResponseWriter) error
type PostNodeNetworkPing500JSONResponse ¶
type PostNodeNetworkPing500JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkPing500JSONResponse) VisitPostNodeNetworkPingResponse ¶
func (response PostNodeNetworkPing500JSONResponse) VisitPostNodeNetworkPingResponse(w http.ResponseWriter) error
type PostNodeNetworkPingJSONBody ¶
type PostNodeNetworkPingJSONBody struct {
// Address The IP address of the server to ping. Supports both IPv4 and IPv6. Also accepts @fact. references that are resolved agent-side.
Address string `json:"address" validate:"required,ip_or_fact"`
}
PostNodeNetworkPingJSONBody defines parameters for PostNodeNetworkPing.
type PostNodeNetworkPingJSONRequestBody ¶
type PostNodeNetworkPingJSONRequestBody PostNodeNetworkPingJSONBody
PostNodeNetworkPingJSONRequestBody defines body for PostNodeNetworkPing for application/json ContentType.
type PostNodeNetworkPingRequestObject ¶
type PostNodeNetworkPingRequestObject struct {
Hostname Hostname `json:"hostname"`
Body *PostNodeNetworkPingJSONRequestBody
}
type PostNodeNetworkPingResponseObject ¶
type PostNodeNetworkPingResponseObject interface {
VisitPostNodeNetworkPingResponse(w http.ResponseWriter) error
}
type PostNodeNetworkRoute200JSONResponse ¶
type PostNodeNetworkRoute200JSONResponse RouteMutationResponse
func (PostNodeNetworkRoute200JSONResponse) VisitPostNodeNetworkRouteResponse ¶
func (response PostNodeNetworkRoute200JSONResponse) VisitPostNodeNetworkRouteResponse(w http.ResponseWriter) error
type PostNodeNetworkRoute400JSONResponse ¶
type PostNodeNetworkRoute400JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkRoute400JSONResponse) VisitPostNodeNetworkRouteResponse ¶
func (response PostNodeNetworkRoute400JSONResponse) VisitPostNodeNetworkRouteResponse(w http.ResponseWriter) error
type PostNodeNetworkRoute401JSONResponse ¶
type PostNodeNetworkRoute401JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkRoute401JSONResponse) VisitPostNodeNetworkRouteResponse ¶
func (response PostNodeNetworkRoute401JSONResponse) VisitPostNodeNetworkRouteResponse(w http.ResponseWriter) error
type PostNodeNetworkRoute403JSONResponse ¶
type PostNodeNetworkRoute403JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkRoute403JSONResponse) VisitPostNodeNetworkRouteResponse ¶
func (response PostNodeNetworkRoute403JSONResponse) VisitPostNodeNetworkRouteResponse(w http.ResponseWriter) error
type PostNodeNetworkRoute500JSONResponse ¶
type PostNodeNetworkRoute500JSONResponse externalRef0.ErrorResponse
func (PostNodeNetworkRoute500JSONResponse) VisitPostNodeNetworkRouteResponse ¶
func (response PostNodeNetworkRoute500JSONResponse) VisitPostNodeNetworkRouteResponse(w http.ResponseWriter) error
type PostNodeNetworkRouteJSONRequestBody ¶
type PostNodeNetworkRouteJSONRequestBody = RouteConfigRequest
PostNodeNetworkRouteJSONRequestBody defines body for PostNodeNetworkRoute for application/json ContentType.
type PostNodeNetworkRouteRequestObject ¶
type PostNodeNetworkRouteRequestObject struct {
Hostname Hostname `json:"hostname"`
InterfaceName RouteInterfaceName `json:"interfaceName"`
Body *PostNodeNetworkRouteJSONRequestBody
}
type PostNodeNetworkRouteResponseObject ¶
type PostNodeNetworkRouteResponseObject interface {
VisitPostNodeNetworkRouteResponse(w http.ResponseWriter) error
}
type PutNodeNetworkDNS202JSONResponse ¶
type PutNodeNetworkDNS202JSONResponse DNSUpdateCollectionResponse
func (PutNodeNetworkDNS202JSONResponse) VisitPutNodeNetworkDNSResponse ¶
func (response PutNodeNetworkDNS202JSONResponse) VisitPutNodeNetworkDNSResponse(w http.ResponseWriter) error
type PutNodeNetworkDNS400JSONResponse ¶
type PutNodeNetworkDNS400JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkDNS400JSONResponse) VisitPutNodeNetworkDNSResponse ¶
func (response PutNodeNetworkDNS400JSONResponse) VisitPutNodeNetworkDNSResponse(w http.ResponseWriter) error
type PutNodeNetworkDNS401JSONResponse ¶
type PutNodeNetworkDNS401JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkDNS401JSONResponse) VisitPutNodeNetworkDNSResponse ¶
func (response PutNodeNetworkDNS401JSONResponse) VisitPutNodeNetworkDNSResponse(w http.ResponseWriter) error
type PutNodeNetworkDNS403JSONResponse ¶
type PutNodeNetworkDNS403JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkDNS403JSONResponse) VisitPutNodeNetworkDNSResponse ¶
func (response PutNodeNetworkDNS403JSONResponse) VisitPutNodeNetworkDNSResponse(w http.ResponseWriter) error
type PutNodeNetworkDNS500JSONResponse ¶
type PutNodeNetworkDNS500JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkDNS500JSONResponse) VisitPutNodeNetworkDNSResponse ¶
func (response PutNodeNetworkDNS500JSONResponse) VisitPutNodeNetworkDNSResponse(w http.ResponseWriter) error
type PutNodeNetworkDNSJSONRequestBody ¶
type PutNodeNetworkDNSJSONRequestBody = DNSConfigUpdateRequest
PutNodeNetworkDNSJSONRequestBody defines body for PutNodeNetworkDNS for application/json ContentType.
type PutNodeNetworkDNSRequestObject ¶
type PutNodeNetworkDNSRequestObject struct {
Hostname Hostname `json:"hostname"`
Body *PutNodeNetworkDNSJSONRequestBody
}
type PutNodeNetworkDNSResponseObject ¶
type PutNodeNetworkDNSResponseObject interface {
VisitPutNodeNetworkDNSResponse(w http.ResponseWriter) error
}
type PutNodeNetworkInterface200JSONResponse ¶
type PutNodeNetworkInterface200JSONResponse InterfaceMutationResponse
func (PutNodeNetworkInterface200JSONResponse) VisitPutNodeNetworkInterfaceResponse ¶
func (response PutNodeNetworkInterface200JSONResponse) VisitPutNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PutNodeNetworkInterface400JSONResponse ¶
type PutNodeNetworkInterface400JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkInterface400JSONResponse) VisitPutNodeNetworkInterfaceResponse ¶
func (response PutNodeNetworkInterface400JSONResponse) VisitPutNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PutNodeNetworkInterface401JSONResponse ¶
type PutNodeNetworkInterface401JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkInterface401JSONResponse) VisitPutNodeNetworkInterfaceResponse ¶
func (response PutNodeNetworkInterface401JSONResponse) VisitPutNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PutNodeNetworkInterface403JSONResponse ¶
type PutNodeNetworkInterface403JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkInterface403JSONResponse) VisitPutNodeNetworkInterfaceResponse ¶
func (response PutNodeNetworkInterface403JSONResponse) VisitPutNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PutNodeNetworkInterface404JSONResponse ¶
type PutNodeNetworkInterface404JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkInterface404JSONResponse) VisitPutNodeNetworkInterfaceResponse ¶
func (response PutNodeNetworkInterface404JSONResponse) VisitPutNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PutNodeNetworkInterface500JSONResponse ¶
type PutNodeNetworkInterface500JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkInterface500JSONResponse) VisitPutNodeNetworkInterfaceResponse ¶
func (response PutNodeNetworkInterface500JSONResponse) VisitPutNodeNetworkInterfaceResponse(w http.ResponseWriter) error
type PutNodeNetworkInterfaceJSONRequestBody ¶
type PutNodeNetworkInterfaceJSONRequestBody = InterfaceConfigRequest
PutNodeNetworkInterfaceJSONRequestBody defines body for PutNodeNetworkInterface for application/json ContentType.
type PutNodeNetworkInterfaceRequestObject ¶
type PutNodeNetworkInterfaceRequestObject struct {
Hostname Hostname `json:"hostname"`
Name InterfaceName `json:"name"`
Body *PutNodeNetworkInterfaceJSONRequestBody
}
type PutNodeNetworkInterfaceResponseObject ¶
type PutNodeNetworkInterfaceResponseObject interface {
VisitPutNodeNetworkInterfaceResponse(w http.ResponseWriter) error
}
type PutNodeNetworkRoute200JSONResponse ¶
type PutNodeNetworkRoute200JSONResponse RouteMutationResponse
func (PutNodeNetworkRoute200JSONResponse) VisitPutNodeNetworkRouteResponse ¶
func (response PutNodeNetworkRoute200JSONResponse) VisitPutNodeNetworkRouteResponse(w http.ResponseWriter) error
type PutNodeNetworkRoute400JSONResponse ¶
type PutNodeNetworkRoute400JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkRoute400JSONResponse) VisitPutNodeNetworkRouteResponse ¶
func (response PutNodeNetworkRoute400JSONResponse) VisitPutNodeNetworkRouteResponse(w http.ResponseWriter) error
type PutNodeNetworkRoute401JSONResponse ¶
type PutNodeNetworkRoute401JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkRoute401JSONResponse) VisitPutNodeNetworkRouteResponse ¶
func (response PutNodeNetworkRoute401JSONResponse) VisitPutNodeNetworkRouteResponse(w http.ResponseWriter) error
type PutNodeNetworkRoute403JSONResponse ¶
type PutNodeNetworkRoute403JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkRoute403JSONResponse) VisitPutNodeNetworkRouteResponse ¶
func (response PutNodeNetworkRoute403JSONResponse) VisitPutNodeNetworkRouteResponse(w http.ResponseWriter) error
type PutNodeNetworkRoute404JSONResponse ¶
type PutNodeNetworkRoute404JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkRoute404JSONResponse) VisitPutNodeNetworkRouteResponse ¶
func (response PutNodeNetworkRoute404JSONResponse) VisitPutNodeNetworkRouteResponse(w http.ResponseWriter) error
type PutNodeNetworkRoute500JSONResponse ¶
type PutNodeNetworkRoute500JSONResponse externalRef0.ErrorResponse
func (PutNodeNetworkRoute500JSONResponse) VisitPutNodeNetworkRouteResponse ¶
func (response PutNodeNetworkRoute500JSONResponse) VisitPutNodeNetworkRouteResponse(w http.ResponseWriter) error
type PutNodeNetworkRouteJSONRequestBody ¶
type PutNodeNetworkRouteJSONRequestBody = RouteConfigRequest
PutNodeNetworkRouteJSONRequestBody defines body for PutNodeNetworkRoute for application/json ContentType.
type PutNodeNetworkRouteRequestObject ¶
type PutNodeNetworkRouteRequestObject struct {
Hostname Hostname `json:"hostname"`
InterfaceName RouteInterfaceName `json:"interfaceName"`
Body *PutNodeNetworkRouteJSONRequestBody
}
type PutNodeNetworkRouteResponseObject ¶
type PutNodeNetworkRouteResponseObject interface {
VisitPutNodeNetworkRouteResponse(w http.ResponseWriter) error
}
type RouteConfigRequest ¶
type RouteConfigRequest struct {
Routes []RouteItem `json:"routes" validate:"required,min=1,dive"`
}
RouteConfigRequest defines model for RouteConfigRequest.
type RouteGetEntry ¶
type RouteGetEntry struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname Hostname of the agent that reported this entry.
Hostname string `json:"hostname"`
// Routes Routes for the specified interface.
Routes *[]RouteInfo `json:"routes,omitempty"`
// Status The status of the operation for this host.
Status RouteGetEntryStatus `json:"status"`
}
RouteGetEntry Route get result for a single agent.
type RouteGetEntryStatus ¶
type RouteGetEntryStatus string
RouteGetEntryStatus The status of the operation for this host.
const ( RouteGetEntryStatusFailed RouteGetEntryStatus = "failed" RouteGetEntryStatusOk RouteGetEntryStatus = "ok" RouteGetEntryStatusSkipped RouteGetEntryStatus = "skipped" )
Defines values for RouteGetEntryStatus.
type RouteGetResponse ¶
type RouteGetResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []RouteGetEntry `json:"results"`
}
RouteGetResponse defines model for RouteGetResponse.
type RouteInfo ¶
type RouteInfo struct {
// Destination Route destination in CIDR notation.
Destination *string `json:"destination,omitempty"`
// Gateway Gateway IP address.
Gateway *string `json:"gateway,omitempty"`
// Interface Network interface name.
Interface *string `json:"interface,omitempty"`
// Metric Route metric (priority).
Metric *int `json:"metric,omitempty"`
// Scope Route scope.
Scope *string `json:"scope,omitempty"`
}
RouteInfo Information about a network route.
type RouteInterfaceName ¶
type RouteInterfaceName = string
RouteInterfaceName defines model for RouteInterfaceName.
type RouteItem ¶
type RouteItem struct {
Metric *int `json:"metric,omitempty" validate:"omitempty,min=0"`
To string `json:"to" validate:"required,cidr"`
Via string `json:"via" validate:"required,ip"`
}
RouteItem defines model for RouteItem.
type RouteListEntry ¶
type RouteListEntry struct {
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname Hostname of the agent that reported this entry.
Hostname string `json:"hostname"`
// Routes List of network routes on this host.
Routes *[]RouteInfo `json:"routes,omitempty"`
// Status The status of the operation for this host.
Status RouteListEntryStatus `json:"status"`
}
RouteListEntry Route list result for a single agent.
type RouteListEntryStatus ¶
type RouteListEntryStatus string
RouteListEntryStatus The status of the operation for this host.
const ( RouteListEntryStatusFailed RouteListEntryStatus = "failed" RouteListEntryStatusOk RouteListEntryStatus = "ok" RouteListEntryStatusSkipped RouteListEntryStatus = "skipped" )
Defines values for RouteListEntryStatus.
type RouteListResponse ¶
type RouteListResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []RouteListEntry `json:"results"`
}
RouteListResponse defines model for RouteListResponse.
type RouteMutationEntry ¶
type RouteMutationEntry struct {
// Changed Whether the operation modified system state.
Changed *bool `json:"changed,omitempty"`
// Error Error message if the agent failed.
Error *string `json:"error,omitempty"`
// Hostname Hostname of the agent that processed this operation.
Hostname string `json:"hostname"`
// Interface Interface name the routes are associated with.
Interface *string `json:"interface,omitempty"`
// Status The status of the operation for this host.
Status RouteMutationEntryStatus `json:"status"`
}
RouteMutationEntry Result of a route mutation operation for one host.
type RouteMutationEntryStatus ¶
type RouteMutationEntryStatus string
RouteMutationEntryStatus The status of the operation for this host.
const ( RouteMutationEntryStatusFailed RouteMutationEntryStatus = "failed" RouteMutationEntryStatusOk RouteMutationEntryStatus = "ok" RouteMutationEntryStatusSkipped RouteMutationEntryStatus = "skipped" )
Defines values for RouteMutationEntryStatus.
type RouteMutationResponse ¶
type RouteMutationResponse struct {
// JobId The job ID used to process this request.
JobId *openapi_types.UUID `json:"job_id,omitempty"`
Results []RouteMutationEntry `json:"results"`
}
RouteMutationResponse defines model for RouteMutationResponse.
type ServerInterface ¶
type ServerInterface interface {
// Delete DNS configuration
// (DELETE /api/node/{hostname}/network/dns)
DeleteNodeNetworkDNS(ctx echo.Context, hostname Hostname) error
// Update DNS servers
// (PUT /api/node/{hostname}/network/dns)
PutNodeNetworkDNS(ctx echo.Context, hostname Hostname) error
// List DNS servers
// (GET /api/node/{hostname}/network/dns/{interfaceName})
GetNodeNetworkDNSByInterface(ctx echo.Context, hostname Hostname, interfaceName string) error
// List network interfaces
// (GET /api/node/{hostname}/network/interface)
GetNodeNetworkInterface(ctx echo.Context, hostname Hostname) error
// Delete interface configuration
// (DELETE /api/node/{hostname}/network/interface/{name})
DeleteNodeNetworkInterface(ctx echo.Context, hostname Hostname, name InterfaceName) error
// Get network interface details
// (GET /api/node/{hostname}/network/interface/{name})
GetNodeNetworkInterfaceByName(ctx echo.Context, hostname Hostname, name InterfaceName) error
// Create interface configuration
// (POST /api/node/{hostname}/network/interface/{name})
PostNodeNetworkInterface(ctx echo.Context, hostname Hostname, name InterfaceName) error
// Update interface configuration
// (PUT /api/node/{hostname}/network/interface/{name})
PutNodeNetworkInterface(ctx echo.Context, hostname Hostname, name InterfaceName) error
// Ping a remote server
// (POST /api/node/{hostname}/network/ping)
PostNodeNetworkPing(ctx echo.Context, hostname Hostname) error
// List network routes
// (GET /api/node/{hostname}/network/route)
GetNodeNetworkRoute(ctx echo.Context, hostname Hostname) error
// Delete routes for an interface
// (DELETE /api/node/{hostname}/network/route/{interfaceName})
DeleteNodeNetworkRoute(ctx echo.Context, hostname Hostname, interfaceName RouteInterfaceName) error
// Get routes for an interface
// (GET /api/node/{hostname}/network/route/{interfaceName})
GetNodeNetworkRouteByInterface(ctx echo.Context, hostname Hostname, interfaceName RouteInterfaceName) error
// Create routes for an interface
// (POST /api/node/{hostname}/network/route/{interfaceName})
PostNodeNetworkRoute(ctx echo.Context, hostname Hostname, interfaceName RouteInterfaceName) error
// Update routes for an interface
// (PUT /api/node/{hostname}/network/route/{interfaceName})
PutNodeNetworkRoute(ctx echo.Context, hostname Hostname, interfaceName RouteInterfaceName) error
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) DeleteNodeNetworkDNS ¶
func (w *ServerInterfaceWrapper) DeleteNodeNetworkDNS(ctx echo.Context) error
DeleteNodeNetworkDNS converts echo context to params.
func (*ServerInterfaceWrapper) DeleteNodeNetworkInterface ¶
func (w *ServerInterfaceWrapper) DeleteNodeNetworkInterface(ctx echo.Context) error
DeleteNodeNetworkInterface converts echo context to params.
func (*ServerInterfaceWrapper) DeleteNodeNetworkRoute ¶
func (w *ServerInterfaceWrapper) DeleteNodeNetworkRoute(ctx echo.Context) error
DeleteNodeNetworkRoute converts echo context to params.
func (*ServerInterfaceWrapper) GetNodeNetworkDNSByInterface ¶
func (w *ServerInterfaceWrapper) GetNodeNetworkDNSByInterface(ctx echo.Context) error
GetNodeNetworkDNSByInterface converts echo context to params.
func (*ServerInterfaceWrapper) GetNodeNetworkInterface ¶
func (w *ServerInterfaceWrapper) GetNodeNetworkInterface(ctx echo.Context) error
GetNodeNetworkInterface converts echo context to params.
func (*ServerInterfaceWrapper) GetNodeNetworkInterfaceByName ¶
func (w *ServerInterfaceWrapper) GetNodeNetworkInterfaceByName(ctx echo.Context) error
GetNodeNetworkInterfaceByName converts echo context to params.
func (*ServerInterfaceWrapper) GetNodeNetworkRoute ¶
func (w *ServerInterfaceWrapper) GetNodeNetworkRoute(ctx echo.Context) error
GetNodeNetworkRoute converts echo context to params.
func (*ServerInterfaceWrapper) GetNodeNetworkRouteByInterface ¶
func (w *ServerInterfaceWrapper) GetNodeNetworkRouteByInterface(ctx echo.Context) error
GetNodeNetworkRouteByInterface converts echo context to params.
func (*ServerInterfaceWrapper) PostNodeNetworkInterface ¶
func (w *ServerInterfaceWrapper) PostNodeNetworkInterface(ctx echo.Context) error
PostNodeNetworkInterface converts echo context to params.
func (*ServerInterfaceWrapper) PostNodeNetworkPing ¶
func (w *ServerInterfaceWrapper) PostNodeNetworkPing(ctx echo.Context) error
PostNodeNetworkPing converts echo context to params.
func (*ServerInterfaceWrapper) PostNodeNetworkRoute ¶
func (w *ServerInterfaceWrapper) PostNodeNetworkRoute(ctx echo.Context) error
PostNodeNetworkRoute converts echo context to params.
func (*ServerInterfaceWrapper) PutNodeNetworkDNS ¶
func (w *ServerInterfaceWrapper) PutNodeNetworkDNS(ctx echo.Context) error
PutNodeNetworkDNS converts echo context to params.
func (*ServerInterfaceWrapper) PutNodeNetworkInterface ¶
func (w *ServerInterfaceWrapper) PutNodeNetworkInterface(ctx echo.Context) error
PutNodeNetworkInterface converts echo context to params.
func (*ServerInterfaceWrapper) PutNodeNetworkRoute ¶
func (w *ServerInterfaceWrapper) PutNodeNetworkRoute(ctx echo.Context) error
PutNodeNetworkRoute converts echo context to params.
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictecho.StrictEchoHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictecho.StrictEchoMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Delete DNS configuration
// (DELETE /api/node/{hostname}/network/dns)
DeleteNodeNetworkDNS(ctx context.Context, request DeleteNodeNetworkDNSRequestObject) (DeleteNodeNetworkDNSResponseObject, error)
// Update DNS servers
// (PUT /api/node/{hostname}/network/dns)
PutNodeNetworkDNS(ctx context.Context, request PutNodeNetworkDNSRequestObject) (PutNodeNetworkDNSResponseObject, error)
// List DNS servers
// (GET /api/node/{hostname}/network/dns/{interfaceName})
GetNodeNetworkDNSByInterface(ctx context.Context, request GetNodeNetworkDNSByInterfaceRequestObject) (GetNodeNetworkDNSByInterfaceResponseObject, error)
// List network interfaces
// (GET /api/node/{hostname}/network/interface)
GetNodeNetworkInterface(ctx context.Context, request GetNodeNetworkInterfaceRequestObject) (GetNodeNetworkInterfaceResponseObject, error)
// Delete interface configuration
// (DELETE /api/node/{hostname}/network/interface/{name})
DeleteNodeNetworkInterface(ctx context.Context, request DeleteNodeNetworkInterfaceRequestObject) (DeleteNodeNetworkInterfaceResponseObject, error)
// Get network interface details
// (GET /api/node/{hostname}/network/interface/{name})
GetNodeNetworkInterfaceByName(ctx context.Context, request GetNodeNetworkInterfaceByNameRequestObject) (GetNodeNetworkInterfaceByNameResponseObject, error)
// Create interface configuration
// (POST /api/node/{hostname}/network/interface/{name})
PostNodeNetworkInterface(ctx context.Context, request PostNodeNetworkInterfaceRequestObject) (PostNodeNetworkInterfaceResponseObject, error)
// Update interface configuration
// (PUT /api/node/{hostname}/network/interface/{name})
PutNodeNetworkInterface(ctx context.Context, request PutNodeNetworkInterfaceRequestObject) (PutNodeNetworkInterfaceResponseObject, error)
// Ping a remote server
// (POST /api/node/{hostname}/network/ping)
PostNodeNetworkPing(ctx context.Context, request PostNodeNetworkPingRequestObject) (PostNodeNetworkPingResponseObject, error)
// List network routes
// (GET /api/node/{hostname}/network/route)
GetNodeNetworkRoute(ctx context.Context, request GetNodeNetworkRouteRequestObject) (GetNodeNetworkRouteResponseObject, error)
// Delete routes for an interface
// (DELETE /api/node/{hostname}/network/route/{interfaceName})
DeleteNodeNetworkRoute(ctx context.Context, request DeleteNodeNetworkRouteRequestObject) (DeleteNodeNetworkRouteResponseObject, error)
// Get routes for an interface
// (GET /api/node/{hostname}/network/route/{interfaceName})
GetNodeNetworkRouteByInterface(ctx context.Context, request GetNodeNetworkRouteByInterfaceRequestObject) (GetNodeNetworkRouteByInterfaceResponseObject, error)
// Create routes for an interface
// (POST /api/node/{hostname}/network/route/{interfaceName})
PostNodeNetworkRoute(ctx context.Context, request PostNodeNetworkRouteRequestObject) (PostNodeNetworkRouteResponseObject, error)
// Update routes for an interface
// (PUT /api/node/{hostname}/network/route/{interfaceName})
PutNodeNetworkRoute(ctx context.Context, request PutNodeNetworkRouteRequestObject) (PutNodeNetworkRouteResponseObject, error)
}
StrictServerInterface represents all server handlers.