mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* refactor(controller): ask one cluster method at each control-plane endpoint gate Each gate that scales, upgrades or replaces control-plane nodes tested the control-plane VIP for an empty string by itself. The gates now call db.Cluster.HasStableControlPlaneEndpoint, which is true when the cluster has a VIP. The gates are the count check at create and scale, the upgrade and rollout checks of the cluster API, the node delete guard, the control-plane controller (recycling, remediation, rebalance, stuck pending nodes) and the node pool controller (surge, NodeSet replacement). No behavior changes. A later change adds a second kind of stable endpoint to the method. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): add controlPlaneEndpoint to the cluster API schema A cluster can name an API server endpoint that NVKE does not manage, for example a load balancer in front of the API servers. The create request gets the optional object controlPlaneEndpoint. Its type says who manages the endpoint, and the block named after the type carries what that type needs. This change has one type, External, with a host and an optional port in the external block. The port defaults to 6443. The cluster response returns the type and the resolved host and port. The update request has no such property, so the value is fixed at creation. The shape is the one of the proposal for a load balancer as the control plane endpoint, and this change is its first part. The enum of the type has only External. The other types of the proposal come later. A new enum value passes the API compatibility check, and a removed one does not, so the enum lists only what the code does. The existing descriptions change only where the new field makes them wrong or incomplete: - The overview of the Clusters tag and the description of controlPlaneVIP say which address is the API server endpoint. - Seven sentences that say an operation requires controlPlaneVIP now name both fields. Each is one changed line. - The 400 list of the create operation gets the new reasons. - The desiredNodeCount descriptions of the two node pool requests lose their sentence about control-plane pools. The node pool handlers refuse each create and each update of a control-plane node pool, so no request reaches a rule on that count. This change is only api/openapi.yaml and the code that make generate writes from it (models.gen.go, server.gen.go). The handler does not read the field yet. The next changes store it, check it and use it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): store controlPlaneEndpoint in the clusters table The clusters table gets three nullable columns for the API server endpoint that a cluster was created with: control_plane_endpoint_type, control_plane_endpoint_host and control_plane_endpoint_port. db.Cluster gets the fields ControlPlaneEndpointType, ControlPlaneEndpointHost and ControlPlaneEndpointPort. The type says who manages the endpoint. The one type is External, an endpoint that NVKE does not manage. The host and the port are the resolved endpoint. A cluster without the field stores NULL in the three columns, which is what each existing row has after the migration. An empty type marks such a row. control_plane_vip does not change. No handler writes the fields yet and no workflow reads them. The test proves that the values come back from a read and stay in the row through an update of the cluster. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): count controlPlaneEndpoint as a stable endpoint at each gate db.Cluster.HasStableControlPlaneEndpoint is now true for a cluster with an endpoint of the type External, as it is for one with a VIP. Each gate that scales, upgrades or replaces control-plane nodes asks this method, so the one line opens them all: scale-up, upgrade and rollout in the cluster API, node delete, recycling, remediation, rebalance, stuck pending nodes, surge and NodeSet replacement. The method reads the stored type and not the host. An empty type is a cluster without the field, and a type that this controller does not know is no stable endpoint. The tests run each gate with such a cluster. Recycling, remediation, rebalance and stuck pending nodes share one check, controlPlaneReplacementBlocked, which gets its own test. The 400 messages and the log warnings of the gates keep their text. Each of them is given only for a cluster with no VIP and no controlPlaneEndpoint. allowControlPlaneWithoutVIP keeps its meaning and its default. No cluster has the field yet, because the create request does not store it. A later change adds that, with the count check at create. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): check controlPlaneEndpoint on cluster create The create request is now rejected with 400 when it has both controlPlaneEndpoint and controlPlaneVIP, when the type is not External, when the type External has no external block, and when the host or the port is not valid. The host is a DNS name or an IPv4 address. A DNS name is lowercase, has at most 253 characters, no trailing dot and no wildcard. An IPv4 address must be unicast, not loopback and not link-local, and outside the pod and service CIDRs. The port is a number from 1 to 65535, and 6443 when the request has none. A host of only digits and dots must be a valid IPv4 address, so that a mistyped address does not pass as a DNS name and skip the address rules. A DNS name is not checked against the CIDRs, because NVKE cannot tell which addresses it resolves to. The host is not trimmed. NVKE does not resolve or dial the endpoint. The CIDR rule of controlPlaneVIP moves into a helper that both fields use. Its messages keep their text, and the checks of controlPlaneVIP do not change. The checks come before the change that stores the value, so that no commit stores a value without them. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): use controlPlaneEndpoint for kubeadm init kubeadm init now takes its controlPlaneEndpoint from one function, kubeadmControlPlaneEndpoint. For a cluster with an external endpoint the value is host:port. Without one it is the kube-vip VIP, then the IP of the initializing node, as before. The value goes into the ClusterConfiguration and into the request to the node agent, as before. NVKE also names the host of an external endpoint in apiServer.certSANs of the ClusterConfiguration. kubeadm adds the host of its controlPlaneEndpoint to the API server certificate by itself. The explicit entry keeps certificate renewal and control-plane joins correct if that default changes. A cluster without an external endpoint gets no certSANs entry, so its configuration does not change. The step fails for a cluster row with an endpoint type that this controller does not know, and for an external endpoint with no host or no port. The address goes into each certificate and each kubeconfig of the cluster, so the step does not guess. The kube-vip step needs no change and gets no check for the new field. It returns with no action for a cluster without a VIP, and a cluster with a controlPlaneEndpoint has no VIP: the create request refuses the two fields together, and no other request writes either of them to the cluster row. One test keeps this true: for such a cluster the step makes no kube-vip call and runs no script on the node. Each later step reads the endpoint back from what kubeadm wrote: the join string, admin.conf and the Cluster API endpoint. They need no change. No cluster has the field yet. The next change makes the create request store it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * feat(controller): accept controlPlaneEndpoint on cluster create The create request now stores controlPlaneEndpoint in the cluster row: the type, the host and the resolved port, which is 6443 when the request names none. The cluster response returns the type and the resolved host and port. The response leaves the field out when the cluster has none. The count check at create asks HasStableControlPlaneEndpoint of the fields that the request would store. So a request with an external endpoint can ask for more than one control-plane node, as one with a VIP can. The tests go through the service and through the HTTP handler with the OpenAPI validator: at each level requests that are accepted and requests that are refused, then the bounds that only the schema checks, and a PATCH with the field, which the schema refuses. One test checks the JSON form of the field in the response. The full table of refused values is in the test of the check itself. This change comes after each part that reads the value, so that no cluster can have the field before kubeadm init uses it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: describe controlPlaneEndpoint for workload clusters The pages that state the VIP rule now name controlPlaneEndpoint as the second way to give a cluster a stable API address: the cluster spec table and the count rule in the create guide, the API address in the two access pages, the upgrade rule in the supported platforms, and the installation plan. The create guide shows the object with the type External, its host and its port, and says what the response returns. It says what the endpoint must do before the request, and that NVKE does not resolve or call the endpoint when it accepts the request. The access page says that NVKE does not take a node out of the endpoint before it restarts the API server or etcd there, so the health check of the endpoint must do it. The pages come after the change that stores the value, so that each sentence is true when it is added. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * fix(controller): reject a DNS label over 63 characters in controlPlaneEndpoint The host check of an external control plane endpoint used IsDNS1123Subdomain, which checks the whole length and the form of a DNS name and not the length of each label. So a name with a label of 64 characters passed the check, and DNS has no such name. The check now also rejects a label of more than 63 characters. The text of the field in the spec says so, and the generated code follows it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: say that an endpoint health check acts after the failure The access page said that the endpoint must stop traffic to a node through its own health check. A health check sees a failure only after it happens, so a call can fail between the restart of the API server or of etcd and that check. The page says so now. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
3038 lines
121 KiB
Go
3038 lines
121 KiB
Go
//go:build go1.22
|
|
|
|
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package api provides primitives to interact with the openapi HTTP API.
|
|
//
|
|
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.2.0 DO NOT EDIT.
|
|
package api
|
|
|
|
import (
|
|
"bytes"
|
|
"compress/gzip"
|
|
"context"
|
|
"encoding/base64"
|
|
"encoding/json"
|
|
"fmt"
|
|
"net/http"
|
|
"net/url"
|
|
"path"
|
|
"strings"
|
|
|
|
"github.com/getkin/kin-openapi/openapi3"
|
|
"github.com/oapi-codegen/runtime"
|
|
strictnethttp "github.com/oapi-codegen/runtime/strictmiddleware/nethttp"
|
|
openapi_types "github.com/oapi-codegen/runtime/types"
|
|
)
|
|
|
|
// ServerInterface represents all server handlers.
|
|
type ServerInterface interface {
|
|
// List clusters
|
|
// (GET /clusters)
|
|
ListClusters(w http.ResponseWriter, r *http.Request, params ListClustersParams)
|
|
// Create a cluster
|
|
// (POST /clusters)
|
|
CreateCluster(w http.ResponseWriter, r *http.Request)
|
|
// Adopt a cluster that already runs
|
|
// (POST /clusters/self-adopt)
|
|
SelfAdoptCluster(w http.ResponseWriter, r *http.Request)
|
|
// Delete a cluster
|
|
// (DELETE /clusters/{clusterID})
|
|
DeleteCluster(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID)
|
|
// Get a cluster
|
|
// (GET /clusters/{clusterID})
|
|
GetCluster(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID)
|
|
// Update a cluster
|
|
// (PATCH /clusters/{clusterID})
|
|
UpdateCluster(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID)
|
|
// Get a cluster's control plane
|
|
// (GET /clusters/{clusterID}/control-plane)
|
|
GetClusterControlPlane(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID)
|
|
// Get control-plane config history
|
|
// (GET /clusters/{clusterID}/control-plane/configHistory)
|
|
GetClusterControlPlaneConfigHistory(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID)
|
|
// Get the SPIRE server the cluster's nodes point at
|
|
// (GET /clusters/{clusterID}/spire-server)
|
|
GetClusterSpireServer(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID)
|
|
// Point the cluster's nodes at a SPIRE server
|
|
// (PATCH /clusters/{clusterID}/spire-server)
|
|
UpdateClusterSpireServer(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID)
|
|
// List config profiles
|
|
// (GET /configProfiles)
|
|
ListConfigProfiles(w http.ResponseWriter, r *http.Request)
|
|
// List node pools
|
|
// (GET /nodePools)
|
|
ListNodePools(w http.ResponseWriter, r *http.Request, params ListNodePoolsParams)
|
|
// Create a node pool
|
|
// (POST /nodePools)
|
|
CreateNodePool(w http.ResponseWriter, r *http.Request)
|
|
// Delete a node pool
|
|
// (DELETE /nodePools/{nodePoolID})
|
|
DeleteNodePool(w http.ResponseWriter, r *http.Request, nodePoolID openapi_types.UUID)
|
|
// Get a node pool
|
|
// (GET /nodePools/{nodePoolID})
|
|
GetNodePool(w http.ResponseWriter, r *http.Request, nodePoolID openapi_types.UUID)
|
|
// Update a node pool
|
|
// (PATCH /nodePools/{nodePoolID})
|
|
UpdateNodePool(w http.ResponseWriter, r *http.Request, nodePoolID openapi_types.UUID)
|
|
// List node sets
|
|
// (GET /nodeSets)
|
|
ListNodeSets(w http.ResponseWriter, r *http.Request, params ListNodeSetsParams)
|
|
// Get a node set
|
|
// (GET /nodeSets/{nodeSetID})
|
|
GetNodeSet(w http.ResponseWriter, r *http.Request, nodeSetID openapi_types.UUID)
|
|
// List nodes
|
|
// (GET /nodes)
|
|
ListNodes(w http.ResponseWriter, r *http.Request, params ListNodesParams)
|
|
// Delete a node
|
|
// (DELETE /nodes/{nodeID})
|
|
DeleteNode(w http.ResponseWriter, r *http.Request, nodeID openapi_types.UUID)
|
|
// Get a node
|
|
// (GET /nodes/{nodeID})
|
|
GetNode(w http.ResponseWriter, r *http.Request, nodeID openapi_types.UUID)
|
|
// List releases
|
|
// (GET /releases)
|
|
ListReleases(w http.ResponseWriter, r *http.Request)
|
|
}
|
|
|
|
// ServerInterfaceWrapper converts contexts to parameters.
|
|
type ServerInterfaceWrapper struct {
|
|
Handler ServerInterface
|
|
HandlerMiddlewares []MiddlewareFunc
|
|
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
|
|
}
|
|
|
|
type MiddlewareFunc func(http.Handler) http.Handler
|
|
|
|
// ListClusters operation middleware
|
|
func (siw *ServerInterfaceWrapper) ListClusters(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListClustersParams
|
|
|
|
// ------------- Optional query parameter "name" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "name", r.URL.Query(), ¶ms.Name)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "name", Err: err})
|
|
return
|
|
}
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.ListClusters(w, r, params)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// CreateCluster operation middleware
|
|
func (siw *ServerInterfaceWrapper) CreateCluster(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.CreateCluster(w, r)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// SelfAdoptCluster operation middleware
|
|
func (siw *ServerInterfaceWrapper) SelfAdoptCluster(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.SelfAdoptCluster(w, r)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// DeleteCluster operation middleware
|
|
func (siw *ServerInterfaceWrapper) DeleteCluster(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "clusterID" -------------
|
|
var clusterID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "clusterID", r.PathValue("clusterID"), &clusterID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.DeleteCluster(w, r, clusterID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// GetCluster operation middleware
|
|
func (siw *ServerInterfaceWrapper) GetCluster(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "clusterID" -------------
|
|
var clusterID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "clusterID", r.PathValue("clusterID"), &clusterID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.GetCluster(w, r, clusterID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// UpdateCluster operation middleware
|
|
func (siw *ServerInterfaceWrapper) UpdateCluster(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "clusterID" -------------
|
|
var clusterID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "clusterID", r.PathValue("clusterID"), &clusterID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.UpdateCluster(w, r, clusterID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// GetClusterControlPlane operation middleware
|
|
func (siw *ServerInterfaceWrapper) GetClusterControlPlane(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "clusterID" -------------
|
|
var clusterID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "clusterID", r.PathValue("clusterID"), &clusterID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.GetClusterControlPlane(w, r, clusterID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// GetClusterControlPlaneConfigHistory operation middleware
|
|
func (siw *ServerInterfaceWrapper) GetClusterControlPlaneConfigHistory(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "clusterID" -------------
|
|
var clusterID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "clusterID", r.PathValue("clusterID"), &clusterID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.GetClusterControlPlaneConfigHistory(w, r, clusterID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// GetClusterSpireServer operation middleware
|
|
func (siw *ServerInterfaceWrapper) GetClusterSpireServer(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "clusterID" -------------
|
|
var clusterID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "clusterID", r.PathValue("clusterID"), &clusterID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.GetClusterSpireServer(w, r, clusterID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// UpdateClusterSpireServer operation middleware
|
|
func (siw *ServerInterfaceWrapper) UpdateClusterSpireServer(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "clusterID" -------------
|
|
var clusterID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "clusterID", r.PathValue("clusterID"), &clusterID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.UpdateClusterSpireServer(w, r, clusterID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// ListConfigProfiles operation middleware
|
|
func (siw *ServerInterfaceWrapper) ListConfigProfiles(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.ListConfigProfiles(w, r)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// ListNodePools operation middleware
|
|
func (siw *ServerInterfaceWrapper) ListNodePools(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListNodePoolsParams
|
|
|
|
// ------------- Optional query parameter "clusterID" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "clusterID", r.URL.Query(), ¶ms.ClusterID)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
// ------------- Optional query parameter "clusterName" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "clusterName", r.URL.Query(), ¶ms.ClusterName)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterName", Err: err})
|
|
return
|
|
}
|
|
|
|
// ------------- Optional query parameter "name" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "name", r.URL.Query(), ¶ms.Name)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "name", Err: err})
|
|
return
|
|
}
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.ListNodePools(w, r, params)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// CreateNodePool operation middleware
|
|
func (siw *ServerInterfaceWrapper) CreateNodePool(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.CreateNodePool(w, r)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// DeleteNodePool operation middleware
|
|
func (siw *ServerInterfaceWrapper) DeleteNodePool(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "nodePoolID" -------------
|
|
var nodePoolID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "nodePoolID", r.PathValue("nodePoolID"), &nodePoolID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodePoolID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.DeleteNodePool(w, r, nodePoolID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// GetNodePool operation middleware
|
|
func (siw *ServerInterfaceWrapper) GetNodePool(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "nodePoolID" -------------
|
|
var nodePoolID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "nodePoolID", r.PathValue("nodePoolID"), &nodePoolID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodePoolID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.GetNodePool(w, r, nodePoolID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// UpdateNodePool operation middleware
|
|
func (siw *ServerInterfaceWrapper) UpdateNodePool(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "nodePoolID" -------------
|
|
var nodePoolID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "nodePoolID", r.PathValue("nodePoolID"), &nodePoolID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodePoolID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.UpdateNodePool(w, r, nodePoolID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// ListNodeSets operation middleware
|
|
func (siw *ServerInterfaceWrapper) ListNodeSets(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListNodeSetsParams
|
|
|
|
// ------------- Optional query parameter "nodePoolID" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "nodePoolID", r.URL.Query(), ¶ms.NodePoolID)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodePoolID", Err: err})
|
|
return
|
|
}
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.ListNodeSets(w, r, params)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// GetNodeSet operation middleware
|
|
func (siw *ServerInterfaceWrapper) GetNodeSet(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "nodeSetID" -------------
|
|
var nodeSetID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "nodeSetID", r.PathValue("nodeSetID"), &nodeSetID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodeSetID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.GetNodeSet(w, r, nodeSetID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// ListNodes operation middleware
|
|
func (siw *ServerInterfaceWrapper) ListNodes(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
// Parameter object where we will unmarshal all parameters from the context
|
|
var params ListNodesParams
|
|
|
|
// ------------- Optional query parameter "clusterID" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "clusterID", r.URL.Query(), ¶ms.ClusterID)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterID", Err: err})
|
|
return
|
|
}
|
|
|
|
// ------------- Optional query parameter "nodePoolID" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "nodePoolID", r.URL.Query(), ¶ms.NodePoolID)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodePoolID", Err: err})
|
|
return
|
|
}
|
|
|
|
// ------------- Optional query parameter "clusterName" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "clusterName", r.URL.Query(), ¶ms.ClusterName)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "clusterName", Err: err})
|
|
return
|
|
}
|
|
|
|
// ------------- Optional query parameter "name" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "name", r.URL.Query(), ¶ms.Name)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "name", Err: err})
|
|
return
|
|
}
|
|
|
|
// ------------- Optional query parameter "controlPlane" -------------
|
|
|
|
err = runtime.BindQueryParameter("form", true, false, "controlPlane", r.URL.Query(), ¶ms.ControlPlane)
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "controlPlane", Err: err})
|
|
return
|
|
}
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.ListNodes(w, r, params)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// DeleteNode operation middleware
|
|
func (siw *ServerInterfaceWrapper) DeleteNode(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "nodeID" -------------
|
|
var nodeID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "nodeID", r.PathValue("nodeID"), &nodeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodeID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.DeleteNode(w, r, nodeID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// GetNode operation middleware
|
|
func (siw *ServerInterfaceWrapper) GetNode(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
var err error
|
|
|
|
// ------------- Path parameter "nodeID" -------------
|
|
var nodeID openapi_types.UUID
|
|
|
|
err = runtime.BindStyledParameterWithOptions("simple", "nodeID", r.PathValue("nodeID"), &nodeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
|
if err != nil {
|
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "nodeID", Err: err})
|
|
return
|
|
}
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.GetNode(w, r, nodeID)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
// ListReleases operation middleware
|
|
func (siw *ServerInterfaceWrapper) ListReleases(w http.ResponseWriter, r *http.Request) {
|
|
ctx := r.Context()
|
|
|
|
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
|
|
|
|
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
siw.Handler.ListReleases(w, r)
|
|
}))
|
|
|
|
for _, middleware := range siw.HandlerMiddlewares {
|
|
handler = middleware(handler)
|
|
}
|
|
|
|
handler.ServeHTTP(w, r.WithContext(ctx))
|
|
}
|
|
|
|
type UnescapedCookieParamError struct {
|
|
ParamName string
|
|
Err error
|
|
}
|
|
|
|
func (e *UnescapedCookieParamError) Error() string {
|
|
return fmt.Sprintf("error unescaping cookie parameter '%s'", e.ParamName)
|
|
}
|
|
|
|
func (e *UnescapedCookieParamError) Unwrap() error {
|
|
return e.Err
|
|
}
|
|
|
|
type UnmarshalingParamError struct {
|
|
ParamName string
|
|
Err error
|
|
}
|
|
|
|
func (e *UnmarshalingParamError) Error() string {
|
|
return fmt.Sprintf("Error unmarshaling parameter %s as JSON: %s", e.ParamName, e.Err.Error())
|
|
}
|
|
|
|
func (e *UnmarshalingParamError) Unwrap() error {
|
|
return e.Err
|
|
}
|
|
|
|
type RequiredParamError struct {
|
|
ParamName string
|
|
}
|
|
|
|
func (e *RequiredParamError) Error() string {
|
|
return fmt.Sprintf("Query argument %s is required, but not found", e.ParamName)
|
|
}
|
|
|
|
type RequiredHeaderError struct {
|
|
ParamName string
|
|
Err error
|
|
}
|
|
|
|
func (e *RequiredHeaderError) Error() string {
|
|
return fmt.Sprintf("Header parameter %s is required, but not found", e.ParamName)
|
|
}
|
|
|
|
func (e *RequiredHeaderError) Unwrap() error {
|
|
return e.Err
|
|
}
|
|
|
|
type InvalidParamFormatError struct {
|
|
ParamName string
|
|
Err error
|
|
}
|
|
|
|
func (e *InvalidParamFormatError) Error() string {
|
|
return fmt.Sprintf("Invalid format for parameter %s: %s", e.ParamName, e.Err.Error())
|
|
}
|
|
|
|
func (e *InvalidParamFormatError) Unwrap() error {
|
|
return e.Err
|
|
}
|
|
|
|
type TooManyValuesForParamError struct {
|
|
ParamName string
|
|
Count int
|
|
}
|
|
|
|
func (e *TooManyValuesForParamError) Error() string {
|
|
return fmt.Sprintf("Expected one value for %s, got %d", e.ParamName, e.Count)
|
|
}
|
|
|
|
// Handler creates http.Handler with routing matching OpenAPI spec.
|
|
func Handler(si ServerInterface) http.Handler {
|
|
return HandlerWithOptions(si, StdHTTPServerOptions{})
|
|
}
|
|
|
|
type StdHTTPServerOptions struct {
|
|
BaseURL string
|
|
BaseRouter *http.ServeMux
|
|
Middlewares []MiddlewareFunc
|
|
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
|
|
}
|
|
|
|
// HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
|
|
func HandlerFromMux(si ServerInterface, m *http.ServeMux) http.Handler {
|
|
return HandlerWithOptions(si, StdHTTPServerOptions{
|
|
BaseRouter: m,
|
|
})
|
|
}
|
|
|
|
func HandlerFromMuxWithBaseURL(si ServerInterface, m *http.ServeMux, baseURL string) http.Handler {
|
|
return HandlerWithOptions(si, StdHTTPServerOptions{
|
|
BaseURL: baseURL,
|
|
BaseRouter: m,
|
|
})
|
|
}
|
|
|
|
// HandlerWithOptions creates http.Handler with additional options
|
|
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler {
|
|
m := options.BaseRouter
|
|
|
|
if m == nil {
|
|
m = http.NewServeMux()
|
|
}
|
|
if options.ErrorHandlerFunc == nil {
|
|
options.ErrorHandlerFunc = func(w http.ResponseWriter, r *http.Request, err error) {
|
|
http.Error(w, err.Error(), http.StatusBadRequest)
|
|
}
|
|
}
|
|
|
|
wrapper := ServerInterfaceWrapper{
|
|
Handler: si,
|
|
HandlerMiddlewares: options.Middlewares,
|
|
ErrorHandlerFunc: options.ErrorHandlerFunc,
|
|
}
|
|
|
|
m.HandleFunc("GET "+options.BaseURL+"/clusters", wrapper.ListClusters)
|
|
m.HandleFunc("POST "+options.BaseURL+"/clusters", wrapper.CreateCluster)
|
|
m.HandleFunc("POST "+options.BaseURL+"/clusters/self-adopt", wrapper.SelfAdoptCluster)
|
|
m.HandleFunc("DELETE "+options.BaseURL+"/clusters/{clusterID}", wrapper.DeleteCluster)
|
|
m.HandleFunc("GET "+options.BaseURL+"/clusters/{clusterID}", wrapper.GetCluster)
|
|
m.HandleFunc("PATCH "+options.BaseURL+"/clusters/{clusterID}", wrapper.UpdateCluster)
|
|
m.HandleFunc("GET "+options.BaseURL+"/clusters/{clusterID}/control-plane", wrapper.GetClusterControlPlane)
|
|
m.HandleFunc("GET "+options.BaseURL+"/clusters/{clusterID}/control-plane/configHistory", wrapper.GetClusterControlPlaneConfigHistory)
|
|
m.HandleFunc("GET "+options.BaseURL+"/clusters/{clusterID}/spire-server", wrapper.GetClusterSpireServer)
|
|
m.HandleFunc("PATCH "+options.BaseURL+"/clusters/{clusterID}/spire-server", wrapper.UpdateClusterSpireServer)
|
|
m.HandleFunc("GET "+options.BaseURL+"/configProfiles", wrapper.ListConfigProfiles)
|
|
m.HandleFunc("GET "+options.BaseURL+"/nodePools", wrapper.ListNodePools)
|
|
m.HandleFunc("POST "+options.BaseURL+"/nodePools", wrapper.CreateNodePool)
|
|
m.HandleFunc("DELETE "+options.BaseURL+"/nodePools/{nodePoolID}", wrapper.DeleteNodePool)
|
|
m.HandleFunc("GET "+options.BaseURL+"/nodePools/{nodePoolID}", wrapper.GetNodePool)
|
|
m.HandleFunc("PATCH "+options.BaseURL+"/nodePools/{nodePoolID}", wrapper.UpdateNodePool)
|
|
m.HandleFunc("GET "+options.BaseURL+"/nodeSets", wrapper.ListNodeSets)
|
|
m.HandleFunc("GET "+options.BaseURL+"/nodeSets/{nodeSetID}", wrapper.GetNodeSet)
|
|
m.HandleFunc("GET "+options.BaseURL+"/nodes", wrapper.ListNodes)
|
|
m.HandleFunc("DELETE "+options.BaseURL+"/nodes/{nodeID}", wrapper.DeleteNode)
|
|
m.HandleFunc("GET "+options.BaseURL+"/nodes/{nodeID}", wrapper.GetNode)
|
|
m.HandleFunc("GET "+options.BaseURL+"/releases", wrapper.ListReleases)
|
|
|
|
return m
|
|
}
|
|
|
|
type ForbiddenJSONResponse GenericError
|
|
|
|
type UnauthorizedJSONResponse GenericError
|
|
|
|
type ListClustersRequestObject struct {
|
|
Params ListClustersParams
|
|
}
|
|
|
|
type ListClustersResponseObject interface {
|
|
VisitListClustersResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type ListClusters200JSONResponse ListClustersResponse
|
|
|
|
func (response ListClusters200JSONResponse) VisitListClustersResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListClusters401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response ListClusters401JSONResponse) VisitListClustersResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListClusters403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response ListClusters403JSONResponse) VisitListClustersResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateClusterRequestObject struct {
|
|
Body *CreateClusterJSONRequestBody
|
|
}
|
|
|
|
type CreateClusterResponseObject interface {
|
|
VisitCreateClusterResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type CreateCluster201JSONResponse Cluster
|
|
|
|
func (response CreateCluster201JSONResponse) VisitCreateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(201)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateCluster400JSONResponse GenericError
|
|
|
|
func (response CreateCluster400JSONResponse) VisitCreateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateCluster401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response CreateCluster401JSONResponse) VisitCreateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateCluster403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response CreateCluster403JSONResponse) VisitCreateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type SelfAdoptClusterRequestObject struct {
|
|
Body *SelfAdoptClusterJSONRequestBody
|
|
}
|
|
|
|
type SelfAdoptClusterResponseObject interface {
|
|
VisitSelfAdoptClusterResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type SelfAdoptCluster201JSONResponse Cluster
|
|
|
|
func (response SelfAdoptCluster201JSONResponse) VisitSelfAdoptClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(201)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type SelfAdoptCluster400JSONResponse GenericError
|
|
|
|
func (response SelfAdoptCluster400JSONResponse) VisitSelfAdoptClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type SelfAdoptCluster401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response SelfAdoptCluster401JSONResponse) VisitSelfAdoptClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type SelfAdoptCluster403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response SelfAdoptCluster403JSONResponse) VisitSelfAdoptClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteClusterRequestObject struct {
|
|
ClusterID openapi_types.UUID `json:"clusterID"`
|
|
}
|
|
|
|
type DeleteClusterResponseObject interface {
|
|
VisitDeleteClusterResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type DeleteCluster202Response struct{}
|
|
|
|
func (response DeleteCluster202Response) VisitDeleteClusterResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(202)
|
|
return nil
|
|
}
|
|
|
|
type DeleteCluster401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response DeleteCluster401JSONResponse) VisitDeleteClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteCluster403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response DeleteCluster403JSONResponse) VisitDeleteClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteCluster404Response struct{}
|
|
|
|
func (response DeleteCluster404Response) VisitDeleteClusterResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type DeleteCluster409JSONResponse GenericError
|
|
|
|
func (response DeleteCluster409JSONResponse) VisitDeleteClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(409)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterRequestObject struct {
|
|
ClusterID openapi_types.UUID `json:"clusterID"`
|
|
}
|
|
|
|
type GetClusterResponseObject interface {
|
|
VisitGetClusterResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type GetCluster200JSONResponse Cluster
|
|
|
|
func (response GetCluster200JSONResponse) VisitGetClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetCluster401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response GetCluster401JSONResponse) VisitGetClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetCluster403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response GetCluster403JSONResponse) VisitGetClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetCluster404Response struct{}
|
|
|
|
func (response GetCluster404Response) VisitGetClusterResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type UpdateClusterRequestObject struct {
|
|
ClusterID openapi_types.UUID `json:"clusterID"`
|
|
Body *UpdateClusterJSONRequestBody
|
|
}
|
|
|
|
type UpdateClusterResponseObject interface {
|
|
VisitUpdateClusterResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type UpdateCluster200JSONResponse Cluster
|
|
|
|
func (response UpdateCluster200JSONResponse) VisitUpdateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateCluster400JSONResponse GenericError
|
|
|
|
func (response UpdateCluster400JSONResponse) VisitUpdateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateCluster401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response UpdateCluster401JSONResponse) VisitUpdateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateCluster403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response UpdateCluster403JSONResponse) VisitUpdateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateCluster404Response struct{}
|
|
|
|
func (response UpdateCluster404Response) VisitUpdateClusterResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type UpdateCluster409JSONResponse GenericError
|
|
|
|
func (response UpdateCluster409JSONResponse) VisitUpdateClusterResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(409)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterControlPlaneRequestObject struct {
|
|
ClusterID openapi_types.UUID `json:"clusterID"`
|
|
}
|
|
|
|
type GetClusterControlPlaneResponseObject interface {
|
|
VisitGetClusterControlPlaneResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type GetClusterControlPlane200JSONResponse ClusterControlPlane
|
|
|
|
func (response GetClusterControlPlane200JSONResponse) VisitGetClusterControlPlaneResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterControlPlane404Response struct{}
|
|
|
|
func (response GetClusterControlPlane404Response) VisitGetClusterControlPlaneResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type GetClusterControlPlaneConfigHistoryRequestObject struct {
|
|
ClusterID openapi_types.UUID `json:"clusterID"`
|
|
}
|
|
|
|
type GetClusterControlPlaneConfigHistoryResponseObject interface {
|
|
VisitGetClusterControlPlaneConfigHistoryResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type GetClusterControlPlaneConfigHistory200JSONResponse ControlPlaneConfigHistory
|
|
|
|
func (response GetClusterControlPlaneConfigHistory200JSONResponse) VisitGetClusterControlPlaneConfigHistoryResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterControlPlaneConfigHistory401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response GetClusterControlPlaneConfigHistory401JSONResponse) VisitGetClusterControlPlaneConfigHistoryResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterControlPlaneConfigHistory403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response GetClusterControlPlaneConfigHistory403JSONResponse) VisitGetClusterControlPlaneConfigHistoryResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterControlPlaneConfigHistory404Response struct{}
|
|
|
|
func (response GetClusterControlPlaneConfigHistory404Response) VisitGetClusterControlPlaneConfigHistoryResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type GetClusterSpireServerRequestObject struct {
|
|
ClusterID openapi_types.UUID `json:"clusterID"`
|
|
}
|
|
|
|
type GetClusterSpireServerResponseObject interface {
|
|
VisitGetClusterSpireServerResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type GetClusterSpireServer200JSONResponse ClusterSpireServerStatus
|
|
|
|
func (response GetClusterSpireServer200JSONResponse) VisitGetClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterSpireServer401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response GetClusterSpireServer401JSONResponse) VisitGetClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterSpireServer403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response GetClusterSpireServer403JSONResponse) VisitGetClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetClusterSpireServer404Response struct{}
|
|
|
|
func (response GetClusterSpireServer404Response) VisitGetClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type UpdateClusterSpireServerRequestObject struct {
|
|
ClusterID openapi_types.UUID `json:"clusterID"`
|
|
Body *UpdateClusterSpireServerJSONRequestBody
|
|
}
|
|
|
|
type UpdateClusterSpireServerResponseObject interface {
|
|
VisitUpdateClusterSpireServerResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type UpdateClusterSpireServer202Response struct{}
|
|
|
|
func (response UpdateClusterSpireServer202Response) VisitUpdateClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(202)
|
|
return nil
|
|
}
|
|
|
|
type UpdateClusterSpireServer400JSONResponse GenericError
|
|
|
|
func (response UpdateClusterSpireServer400JSONResponse) VisitUpdateClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateClusterSpireServer401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response UpdateClusterSpireServer401JSONResponse) VisitUpdateClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateClusterSpireServer403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response UpdateClusterSpireServer403JSONResponse) VisitUpdateClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateClusterSpireServer404Response struct{}
|
|
|
|
func (response UpdateClusterSpireServer404Response) VisitUpdateClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type UpdateClusterSpireServer409JSONResponse GenericError
|
|
|
|
func (response UpdateClusterSpireServer409JSONResponse) VisitUpdateClusterSpireServerResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(409)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListConfigProfilesRequestObject struct{}
|
|
|
|
type ListConfigProfilesResponseObject interface {
|
|
VisitListConfigProfilesResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type ListConfigProfiles200JSONResponse ListConfigProfilesResponse
|
|
|
|
func (response ListConfigProfiles200JSONResponse) VisitListConfigProfilesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListConfigProfiles401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response ListConfigProfiles401JSONResponse) VisitListConfigProfilesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListConfigProfiles403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response ListConfigProfiles403JSONResponse) VisitListConfigProfilesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListNodePoolsRequestObject struct {
|
|
Params ListNodePoolsParams
|
|
}
|
|
|
|
type ListNodePoolsResponseObject interface {
|
|
VisitListNodePoolsResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type ListNodePools200JSONResponse ListNodePoolsResponse
|
|
|
|
func (response ListNodePools200JSONResponse) VisitListNodePoolsResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListNodePools401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response ListNodePools401JSONResponse) VisitListNodePoolsResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListNodePools403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response ListNodePools403JSONResponse) VisitListNodePoolsResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateNodePoolRequestObject struct {
|
|
Body *CreateNodePoolJSONRequestBody
|
|
}
|
|
|
|
type CreateNodePoolResponseObject interface {
|
|
VisitCreateNodePoolResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type CreateNodePool201JSONResponse NodePool
|
|
|
|
func (response CreateNodePool201JSONResponse) VisitCreateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(201)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateNodePool400JSONResponse GenericError
|
|
|
|
func (response CreateNodePool400JSONResponse) VisitCreateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateNodePool401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response CreateNodePool401JSONResponse) VisitCreateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateNodePool403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response CreateNodePool403JSONResponse) VisitCreateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type CreateNodePool409JSONResponse GenericError
|
|
|
|
func (response CreateNodePool409JSONResponse) VisitCreateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(409)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNodePoolRequestObject struct {
|
|
NodePoolID openapi_types.UUID `json:"nodePoolID"`
|
|
}
|
|
|
|
type DeleteNodePoolResponseObject interface {
|
|
VisitDeleteNodePoolResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type DeleteNodePool202Response struct{}
|
|
|
|
func (response DeleteNodePool202Response) VisitDeleteNodePoolResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(202)
|
|
return nil
|
|
}
|
|
|
|
type DeleteNodePool400JSONResponse GenericError
|
|
|
|
func (response DeleteNodePool400JSONResponse) VisitDeleteNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNodePool401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response DeleteNodePool401JSONResponse) VisitDeleteNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNodePool403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response DeleteNodePool403JSONResponse) VisitDeleteNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNodePool404Response struct{}
|
|
|
|
func (response DeleteNodePool404Response) VisitDeleteNodePoolResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type DeleteNodePool409JSONResponse GenericError
|
|
|
|
func (response DeleteNodePool409JSONResponse) VisitDeleteNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(409)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodePoolRequestObject struct {
|
|
NodePoolID openapi_types.UUID `json:"nodePoolID"`
|
|
}
|
|
|
|
type GetNodePoolResponseObject interface {
|
|
VisitGetNodePoolResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type GetNodePool200JSONResponse NodePool
|
|
|
|
func (response GetNodePool200JSONResponse) VisitGetNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodePool401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response GetNodePool401JSONResponse) VisitGetNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodePool403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response GetNodePool403JSONResponse) VisitGetNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodePool404Response struct{}
|
|
|
|
func (response GetNodePool404Response) VisitGetNodePoolResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type UpdateNodePoolRequestObject struct {
|
|
NodePoolID openapi_types.UUID `json:"nodePoolID"`
|
|
Body *UpdateNodePoolJSONRequestBody
|
|
}
|
|
|
|
type UpdateNodePoolResponseObject interface {
|
|
VisitUpdateNodePoolResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type UpdateNodePool200JSONResponse NodePool
|
|
|
|
func (response UpdateNodePool200JSONResponse) VisitUpdateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateNodePool400JSONResponse GenericError
|
|
|
|
func (response UpdateNodePool400JSONResponse) VisitUpdateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateNodePool401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response UpdateNodePool401JSONResponse) VisitUpdateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateNodePool403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response UpdateNodePool403JSONResponse) VisitUpdateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type UpdateNodePool404Response struct{}
|
|
|
|
func (response UpdateNodePool404Response) VisitUpdateNodePoolResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type ListNodeSetsRequestObject struct {
|
|
Params ListNodeSetsParams
|
|
}
|
|
|
|
type ListNodeSetsResponseObject interface {
|
|
VisitListNodeSetsResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type ListNodeSets200JSONResponse ListNodeSetsResponse
|
|
|
|
func (response ListNodeSets200JSONResponse) VisitListNodeSetsResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListNodeSets401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response ListNodeSets401JSONResponse) VisitListNodeSetsResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListNodeSets403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response ListNodeSets403JSONResponse) VisitListNodeSetsResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodeSetRequestObject struct {
|
|
NodeSetID openapi_types.UUID `json:"nodeSetID"`
|
|
}
|
|
|
|
type GetNodeSetResponseObject interface {
|
|
VisitGetNodeSetResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type GetNodeSet200JSONResponse NodeSet
|
|
|
|
func (response GetNodeSet200JSONResponse) VisitGetNodeSetResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodeSet401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response GetNodeSet401JSONResponse) VisitGetNodeSetResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodeSet403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response GetNodeSet403JSONResponse) VisitGetNodeSetResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodeSet404Response struct{}
|
|
|
|
func (response GetNodeSet404Response) VisitGetNodeSetResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type ListNodesRequestObject struct {
|
|
Params ListNodesParams
|
|
}
|
|
|
|
type ListNodesResponseObject interface {
|
|
VisitListNodesResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type ListNodes200JSONResponse ListNodesResponse
|
|
|
|
func (response ListNodes200JSONResponse) VisitListNodesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListNodes401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response ListNodes401JSONResponse) VisitListNodesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListNodes403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response ListNodes403JSONResponse) VisitListNodesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNodeRequestObject struct {
|
|
NodeID openapi_types.UUID `json:"nodeID"`
|
|
Body *DeleteNodeJSONRequestBody
|
|
}
|
|
|
|
type DeleteNodeResponseObject interface {
|
|
VisitDeleteNodeResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type DeleteNode202Response struct{}
|
|
|
|
func (response DeleteNode202Response) VisitDeleteNodeResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(202)
|
|
return nil
|
|
}
|
|
|
|
type DeleteNode400JSONResponse GenericError
|
|
|
|
func (response DeleteNode400JSONResponse) VisitDeleteNodeResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(400)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNode401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response DeleteNode401JSONResponse) VisitDeleteNodeResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNode403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response DeleteNode403JSONResponse) VisitDeleteNodeResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type DeleteNode404Response struct{}
|
|
|
|
func (response DeleteNode404Response) VisitDeleteNodeResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type DeleteNode409JSONResponse GenericError
|
|
|
|
func (response DeleteNode409JSONResponse) VisitDeleteNodeResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(409)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNodeRequestObject struct {
|
|
NodeID openapi_types.UUID `json:"nodeID"`
|
|
}
|
|
|
|
type GetNodeResponseObject interface {
|
|
VisitGetNodeResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type GetNode200JSONResponse Node
|
|
|
|
func (response GetNode200JSONResponse) VisitGetNodeResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNode401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response GetNode401JSONResponse) VisitGetNodeResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNode403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response GetNode403JSONResponse) VisitGetNodeResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type GetNode404Response struct{}
|
|
|
|
func (response GetNode404Response) VisitGetNodeResponse(w http.ResponseWriter) error {
|
|
w.WriteHeader(404)
|
|
return nil
|
|
}
|
|
|
|
type ListReleasesRequestObject struct{}
|
|
|
|
type ListReleasesResponseObject interface {
|
|
VisitListReleasesResponse(w http.ResponseWriter) error
|
|
}
|
|
|
|
type ListReleases200JSONResponse ListReleasesResponse
|
|
|
|
func (response ListReleases200JSONResponse) VisitListReleasesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(200)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListReleases401JSONResponse struct{ UnauthorizedJSONResponse }
|
|
|
|
func (response ListReleases401JSONResponse) VisitListReleasesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(401)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
type ListReleases403JSONResponse struct{ ForbiddenJSONResponse }
|
|
|
|
func (response ListReleases403JSONResponse) VisitListReleasesResponse(w http.ResponseWriter) error {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(403)
|
|
|
|
return json.NewEncoder(w).Encode(response)
|
|
}
|
|
|
|
// StrictServerInterface represents all server handlers.
|
|
type StrictServerInterface interface {
|
|
// List clusters
|
|
// (GET /clusters)
|
|
ListClusters(ctx context.Context, request ListClustersRequestObject) (ListClustersResponseObject, error)
|
|
// Create a cluster
|
|
// (POST /clusters)
|
|
CreateCluster(ctx context.Context, request CreateClusterRequestObject) (CreateClusterResponseObject, error)
|
|
// Adopt a cluster that already runs
|
|
// (POST /clusters/self-adopt)
|
|
SelfAdoptCluster(ctx context.Context, request SelfAdoptClusterRequestObject) (SelfAdoptClusterResponseObject, error)
|
|
// Delete a cluster
|
|
// (DELETE /clusters/{clusterID})
|
|
DeleteCluster(ctx context.Context, request DeleteClusterRequestObject) (DeleteClusterResponseObject, error)
|
|
// Get a cluster
|
|
// (GET /clusters/{clusterID})
|
|
GetCluster(ctx context.Context, request GetClusterRequestObject) (GetClusterResponseObject, error)
|
|
// Update a cluster
|
|
// (PATCH /clusters/{clusterID})
|
|
UpdateCluster(ctx context.Context, request UpdateClusterRequestObject) (UpdateClusterResponseObject, error)
|
|
// Get a cluster's control plane
|
|
// (GET /clusters/{clusterID}/control-plane)
|
|
GetClusterControlPlane(ctx context.Context, request GetClusterControlPlaneRequestObject) (GetClusterControlPlaneResponseObject, error)
|
|
// Get control-plane config history
|
|
// (GET /clusters/{clusterID}/control-plane/configHistory)
|
|
GetClusterControlPlaneConfigHistory(ctx context.Context, request GetClusterControlPlaneConfigHistoryRequestObject) (GetClusterControlPlaneConfigHistoryResponseObject, error)
|
|
// Get the SPIRE server the cluster's nodes point at
|
|
// (GET /clusters/{clusterID}/spire-server)
|
|
GetClusterSpireServer(ctx context.Context, request GetClusterSpireServerRequestObject) (GetClusterSpireServerResponseObject, error)
|
|
// Point the cluster's nodes at a SPIRE server
|
|
// (PATCH /clusters/{clusterID}/spire-server)
|
|
UpdateClusterSpireServer(ctx context.Context, request UpdateClusterSpireServerRequestObject) (UpdateClusterSpireServerResponseObject, error)
|
|
// List config profiles
|
|
// (GET /configProfiles)
|
|
ListConfigProfiles(ctx context.Context, request ListConfigProfilesRequestObject) (ListConfigProfilesResponseObject, error)
|
|
// List node pools
|
|
// (GET /nodePools)
|
|
ListNodePools(ctx context.Context, request ListNodePoolsRequestObject) (ListNodePoolsResponseObject, error)
|
|
// Create a node pool
|
|
// (POST /nodePools)
|
|
CreateNodePool(ctx context.Context, request CreateNodePoolRequestObject) (CreateNodePoolResponseObject, error)
|
|
// Delete a node pool
|
|
// (DELETE /nodePools/{nodePoolID})
|
|
DeleteNodePool(ctx context.Context, request DeleteNodePoolRequestObject) (DeleteNodePoolResponseObject, error)
|
|
// Get a node pool
|
|
// (GET /nodePools/{nodePoolID})
|
|
GetNodePool(ctx context.Context, request GetNodePoolRequestObject) (GetNodePoolResponseObject, error)
|
|
// Update a node pool
|
|
// (PATCH /nodePools/{nodePoolID})
|
|
UpdateNodePool(ctx context.Context, request UpdateNodePoolRequestObject) (UpdateNodePoolResponseObject, error)
|
|
// List node sets
|
|
// (GET /nodeSets)
|
|
ListNodeSets(ctx context.Context, request ListNodeSetsRequestObject) (ListNodeSetsResponseObject, error)
|
|
// Get a node set
|
|
// (GET /nodeSets/{nodeSetID})
|
|
GetNodeSet(ctx context.Context, request GetNodeSetRequestObject) (GetNodeSetResponseObject, error)
|
|
// List nodes
|
|
// (GET /nodes)
|
|
ListNodes(ctx context.Context, request ListNodesRequestObject) (ListNodesResponseObject, error)
|
|
// Delete a node
|
|
// (DELETE /nodes/{nodeID})
|
|
DeleteNode(ctx context.Context, request DeleteNodeRequestObject) (DeleteNodeResponseObject, error)
|
|
// Get a node
|
|
// (GET /nodes/{nodeID})
|
|
GetNode(ctx context.Context, request GetNodeRequestObject) (GetNodeResponseObject, error)
|
|
// List releases
|
|
// (GET /releases)
|
|
ListReleases(ctx context.Context, request ListReleasesRequestObject) (ListReleasesResponseObject, error)
|
|
}
|
|
|
|
type (
|
|
StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
|
|
StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
|
|
)
|
|
|
|
type StrictHTTPServerOptions struct {
|
|
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
|
|
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
|
|
}
|
|
|
|
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface {
|
|
return &strictHandler{ssi: ssi, middlewares: middlewares, options: StrictHTTPServerOptions{
|
|
RequestErrorHandlerFunc: func(w http.ResponseWriter, r *http.Request, err error) {
|
|
http.Error(w, err.Error(), http.StatusBadRequest)
|
|
},
|
|
ResponseErrorHandlerFunc: func(w http.ResponseWriter, r *http.Request, err error) {
|
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
|
},
|
|
}}
|
|
}
|
|
|
|
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface {
|
|
return &strictHandler{ssi: ssi, middlewares: middlewares, options: options}
|
|
}
|
|
|
|
type strictHandler struct {
|
|
ssi StrictServerInterface
|
|
middlewares []StrictMiddlewareFunc
|
|
options StrictHTTPServerOptions
|
|
}
|
|
|
|
// ListClusters operation middleware
|
|
func (sh *strictHandler) ListClusters(w http.ResponseWriter, r *http.Request, params ListClustersParams) {
|
|
var request ListClustersRequestObject
|
|
|
|
request.Params = params
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.ListClusters(ctx, request.(ListClustersRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "ListClusters")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(ListClustersResponseObject); ok {
|
|
if err := validResponse.VisitListClustersResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// CreateCluster operation middleware
|
|
func (sh *strictHandler) CreateCluster(w http.ResponseWriter, r *http.Request) {
|
|
var request CreateClusterRequestObject
|
|
|
|
var body CreateClusterJSONRequestBody
|
|
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
|
|
sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err))
|
|
return
|
|
}
|
|
request.Body = &body
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.CreateCluster(ctx, request.(CreateClusterRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "CreateCluster")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(CreateClusterResponseObject); ok {
|
|
if err := validResponse.VisitCreateClusterResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// SelfAdoptCluster operation middleware
|
|
func (sh *strictHandler) SelfAdoptCluster(w http.ResponseWriter, r *http.Request) {
|
|
var request SelfAdoptClusterRequestObject
|
|
|
|
var body SelfAdoptClusterJSONRequestBody
|
|
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
|
|
sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err))
|
|
return
|
|
}
|
|
request.Body = &body
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.SelfAdoptCluster(ctx, request.(SelfAdoptClusterRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "SelfAdoptCluster")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(SelfAdoptClusterResponseObject); ok {
|
|
if err := validResponse.VisitSelfAdoptClusterResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// DeleteCluster operation middleware
|
|
func (sh *strictHandler) DeleteCluster(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID) {
|
|
var request DeleteClusterRequestObject
|
|
|
|
request.ClusterID = clusterID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.DeleteCluster(ctx, request.(DeleteClusterRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "DeleteCluster")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(DeleteClusterResponseObject); ok {
|
|
if err := validResponse.VisitDeleteClusterResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// GetCluster operation middleware
|
|
func (sh *strictHandler) GetCluster(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID) {
|
|
var request GetClusterRequestObject
|
|
|
|
request.ClusterID = clusterID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.GetCluster(ctx, request.(GetClusterRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "GetCluster")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(GetClusterResponseObject); ok {
|
|
if err := validResponse.VisitGetClusterResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// UpdateCluster operation middleware
|
|
func (sh *strictHandler) UpdateCluster(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID) {
|
|
var request UpdateClusterRequestObject
|
|
|
|
request.ClusterID = clusterID
|
|
|
|
var body UpdateClusterJSONRequestBody
|
|
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
|
|
sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err))
|
|
return
|
|
}
|
|
request.Body = &body
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.UpdateCluster(ctx, request.(UpdateClusterRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "UpdateCluster")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(UpdateClusterResponseObject); ok {
|
|
if err := validResponse.VisitUpdateClusterResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// GetClusterControlPlane operation middleware
|
|
func (sh *strictHandler) GetClusterControlPlane(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID) {
|
|
var request GetClusterControlPlaneRequestObject
|
|
|
|
request.ClusterID = clusterID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.GetClusterControlPlane(ctx, request.(GetClusterControlPlaneRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "GetClusterControlPlane")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(GetClusterControlPlaneResponseObject); ok {
|
|
if err := validResponse.VisitGetClusterControlPlaneResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// GetClusterControlPlaneConfigHistory operation middleware
|
|
func (sh *strictHandler) GetClusterControlPlaneConfigHistory(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID) {
|
|
var request GetClusterControlPlaneConfigHistoryRequestObject
|
|
|
|
request.ClusterID = clusterID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.GetClusterControlPlaneConfigHistory(ctx, request.(GetClusterControlPlaneConfigHistoryRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "GetClusterControlPlaneConfigHistory")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(GetClusterControlPlaneConfigHistoryResponseObject); ok {
|
|
if err := validResponse.VisitGetClusterControlPlaneConfigHistoryResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// GetClusterSpireServer operation middleware
|
|
func (sh *strictHandler) GetClusterSpireServer(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID) {
|
|
var request GetClusterSpireServerRequestObject
|
|
|
|
request.ClusterID = clusterID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.GetClusterSpireServer(ctx, request.(GetClusterSpireServerRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "GetClusterSpireServer")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(GetClusterSpireServerResponseObject); ok {
|
|
if err := validResponse.VisitGetClusterSpireServerResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// UpdateClusterSpireServer operation middleware
|
|
func (sh *strictHandler) UpdateClusterSpireServer(w http.ResponseWriter, r *http.Request, clusterID openapi_types.UUID) {
|
|
var request UpdateClusterSpireServerRequestObject
|
|
|
|
request.ClusterID = clusterID
|
|
|
|
var body UpdateClusterSpireServerJSONRequestBody
|
|
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
|
|
sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err))
|
|
return
|
|
}
|
|
request.Body = &body
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.UpdateClusterSpireServer(ctx, request.(UpdateClusterSpireServerRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "UpdateClusterSpireServer")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(UpdateClusterSpireServerResponseObject); ok {
|
|
if err := validResponse.VisitUpdateClusterSpireServerResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// ListConfigProfiles operation middleware
|
|
func (sh *strictHandler) ListConfigProfiles(w http.ResponseWriter, r *http.Request) {
|
|
var request ListConfigProfilesRequestObject
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.ListConfigProfiles(ctx, request.(ListConfigProfilesRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "ListConfigProfiles")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(ListConfigProfilesResponseObject); ok {
|
|
if err := validResponse.VisitListConfigProfilesResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// ListNodePools operation middleware
|
|
func (sh *strictHandler) ListNodePools(w http.ResponseWriter, r *http.Request, params ListNodePoolsParams) {
|
|
var request ListNodePoolsRequestObject
|
|
|
|
request.Params = params
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.ListNodePools(ctx, request.(ListNodePoolsRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "ListNodePools")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(ListNodePoolsResponseObject); ok {
|
|
if err := validResponse.VisitListNodePoolsResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// CreateNodePool operation middleware
|
|
func (sh *strictHandler) CreateNodePool(w http.ResponseWriter, r *http.Request) {
|
|
var request CreateNodePoolRequestObject
|
|
|
|
var body CreateNodePoolJSONRequestBody
|
|
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
|
|
sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err))
|
|
return
|
|
}
|
|
request.Body = &body
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.CreateNodePool(ctx, request.(CreateNodePoolRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "CreateNodePool")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(CreateNodePoolResponseObject); ok {
|
|
if err := validResponse.VisitCreateNodePoolResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// DeleteNodePool operation middleware
|
|
func (sh *strictHandler) DeleteNodePool(w http.ResponseWriter, r *http.Request, nodePoolID openapi_types.UUID) {
|
|
var request DeleteNodePoolRequestObject
|
|
|
|
request.NodePoolID = nodePoolID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.DeleteNodePool(ctx, request.(DeleteNodePoolRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "DeleteNodePool")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(DeleteNodePoolResponseObject); ok {
|
|
if err := validResponse.VisitDeleteNodePoolResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// GetNodePool operation middleware
|
|
func (sh *strictHandler) GetNodePool(w http.ResponseWriter, r *http.Request, nodePoolID openapi_types.UUID) {
|
|
var request GetNodePoolRequestObject
|
|
|
|
request.NodePoolID = nodePoolID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.GetNodePool(ctx, request.(GetNodePoolRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "GetNodePool")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(GetNodePoolResponseObject); ok {
|
|
if err := validResponse.VisitGetNodePoolResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// UpdateNodePool operation middleware
|
|
func (sh *strictHandler) UpdateNodePool(w http.ResponseWriter, r *http.Request, nodePoolID openapi_types.UUID) {
|
|
var request UpdateNodePoolRequestObject
|
|
|
|
request.NodePoolID = nodePoolID
|
|
|
|
var body UpdateNodePoolJSONRequestBody
|
|
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
|
|
sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err))
|
|
return
|
|
}
|
|
request.Body = &body
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.UpdateNodePool(ctx, request.(UpdateNodePoolRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "UpdateNodePool")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(UpdateNodePoolResponseObject); ok {
|
|
if err := validResponse.VisitUpdateNodePoolResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// ListNodeSets operation middleware
|
|
func (sh *strictHandler) ListNodeSets(w http.ResponseWriter, r *http.Request, params ListNodeSetsParams) {
|
|
var request ListNodeSetsRequestObject
|
|
|
|
request.Params = params
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.ListNodeSets(ctx, request.(ListNodeSetsRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "ListNodeSets")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(ListNodeSetsResponseObject); ok {
|
|
if err := validResponse.VisitListNodeSetsResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// GetNodeSet operation middleware
|
|
func (sh *strictHandler) GetNodeSet(w http.ResponseWriter, r *http.Request, nodeSetID openapi_types.UUID) {
|
|
var request GetNodeSetRequestObject
|
|
|
|
request.NodeSetID = nodeSetID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.GetNodeSet(ctx, request.(GetNodeSetRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "GetNodeSet")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(GetNodeSetResponseObject); ok {
|
|
if err := validResponse.VisitGetNodeSetResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// ListNodes operation middleware
|
|
func (sh *strictHandler) ListNodes(w http.ResponseWriter, r *http.Request, params ListNodesParams) {
|
|
var request ListNodesRequestObject
|
|
|
|
request.Params = params
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.ListNodes(ctx, request.(ListNodesRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "ListNodes")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(ListNodesResponseObject); ok {
|
|
if err := validResponse.VisitListNodesResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// DeleteNode operation middleware
|
|
func (sh *strictHandler) DeleteNode(w http.ResponseWriter, r *http.Request, nodeID openapi_types.UUID) {
|
|
var request DeleteNodeRequestObject
|
|
|
|
request.NodeID = nodeID
|
|
|
|
if r.ContentLength > 0 {
|
|
var body DeleteNodeJSONRequestBody
|
|
if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
|
|
sh.options.RequestErrorHandlerFunc(w, r, fmt.Errorf("can't decode JSON body: %w", err))
|
|
return
|
|
}
|
|
request.Body = &body
|
|
}
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.DeleteNode(ctx, request.(DeleteNodeRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "DeleteNode")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(DeleteNodeResponseObject); ok {
|
|
if err := validResponse.VisitDeleteNodeResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// GetNode operation middleware
|
|
func (sh *strictHandler) GetNode(w http.ResponseWriter, r *http.Request, nodeID openapi_types.UUID) {
|
|
var request GetNodeRequestObject
|
|
|
|
request.NodeID = nodeID
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.GetNode(ctx, request.(GetNodeRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "GetNode")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(GetNodeResponseObject); ok {
|
|
if err := validResponse.VisitGetNodeResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// ListReleases operation middleware
|
|
func (sh *strictHandler) ListReleases(w http.ResponseWriter, r *http.Request) {
|
|
var request ListReleasesRequestObject
|
|
|
|
handler := func(ctx context.Context, w http.ResponseWriter, r *http.Request, request interface{}) (interface{}, error) {
|
|
return sh.ssi.ListReleases(ctx, request.(ListReleasesRequestObject))
|
|
}
|
|
for _, middleware := range sh.middlewares {
|
|
handler = middleware(handler, "ListReleases")
|
|
}
|
|
|
|
response, err := handler(r.Context(), w, r, request)
|
|
|
|
if err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
} else if validResponse, ok := response.(ListReleasesResponseObject); ok {
|
|
if err := validResponse.VisitListReleasesResponse(w); err != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, err)
|
|
}
|
|
} else if response != nil {
|
|
sh.options.ResponseErrorHandlerFunc(w, r, fmt.Errorf("unexpected response type: %T", response))
|
|
}
|
|
}
|
|
|
|
// Base64 encoded, gzipped, json marshaled Swagger object
|
|
var swaggerSpec = []string{
|
|
"H4sIAAAAAAAC/+z9+3IbN5YAjL8KirtVsadIWjc7sfzHrxTJTjRjy/pJTjI7Q38h2A2KGDcBDoCWzGRU",
|
|
"te/w7RPuk3x1zgG60TdeJNlJdvzHTCx2N67nfv21l+j5QiuhnO0d/tozwi60sgL/eKXNRKapUPBHopUT",
|
|
"ysE/+WKRyYQ7qdWTf1iNj20yE3MO//pPI6a9w95/PClHfkJP7ZPvhBJGJi+N0aZ3e3vb76XCJkYuYKze",
|
|
"Ye/dTDCnPwjFroWRUynSPpvkjklnmc0n/xCJY3PukpmwTGnG07m0VmrFTJ6JYe+23/tB8dzNtJG/iPSz",
|
|
"LftMs2ueyZRNBDfC+C3ccMsWRlihnEiHPfjMDwjzHQvj5BTWIy6EEjc8u3Tc5fiseShGJNqkImWZnIpk",
|
|
"mWSCWcedYFylTOcu0XPB9JRxlpTjDgwNzPCDYa/fWxi9gOd0v7DTTDiRHrnmrD/NhGJuJpifLU8SIWAF",
|
|
"2rAplxlsqd+bajPnrnfYS2E+J+ei1++55UL0DnvWGamuev3exwGs3fQOv77t93C405P2bb4T84U2PGM3",
|
|
"2nyYZvqGnZ4wN+OO6RtlmZtJu3qDnVPv3vZ7tOwznXbOD9BidDZYZFwJpnQq2ERIdcUWRifCWpGym+q5",
|
|
"0Jh9+tlD2CQTlbPJc5muWts3t/hyItLmqn6aCTcTBmcsDgUgS3yEuaTLloy+ZZMl44rBBXOnTXQaE60z",
|
|
"wV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SEysz9SMYO89RW9VV9",
|
|
"PnS2oXAzUlKFeJ4QDD/0ms1ZadymFqZT3/gVCB/4KbUSzSX7cOHmin0sVHAmxyfcp78qECdVU3jpjxTy",
|
|
"xkxOkd57UwLSqqrxqLqotgX50lAsITOfHZafBMvf7fvb/28A3hJuBlbzAQA=",
|
|
}
|
|
|
|
// GetSwagger returns the content of the embedded swagger specification file
|
|
// or error if failed to decode
|
|
func decodeSpec() ([]byte, error) {
|
|
zipped, err := base64.StdEncoding.DecodeString(strings.Join(swaggerSpec, ""))
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error base64 decoding spec: %w", err)
|
|
}
|
|
zr, err := gzip.NewReader(bytes.NewReader(zipped))
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error decompressing spec: %w", err)
|
|
}
|
|
var buf bytes.Buffer
|
|
_, err = buf.ReadFrom(zr)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error decompressing spec: %w", err)
|
|
}
|
|
|
|
return buf.Bytes(), nil
|
|
}
|
|
|
|
var rawSpec = decodeSpecCached()
|
|
|
|
// a naive cached of a decoded swagger spec
|
|
func decodeSpecCached() func() ([]byte, error) {
|
|
data, err := decodeSpec()
|
|
return func() ([]byte, error) {
|
|
return data, err
|
|
}
|
|
}
|
|
|
|
// Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
|
|
func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) {
|
|
res := make(map[string]func() ([]byte, error))
|
|
if len(pathToFile) > 0 {
|
|
res[pathToFile] = rawSpec
|
|
}
|
|
|
|
return res
|
|
}
|
|
|
|
// GetSwagger returns the Swagger specification corresponding to the generated code
|
|
// in this file. The external references of Swagger specification are resolved.
|
|
// The logic of resolving external references is tightly connected to "import-mapping" feature.
|
|
// Externally referenced files must be embedded in the corresponding golang packages.
|
|
// Urls can be supported but this task was out of the scope.
|
|
func GetSwagger() (swagger *openapi3.T, err error) {
|
|
resolvePath := PathToRawSpec("")
|
|
|
|
loader := openapi3.NewLoader()
|
|
loader.IsExternalRefsAllowed = true
|
|
loader.ReadFromURIFunc = func(loader *openapi3.Loader, url *url.URL) ([]byte, error) {
|
|
pathToFile := url.String()
|
|
pathToFile = path.Clean(pathToFile)
|
|
getSpec, ok := resolvePath[pathToFile]
|
|
if !ok {
|
|
err1 := fmt.Errorf("path not found: %s", pathToFile)
|
|
return nil, err1
|
|
}
|
|
return getSpec()
|
|
}
|
|
var specData []byte
|
|
specData, err = rawSpec()
|
|
if err != nil {
|
|
return swagger, err
|
|
}
|
|
swagger, err = loader.LoadFromData(specData)
|
|
if err != nil {
|
|
return swagger, err
|
|
}
|
|
return swagger, err
|
|
}
|