Documentation
¶
Overview ¶
Package api provides primitives to interact the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package api provides primitives to interact the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (*openapi3.Swagger, error)
- func NewCRDFromAPICluster(apiCluster Cluster) *synv1alpha1.Cluster
- func NewCRDFromAPITenant(apiTenant Tenant) *synv1alpha1.Tenant
- func NewCreateClusterRequest(server string, body CreateClusterJSONRequestBody) (*http.Request, error)
- func NewCreateClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTenantRequest(server string, body CreateTenantJSONRequestBody) (*http.Request, error)
- func NewCreateTenantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteClusterRequest(server string, clusterId ClusterIdParameter) (*http.Request, error)
- func NewDeleteTenantRequest(server string, tenantId TenantIdParameter) (*http.Request, error)
- func NewGetClusterRequest(server string, clusterId ClusterIdParameter) (*http.Request, error)
- func NewGetTenantRequest(server string, tenantId TenantIdParameter) (*http.Request, error)
- func NewHealthzRequest(server string) (*http.Request, error)
- func NewInstallStewardRequest(server string, params *InstallStewardParams) (*http.Request, error)
- func NewListClustersRequest(server string, params *ListClustersParams) (*http.Request, error)
- func NewListTenantsRequest(server string) (*http.Request, error)
- func NewQueryInventoryRequest(server string, params *QueryInventoryParams) (*http.Request, error)
- func NewUpdateClusterRequestWithBody(server string, clusterId ClusterIdParameter, contentType string, ...) (*http.Request, error)
- func NewUpdateInventoryRequest(server string, body UpdateInventoryJSONRequestBody) (*http.Request, error)
- func NewUpdateInventoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTenantRequestWithBody(server string, tenantId TenantIdParameter, contentType string, body io.Reader) (*http.Request, error)
- func ParseCreateClusterResponse(rsp *http.Response) (*createClusterResponse, error)
- func ParseCreateTenantResponse(rsp *http.Response) (*createTenantResponse, error)
- func ParseDeleteClusterResponse(rsp *http.Response) (*deleteClusterResponse, error)
- func ParseDeleteTenantResponse(rsp *http.Response) (*deleteTenantResponse, error)
- func ParseGetClusterResponse(rsp *http.Response) (*getClusterResponse, error)
- func ParseGetTenantResponse(rsp *http.Response) (*getTenantResponse, error)
- func ParseHealthzResponse(rsp *http.Response) (*healthzResponse, error)
- func ParseInstallStewardResponse(rsp *http.Response) (*installStewardResponse, error)
- func ParseListClustersResponse(rsp *http.Response) (*listClustersResponse, error)
- func ParseListTenantsResponse(rsp *http.Response) (*listTenantsResponse, error)
- func ParseQueryInventoryResponse(rsp *http.Response) (*queryInventoryResponse, error)
- func ParseUpdateClusterResponse(rsp *http.Response) (*updateClusterResponse, error)
- func ParseUpdateInventoryResponse(rsp *http.Response) (*updateInventoryResponse, error)
- func ParseUpdateTenantResponse(rsp *http.Response) (*updateTenantResponse, error)
- func RegisterHandlers(router interface{ ... }, si ServerInterface)
- type Client
- func (c *Client) CreateCluster(ctx context.Context, body CreateClusterJSONRequestBody) (*http.Response, error)
- func (c *Client) CreateClusterWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) CreateTenant(ctx context.Context, body CreateTenantJSONRequestBody) (*http.Response, error)
- func (c *Client) CreateTenantWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) DeleteCluster(ctx context.Context, clusterId ClusterIdParameter) (*http.Response, error)
- func (c *Client) DeleteTenant(ctx context.Context, tenantId TenantIdParameter) (*http.Response, error)
- func (c *Client) GetCluster(ctx context.Context, clusterId ClusterIdParameter) (*http.Response, error)
- func (c *Client) GetTenant(ctx context.Context, tenantId TenantIdParameter) (*http.Response, error)
- func (c *Client) Healthz(ctx context.Context) (*http.Response, error)
- func (c *Client) InstallSteward(ctx context.Context, params *InstallStewardParams) (*http.Response, error)
- func (c *Client) ListClusters(ctx context.Context, params *ListClustersParams) (*http.Response, error)
- func (c *Client) ListTenants(ctx context.Context) (*http.Response, error)
- func (c *Client) QueryInventory(ctx context.Context, params *QueryInventoryParams) (*http.Response, error)
- func (c *Client) UpdateClusterWithBody(ctx context.Context, clusterId ClusterIdParameter, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateInventory(ctx context.Context, body UpdateInventoryJSONRequestBody) (*http.Response, error)
- func (c *Client) UpdateInventoryWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) UpdateTenantWithBody(ctx context.Context, tenantId TenantIdParameter, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createClusterResponse, error)
- func (c *ClientWithResponses) CreateClusterWithResponse(ctx context.Context, body CreateClusterJSONRequestBody) (*createClusterResponse, error)
- func (c *ClientWithResponses) CreateTenantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createTenantResponse, error)
- func (c *ClientWithResponses) CreateTenantWithResponse(ctx context.Context, body CreateTenantJSONRequestBody) (*createTenantResponse, error)
- func (c *ClientWithResponses) DeleteClusterWithResponse(ctx context.Context, clusterId ClusterIdParameter) (*deleteClusterResponse, error)
- func (c *ClientWithResponses) DeleteTenantWithResponse(ctx context.Context, tenantId TenantIdParameter) (*deleteTenantResponse, error)
- func (c *ClientWithResponses) GetClusterWithResponse(ctx context.Context, clusterId ClusterIdParameter) (*getClusterResponse, error)
- func (c *ClientWithResponses) GetTenantWithResponse(ctx context.Context, tenantId TenantIdParameter) (*getTenantResponse, error)
- func (c *ClientWithResponses) HealthzWithResponse(ctx context.Context) (*healthzResponse, error)
- func (c *ClientWithResponses) InstallStewardWithResponse(ctx context.Context, params *InstallStewardParams) (*installStewardResponse, error)
- func (c *ClientWithResponses) ListClustersWithResponse(ctx context.Context, params *ListClustersParams) (*listClustersResponse, error)
- func (c *ClientWithResponses) ListTenantsWithResponse(ctx context.Context) (*listTenantsResponse, error)
- func (c *ClientWithResponses) QueryInventoryWithResponse(ctx context.Context, params *QueryInventoryParams) (*queryInventoryResponse, error)
- func (c *ClientWithResponses) UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId ClusterIdParameter, contentType string, ...) (*updateClusterResponse, error)
- func (c *ClientWithResponses) UpdateInventoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*updateInventoryResponse, error)
- func (c *ClientWithResponses) UpdateInventoryWithResponse(ctx context.Context, body UpdateInventoryJSONRequestBody) (*updateInventoryResponse, error)
- func (c *ClientWithResponses) UpdateTenantWithBodyWithResponse(ctx context.Context, tenantId TenantIdParameter, contentType string, ...) (*updateTenantResponse, error)
- type Cluster
- type ClusterFacts
- type ClusterId
- type ClusterIdParameter
- type ClusterProperties
- type CreateClusterJSONBody
- type CreateClusterJSONRequestBody
- type CreateTenantJSONBody
- type CreateTenantJSONRequestBody
- type Default
- type GitRepo
- type HttpRequestDoer
- type Id
- type InstallStewardParams
- type Inventory
- type ListClustersParams
- type QueryInventoryParams
- type Reason
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) CreateCluster(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateTenant(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteCluster(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteTenant(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCluster(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTenant(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Healthz(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) InstallSteward(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListClusters(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListTenants(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) QueryInventory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateCluster(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateInventory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateTenant(ctx echo.Context) error
- type Tenant
- type TenantId
- type TenantIdParameter
- type TenantProperties
- type UpdateInventoryJSONBody
- type UpdateInventoryJSONRequestBody
Constants ¶
const ( // ClusterIDPrefix is prefixed to all cluster IDs ClusterIDPrefix = "c-" // TenantIDPrefix is prefixed to all tenant IDs TenantIDPrefix = "t-" // ContentJSONPatch is the content type to do JSON updates ContentJSONPatch = "application/merge-patch+json" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file.
func NewCRDFromAPICluster ¶
func NewCRDFromAPICluster(apiCluster Cluster) *synv1alpha1.Cluster
NewCRDFromAPICluster transforms an API cluster into the CRD representation
func NewCRDFromAPITenant ¶
func NewCRDFromAPITenant(apiTenant Tenant) *synv1alpha1.Tenant
NewCRDFromAPITenant transforms an API tenant into the CRD representation
func NewCreateClusterRequest ¶
func NewCreateClusterRequest(server string, body CreateClusterJSONRequestBody) (*http.Request, error)
NewCreateClusterRequest calls the generic CreateCluster builder with application/json body
func NewCreateClusterRequestWithBody ¶
func NewCreateClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateClusterRequestWithBody generates requests for CreateCluster with any type of body
func NewCreateTenantRequest ¶
func NewCreateTenantRequest(server string, body CreateTenantJSONRequestBody) (*http.Request, error)
NewCreateTenantRequest calls the generic CreateTenant builder with application/json body
func NewCreateTenantRequestWithBody ¶
func NewCreateTenantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTenantRequestWithBody generates requests for CreateTenant with any type of body
func NewDeleteClusterRequest ¶
func NewDeleteClusterRequest(server string, clusterId ClusterIdParameter) (*http.Request, error)
NewDeleteClusterRequest generates requests for DeleteCluster
func NewDeleteTenantRequest ¶
func NewDeleteTenantRequest(server string, tenantId TenantIdParameter) (*http.Request, error)
NewDeleteTenantRequest generates requests for DeleteTenant
func NewGetClusterRequest ¶
func NewGetClusterRequest(server string, clusterId ClusterIdParameter) (*http.Request, error)
NewGetClusterRequest generates requests for GetCluster
func NewGetTenantRequest ¶
func NewGetTenantRequest(server string, tenantId TenantIdParameter) (*http.Request, error)
NewGetTenantRequest generates requests for GetTenant
func NewHealthzRequest ¶
NewHealthzRequest generates requests for Healthz
func NewInstallStewardRequest ¶
func NewInstallStewardRequest(server string, params *InstallStewardParams) (*http.Request, error)
NewInstallStewardRequest generates requests for InstallSteward
func NewListClustersRequest ¶
func NewListClustersRequest(server string, params *ListClustersParams) (*http.Request, error)
NewListClustersRequest generates requests for ListClusters
func NewListTenantsRequest ¶
NewListTenantsRequest generates requests for ListTenants
func NewQueryInventoryRequest ¶
func NewQueryInventoryRequest(server string, params *QueryInventoryParams) (*http.Request, error)
NewQueryInventoryRequest generates requests for QueryInventory
func NewUpdateClusterRequestWithBody ¶
func NewUpdateClusterRequestWithBody(server string, clusterId ClusterIdParameter, contentType string, body io.Reader) (*http.Request, error)
NewUpdateClusterRequestWithBody generates requests for UpdateCluster with any type of body
func NewUpdateInventoryRequest ¶
func NewUpdateInventoryRequest(server string, body UpdateInventoryJSONRequestBody) (*http.Request, error)
NewUpdateInventoryRequest calls the generic UpdateInventory builder with application/json body
func NewUpdateInventoryRequestWithBody ¶
func NewUpdateInventoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInventoryRequestWithBody generates requests for UpdateInventory with any type of body
func NewUpdateTenantRequestWithBody ¶
func NewUpdateTenantRequestWithBody(server string, tenantId TenantIdParameter, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTenantRequestWithBody generates requests for UpdateTenant with any type of body
func ParseCreateClusterResponse ¶
ParseCreateClusterResponse parses an HTTP response from a CreateClusterWithResponse call
func ParseCreateTenantResponse ¶
ParseCreateTenantResponse parses an HTTP response from a CreateTenantWithResponse call
func ParseDeleteClusterResponse ¶
ParseDeleteClusterResponse parses an HTTP response from a DeleteClusterWithResponse call
func ParseDeleteTenantResponse ¶
ParseDeleteTenantResponse parses an HTTP response from a DeleteTenantWithResponse call
func ParseGetClusterResponse ¶
ParseGetClusterResponse parses an HTTP response from a GetClusterWithResponse call
func ParseGetTenantResponse ¶
ParseGetTenantResponse parses an HTTP response from a GetTenantWithResponse call
func ParseHealthzResponse ¶
ParseHealthzResponse parses an HTTP response from a HealthzWithResponse call
func ParseInstallStewardResponse ¶
ParseInstallStewardResponse parses an HTTP response from a InstallStewardWithResponse call
func ParseListClustersResponse ¶
ParseListClustersResponse parses an HTTP response from a ListClustersWithResponse call
func ParseListTenantsResponse ¶
ParseListTenantsResponse parses an HTTP response from a ListTenantsWithResponse call
func ParseQueryInventoryResponse ¶
ParseQueryInventoryResponse parses an HTTP response from a QueryInventoryWithResponse call
func ParseUpdateClusterResponse ¶
ParseUpdateClusterResponse parses an HTTP response from a UpdateClusterWithResponse call
func ParseUpdateInventoryResponse ¶
ParseUpdateInventoryResponse parses an HTTP response from a UpdateInventoryWithResponse call
func ParseUpdateTenantResponse ¶
ParseUpdateTenantResponse parses an HTTP response from a UpdateTenantWithResponse call
func RegisterHandlers ¶
func RegisterHandlers(router interface {
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
Types ¶
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A callback for modifying requests which are generated before sending over
// the network.
RequestEditor RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateCluster ¶
func (*Client) CreateClusterWithBody ¶
func (*Client) CreateTenant ¶
func (*Client) CreateTenantWithBody ¶
func (*Client) DeleteCluster ¶
func (*Client) DeleteTenant ¶
func (*Client) GetCluster ¶
func (*Client) InstallSteward ¶
func (*Client) ListClusters ¶
func (*Client) ListTenants ¶
func (*Client) QueryInventory ¶
func (*Client) UpdateClusterWithBody ¶
func (*Client) UpdateInventory ¶
func (*Client) UpdateInventoryWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// ListClusters request
ListClusters(ctx context.Context, params *ListClustersParams) (*http.Response, error)
// CreateCluster request with any body
CreateClusterWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
CreateCluster(ctx context.Context, body CreateClusterJSONRequestBody) (*http.Response, error)
// DeleteCluster request
DeleteCluster(ctx context.Context, clusterId ClusterIdParameter) (*http.Response, error)
// GetCluster request
GetCluster(ctx context.Context, clusterId ClusterIdParameter) (*http.Response, error)
// UpdateCluster request with any body
UpdateClusterWithBody(ctx context.Context, clusterId ClusterIdParameter, contentType string, body io.Reader) (*http.Response, error)
// Healthz request
Healthz(ctx context.Context) (*http.Response, error)
// InstallSteward request
InstallSteward(ctx context.Context, params *InstallStewardParams) (*http.Response, error)
// QueryInventory request
QueryInventory(ctx context.Context, params *QueryInventoryParams) (*http.Response, error)
// UpdateInventory request with any body
UpdateInventoryWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
UpdateInventory(ctx context.Context, body UpdateInventoryJSONRequestBody) (*http.Response, error)
// ListTenants request
ListTenants(ctx context.Context) (*http.Response, error)
// CreateTenant request with any body
CreateTenantWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
CreateTenant(ctx context.Context, body CreateTenantJSONRequestBody) (*http.Response, error)
// DeleteTenant request
DeleteTenant(ctx context.Context, tenantId TenantIdParameter) (*http.Response, error)
// GetTenant request
GetTenant(ctx context.Context, tenantId TenantIdParameter) (*http.Response, error)
// UpdateTenant request with any body
UpdateTenantWithBody(ctx context.Context, tenantId TenantIdParameter, contentType string, body io.Reader) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateClusterWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createClusterResponse, error)
CreateClusterWithBodyWithResponse request with arbitrary body returning *CreateClusterResponse
func (*ClientWithResponses) CreateClusterWithResponse ¶
func (c *ClientWithResponses) CreateClusterWithResponse(ctx context.Context, body CreateClusterJSONRequestBody) (*createClusterResponse, error)
func (*ClientWithResponses) CreateTenantWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTenantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*createTenantResponse, error)
CreateTenantWithBodyWithResponse request with arbitrary body returning *CreateTenantResponse
func (*ClientWithResponses) CreateTenantWithResponse ¶
func (c *ClientWithResponses) CreateTenantWithResponse(ctx context.Context, body CreateTenantJSONRequestBody) (*createTenantResponse, error)
func (*ClientWithResponses) DeleteClusterWithResponse ¶
func (c *ClientWithResponses) DeleteClusterWithResponse(ctx context.Context, clusterId ClusterIdParameter) (*deleteClusterResponse, error)
DeleteClusterWithResponse request returning *DeleteClusterResponse
func (*ClientWithResponses) DeleteTenantWithResponse ¶
func (c *ClientWithResponses) DeleteTenantWithResponse(ctx context.Context, tenantId TenantIdParameter) (*deleteTenantResponse, error)
DeleteTenantWithResponse request returning *DeleteTenantResponse
func (*ClientWithResponses) GetClusterWithResponse ¶
func (c *ClientWithResponses) GetClusterWithResponse(ctx context.Context, clusterId ClusterIdParameter) (*getClusterResponse, error)
GetClusterWithResponse request returning *GetClusterResponse
func (*ClientWithResponses) GetTenantWithResponse ¶
func (c *ClientWithResponses) GetTenantWithResponse(ctx context.Context, tenantId TenantIdParameter) (*getTenantResponse, error)
GetTenantWithResponse request returning *GetTenantResponse
func (*ClientWithResponses) HealthzWithResponse ¶
func (c *ClientWithResponses) HealthzWithResponse(ctx context.Context) (*healthzResponse, error)
HealthzWithResponse request returning *HealthzResponse
func (*ClientWithResponses) InstallStewardWithResponse ¶
func (c *ClientWithResponses) InstallStewardWithResponse(ctx context.Context, params *InstallStewardParams) (*installStewardResponse, error)
InstallStewardWithResponse request returning *InstallStewardResponse
func (*ClientWithResponses) ListClustersWithResponse ¶
func (c *ClientWithResponses) ListClustersWithResponse(ctx context.Context, params *ListClustersParams) (*listClustersResponse, error)
ListClustersWithResponse request returning *ListClustersResponse
func (*ClientWithResponses) ListTenantsWithResponse ¶
func (c *ClientWithResponses) ListTenantsWithResponse(ctx context.Context) (*listTenantsResponse, error)
ListTenantsWithResponse request returning *ListTenantsResponse
func (*ClientWithResponses) QueryInventoryWithResponse ¶
func (c *ClientWithResponses) QueryInventoryWithResponse(ctx context.Context, params *QueryInventoryParams) (*queryInventoryResponse, error)
QueryInventoryWithResponse request returning *QueryInventoryResponse
func (*ClientWithResponses) UpdateClusterWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId ClusterIdParameter, contentType string, body io.Reader) (*updateClusterResponse, error)
UpdateClusterWithBodyWithResponse request with arbitrary body returning *UpdateClusterResponse
func (*ClientWithResponses) UpdateInventoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateInventoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*updateInventoryResponse, error)
UpdateInventoryWithBodyWithResponse request with arbitrary body returning *UpdateInventoryResponse
func (*ClientWithResponses) UpdateInventoryWithResponse ¶
func (c *ClientWithResponses) UpdateInventoryWithResponse(ctx context.Context, body UpdateInventoryJSONRequestBody) (*updateInventoryResponse, error)
func (*ClientWithResponses) UpdateTenantWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTenantWithBodyWithResponse(ctx context.Context, tenantId TenantIdParameter, contentType string, body io.Reader) (*updateTenantResponse, error)
UpdateTenantWithBodyWithResponse request with arbitrary body returning *UpdateTenantResponse
type Cluster ¶
type Cluster struct {
// Embedded struct due to allOf(#/components/schemas/ClusterId)
ClusterId
// Embedded struct due to allOf(#/components/schemas/ClusterProperties)
ClusterProperties
}
Cluster defines model for Cluster.
func NewAPIClusterFromCRD ¶
func NewAPIClusterFromCRD(cluster synv1alpha1.Cluster) *Cluster
NewAPIClusterFromCRD transforms a CRD cluster into the API representation
type ClusterFacts ¶
type ClusterFacts map[string]interface{}
ClusterFacts defines model for ClusterFacts.
type ClusterId ¶
type ClusterId struct {
// A unique object identifier string. Automatically generated by the API on creation.
Id Id `json:"id"`
}
ClusterId defines model for ClusterId.
func GenerateClusterID ¶
GenerateClusterID creates a new cluster id
type ClusterIdParameter ¶
type ClusterIdParameter Id
ClusterIdParameter defines model for ClusterIdParameter.
type ClusterProperties ¶
type ClusterProperties struct {
// Display Name of the cluster
DisplayName *string `json:"displayName,omitempty"`
// Facts about a cluster object. Statically configured key/value pairs.
Facts *ClusterFacts `json:"facts,omitempty"`
// Configuration Git repository, usually generated by the API
GitRepo *GitRepo `json:"gitRepo,omitempty"`
// URL to fetch install manifests for Steward cluster agent. This will only be set if the cluster's token is still valid.
InstallURL *string `json:"installURL,omitempty"`
// Id of the tenant this cluster belongs to
Tenant string `json:"tenant"`
}
ClusterProperties defines model for ClusterProperties.
type CreateClusterJSONBody ¶
type CreateClusterJSONBody ClusterProperties
CreateClusterJSONBody defines parameters for CreateCluster.
type CreateClusterJSONRequestBody ¶
type CreateClusterJSONRequestBody CreateClusterJSONBody
CreateClusterRequestBody defines body for CreateCluster for application/json ContentType.
type CreateTenantJSONBody ¶
type CreateTenantJSONBody TenantProperties
CreateTenantJSONBody defines parameters for CreateTenant.
type CreateTenantJSONRequestBody ¶
type CreateTenantJSONRequestBody CreateTenantJSONBody
CreateTenantRequestBody defines body for CreateTenant for application/json ContentType.
type GitRepo ¶
type GitRepo struct {
// SSH public key / deploy key for clusterconfiguration catalog Git repository. This property is managed by Steward.
DeployKey *string `json:"deployKey,omitempty"`
// SSH known hosts of the git server (multiline possible for multiple keys)
HostKeys *string `json:"hostKeys,omitempty"`
// Specifies if a repo should be managed by the git controller. A value of 'unmanaged' means it's not manged by the controller
Type *string `json:"type,omitempty"`
// Full URL of the git repo
Url *string `json:"url,omitempty"`
}
GitRepo defines model for GitRepo.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InstallStewardParams ¶
type InstallStewardParams struct {
// Initial bootstrap token
Token *string `json:"token,omitempty"`
}
InstallStewardParams defines parameters for InstallSteward.
type Inventory ¶
type Inventory struct {
Cluster string `json:"cluster"`
Inventory *map[string]interface{} `json:"inventory,omitempty"`
}
Inventory defines model for Inventory.
type ListClustersParams ¶
type ListClustersParams struct {
// Filter clusters by tenant id
Tenant *string `json:"tenant,omitempty"`
}
ListClustersParams defines parameters for ListClusters.
type QueryInventoryParams ¶
type QueryInventoryParams struct {
// InfluxQL query string
Q *string `json:"q,omitempty"`
}
QueryInventoryParams defines parameters for QueryInventory.
type Reason ¶
type Reason struct {
// The reason message
Reason string `json:"reason"`
}
Reason defines model for Reason.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface {
// Returns a list of clusters.
// (GET /clusters)
ListClusters(ctx echo.Context, params ListClustersParams) error
// Creates a new cluster
// (POST /clusters)
CreateCluster(ctx echo.Context) error
// Deletes a cluster
// (DELETE /clusters/{clusterId})
DeleteCluster(ctx echo.Context, clusterId ClusterIdParameter) error
// Returns all values of a cluster
// (GET /clusters/{clusterId})
GetCluster(ctx echo.Context, clusterId ClusterIdParameter) error
// Updates a cluster
// (PATCH /clusters/{clusterId})
UpdateCluster(ctx echo.Context, clusterId ClusterIdParameter) error
// API health check
// (GET /healthz)
Healthz(ctx echo.Context) error
// Returns the Steward JSON installation manifest
// (GET /install/steward.json)
InstallSteward(ctx echo.Context, params InstallStewardParams) error
// Returns inventory data according to query
// (GET /inventory)
QueryInventory(ctx echo.Context, params QueryInventoryParams) error
// Write inventory data
// (POST /inventory)
UpdateInventory(ctx echo.Context) error
// Returns a list of tenants.
// (GET /tenants)
ListTenants(ctx echo.Context) error
// Creates a new tenant
// (POST /tenants)
CreateTenant(ctx echo.Context) error
// Deletes a tenant
// (DELETE /tenants/{tenantId})
DeleteTenant(ctx echo.Context, tenantId TenantIdParameter) error
// Returns all values of a tenant
// (GET /tenants/{tenantId})
GetTenant(ctx echo.Context, tenantId TenantIdParameter) error
// Updates a tenant
// (PATCH /tenants/{tenantId})
UpdateTenant(ctx echo.Context, tenantId TenantIdParameter) error
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) CreateCluster ¶
func (w *ServerInterfaceWrapper) CreateCluster(ctx echo.Context) error
CreateCluster converts echo context to params.
func (*ServerInterfaceWrapper) CreateTenant ¶
func (w *ServerInterfaceWrapper) CreateTenant(ctx echo.Context) error
CreateTenant converts echo context to params.
func (*ServerInterfaceWrapper) DeleteCluster ¶
func (w *ServerInterfaceWrapper) DeleteCluster(ctx echo.Context) error
DeleteCluster converts echo context to params.
func (*ServerInterfaceWrapper) DeleteTenant ¶
func (w *ServerInterfaceWrapper) DeleteTenant(ctx echo.Context) error
DeleteTenant converts echo context to params.
func (*ServerInterfaceWrapper) GetCluster ¶
func (w *ServerInterfaceWrapper) GetCluster(ctx echo.Context) error
GetCluster converts echo context to params.
func (*ServerInterfaceWrapper) GetTenant ¶
func (w *ServerInterfaceWrapper) GetTenant(ctx echo.Context) error
GetTenant converts echo context to params.
func (*ServerInterfaceWrapper) Healthz ¶
func (w *ServerInterfaceWrapper) Healthz(ctx echo.Context) error
Healthz converts echo context to params.
func (*ServerInterfaceWrapper) InstallSteward ¶
func (w *ServerInterfaceWrapper) InstallSteward(ctx echo.Context) error
InstallSteward converts echo context to params.
func (*ServerInterfaceWrapper) ListClusters ¶
func (w *ServerInterfaceWrapper) ListClusters(ctx echo.Context) error
ListClusters converts echo context to params.
func (*ServerInterfaceWrapper) ListTenants ¶
func (w *ServerInterfaceWrapper) ListTenants(ctx echo.Context) error
ListTenants converts echo context to params.
func (*ServerInterfaceWrapper) QueryInventory ¶
func (w *ServerInterfaceWrapper) QueryInventory(ctx echo.Context) error
QueryInventory converts echo context to params.
func (*ServerInterfaceWrapper) UpdateCluster ¶
func (w *ServerInterfaceWrapper) UpdateCluster(ctx echo.Context) error
UpdateCluster converts echo context to params.
func (*ServerInterfaceWrapper) UpdateInventory ¶
func (w *ServerInterfaceWrapper) UpdateInventory(ctx echo.Context) error
UpdateInventory converts echo context to params.
func (*ServerInterfaceWrapper) UpdateTenant ¶
func (w *ServerInterfaceWrapper) UpdateTenant(ctx echo.Context) error
UpdateTenant converts echo context to params.
type Tenant ¶
type Tenant struct {
// Embedded struct due to allOf(#/components/schemas/TenantId)
TenantId
// Embedded struct due to allOf(#/components/schemas/TenantProperties)
TenantProperties
}
Tenant defines model for Tenant.
func NewAPITenantFromCRD ¶
func NewAPITenantFromCRD(tenant synv1alpha1.Tenant) *Tenant
NewAPITenantFromCRD transforms a CRD tenant into the API representation
type TenantId ¶
type TenantId struct {
// A unique object identifier string. Automatically generated by the API on creation.
Id Id `json:"id"`
}
TenantId defines model for TenantId.
func GenerateTenantID ¶
GenerateTenantID creates a new tenant id
type TenantIdParameter ¶
type TenantIdParameter Id
TenantIdParameter defines model for TenantIdParameter.
type TenantProperties ¶
type TenantProperties struct {
// Display name of the tenant
DisplayName *string `json:"displayName,omitempty"`
// Configuration Git repository, usually generated by the API
GitRepo *GitRepo `json:"gitRepo,omitempty"`
// The tenant this tenant belongs to
Tenant *string `json:"tenant,omitempty"`
}
TenantProperties defines model for TenantProperties.
type UpdateInventoryJSONBody ¶
type UpdateInventoryJSONBody Inventory
UpdateInventoryJSONBody defines parameters for UpdateInventory.
type UpdateInventoryJSONRequestBody ¶
type UpdateInventoryJSONRequestBody UpdateInventoryJSONBody
UpdateInventoryRequestBody defines body for UpdateInventory for application/json ContentType.