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 NewDocsRequest(server string) (*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 NewOpenapiRequest(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 RegisterHandlers(router EchoRouter, 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) Docs(ctx context.Context) (*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) Openapi(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) DocsWithResponse(ctx context.Context) (*DocsResponse, 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) OpenapiWithResponse(ctx context.Context) (*OpenapiResponse, 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 ClientWithResponsesInterface
- type Cluster
- type ClusterFacts
- type ClusterId
- type ClusterIdParameter
- type ClusterProperties
- type CreateClusterJSONBody
- type CreateClusterJSONRequestBody
- type CreateClusterResponse
- type CreateTenantJSONBody
- type CreateTenantJSONRequestBody
- type CreateTenantResponse
- type Default
- type DeleteClusterResponse
- type DeleteTenantResponse
- type DocsResponse
- type EchoRouter
- type GetClusterResponse
- type GetTenantResponse
- type GitRepo
- type HealthzResponse
- type HttpRequestDoer
- type Id
- type InstallStewardParams
- type InstallStewardResponse
- type Inventory
- type ListClustersParams
- type ListClustersResponse
- type ListTenantsResponse
- type OpenapiResponse
- type QueryInventoryParams
- type QueryInventoryResponse
- 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) Docs(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) Openapi(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 UpdateClusterResponse
- type UpdateInventoryJSONBody
- type UpdateInventoryJSONRequestBody
- type UpdateInventoryResponse
- type UpdateTenantResponse
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 NewDocsRequest ¶ added in v0.1.2
NewDocsRequest generates requests for Docs
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 NewOpenapiRequest ¶ added in v0.1.2
NewOpenapiRequest generates requests for Openapi
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 RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, 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)
// Docs request
Docs(ctx context.Context) (*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)
// Openapi request
Openapi(ctx context.Context) (*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) DocsWithResponse ¶ added in v0.1.2
func (c *ClientWithResponses) DocsWithResponse(ctx context.Context) (*DocsResponse, error)
DocsWithResponse request returning *DocsResponse
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) OpenapiWithResponse ¶ added in v0.1.2
func (c *ClientWithResponses) OpenapiWithResponse(ctx context.Context) (*OpenapiResponse, error)
OpenapiWithResponse request returning *OpenapiResponse
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 ClientWithResponsesInterface ¶ added in v0.1.2
type ClientWithResponsesInterface interface {
// ListClusters request
ListClustersWithResponse(ctx context.Context, params *ListClustersParams) (*ListClustersResponse, error)
// CreateCluster request with any body
CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateClusterResponse, error)
CreateClusterWithResponse(ctx context.Context, body CreateClusterJSONRequestBody) (*CreateClusterResponse, error)
// DeleteCluster request
DeleteClusterWithResponse(ctx context.Context, clusterId ClusterIdParameter) (*DeleteClusterResponse, error)
// GetCluster request
GetClusterWithResponse(ctx context.Context, clusterId ClusterIdParameter) (*GetClusterResponse, error)
// UpdateCluster request with any body
UpdateClusterWithBodyWithResponse(ctx context.Context, clusterId ClusterIdParameter, contentType string, body io.Reader) (*UpdateClusterResponse, error)
// Docs request
DocsWithResponse(ctx context.Context) (*DocsResponse, error)
// Healthz request
HealthzWithResponse(ctx context.Context) (*HealthzResponse, error)
// InstallSteward request
InstallStewardWithResponse(ctx context.Context, params *InstallStewardParams) (*InstallStewardResponse, error)
// QueryInventory request
QueryInventoryWithResponse(ctx context.Context, params *QueryInventoryParams) (*QueryInventoryResponse, error)
// UpdateInventory request with any body
UpdateInventoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateInventoryResponse, error)
UpdateInventoryWithResponse(ctx context.Context, body UpdateInventoryJSONRequestBody) (*UpdateInventoryResponse, error)
// Openapi request
OpenapiWithResponse(ctx context.Context) (*OpenapiResponse, error)
// ListTenants request
ListTenantsWithResponse(ctx context.Context) (*ListTenantsResponse, error)
// CreateTenant request with any body
CreateTenantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateTenantResponse, error)
CreateTenantWithResponse(ctx context.Context, body CreateTenantJSONRequestBody) (*CreateTenantResponse, error)
// DeleteTenant request
DeleteTenantWithResponse(ctx context.Context, tenantId TenantIdParameter) (*DeleteTenantResponse, error)
// GetTenant request
GetTenantWithResponse(ctx context.Context, tenantId TenantIdParameter) (*GetTenantResponse, error)
// UpdateTenant request with any body
UpdateTenantWithBodyWithResponse(ctx context.Context, tenantId TenantIdParameter, contentType string, body io.Reader) (*UpdateTenantResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
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 (in the form "<letter>-<adjective>-<noun>-<digits>" where all letters are lowercase, max 63 characters in total).
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 CreateClusterResponse ¶ added in v0.1.2
type CreateClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Cluster
JSON400 *Reason
JSONDefault *Reason
}
func ParseCreateClusterResponse ¶
func ParseCreateClusterResponse(rsp *http.Response) (*CreateClusterResponse, error)
ParseCreateClusterResponse parses an HTTP response from a CreateClusterWithResponse call
func (CreateClusterResponse) Status ¶ added in v0.1.2
func (r CreateClusterResponse) Status() string
Status returns HTTPResponse.Status
func (CreateClusterResponse) StatusCode ¶ added in v0.1.2
func (r CreateClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 CreateTenantResponse ¶ added in v0.1.2
type CreateTenantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Tenant
JSON400 *Reason
JSONDefault *Reason
}
func ParseCreateTenantResponse ¶
func ParseCreateTenantResponse(rsp *http.Response) (*CreateTenantResponse, error)
ParseCreateTenantResponse parses an HTTP response from a CreateTenantWithResponse call
func (CreateTenantResponse) Status ¶ added in v0.1.2
func (r CreateTenantResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTenantResponse) StatusCode ¶ added in v0.1.2
func (r CreateTenantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteClusterResponse ¶ added in v0.1.2
type DeleteClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON403 *Reason
JSONDefault *Reason
}
func ParseDeleteClusterResponse ¶
func ParseDeleteClusterResponse(rsp *http.Response) (*DeleteClusterResponse, error)
ParseDeleteClusterResponse parses an HTTP response from a DeleteClusterWithResponse call
func (DeleteClusterResponse) Status ¶ added in v0.1.2
func (r DeleteClusterResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteClusterResponse) StatusCode ¶ added in v0.1.2
func (r DeleteClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTenantResponse ¶ added in v0.1.2
type DeleteTenantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON403 *Reason
JSONDefault *Reason
}
func ParseDeleteTenantResponse ¶
func ParseDeleteTenantResponse(rsp *http.Response) (*DeleteTenantResponse, error)
ParseDeleteTenantResponse parses an HTTP response from a DeleteTenantWithResponse call
func (DeleteTenantResponse) Status ¶ added in v0.1.2
func (r DeleteTenantResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteTenantResponse) StatusCode ¶ added in v0.1.2
func (r DeleteTenantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DocsResponse ¶ added in v0.1.2
func ParseDocsResponse ¶ added in v0.1.2
func ParseDocsResponse(rsp *http.Response) (*DocsResponse, error)
ParseDocsResponse parses an HTTP response from a DocsWithResponse call
func (DocsResponse) Status ¶ added in v0.1.2
func (r DocsResponse) Status() string
Status returns HTTPResponse.Status
func (DocsResponse) StatusCode ¶ added in v0.1.2
func (r DocsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EchoRouter ¶ added in v0.1.1
type EchoRouter interface {
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GetClusterResponse ¶ added in v0.1.2
type GetClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Cluster
JSONDefault *Reason
}
func ParseGetClusterResponse ¶
func ParseGetClusterResponse(rsp *http.Response) (*GetClusterResponse, error)
ParseGetClusterResponse parses an HTTP response from a GetClusterWithResponse call
func (GetClusterResponse) Status ¶ added in v0.1.2
func (r GetClusterResponse) Status() string
Status returns HTTPResponse.Status
func (GetClusterResponse) StatusCode ¶ added in v0.1.2
func (r GetClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTenantResponse ¶ added in v0.1.2
type GetTenantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Tenant
JSONDefault *Reason
}
func ParseGetTenantResponse ¶
func ParseGetTenantResponse(rsp *http.Response) (*GetTenantResponse, error)
ParseGetTenantResponse parses an HTTP response from a GetTenantWithResponse call
func (GetTenantResponse) Status ¶ added in v0.1.2
func (r GetTenantResponse) Status() string
Status returns HTTPResponse.Status
func (GetTenantResponse) StatusCode ¶ added in v0.1.2
func (r GetTenantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 HealthzResponse ¶ added in v0.1.2
func ParseHealthzResponse ¶
func ParseHealthzResponse(rsp *http.Response) (*HealthzResponse, error)
ParseHealthzResponse parses an HTTP response from a HealthzWithResponse call
func (HealthzResponse) Status ¶ added in v0.1.2
func (r HealthzResponse) Status() string
Status returns HTTPResponse.Status
func (HealthzResponse) StatusCode ¶ added in v0.1.2
func (r HealthzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 InstallStewardResponse ¶ added in v0.1.2
type InstallStewardResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *map[string]interface{}
JSONDefault *Reason
}
func ParseInstallStewardResponse ¶
func ParseInstallStewardResponse(rsp *http.Response) (*InstallStewardResponse, error)
ParseInstallStewardResponse parses an HTTP response from a InstallStewardWithResponse call
func (InstallStewardResponse) Status ¶ added in v0.1.2
func (r InstallStewardResponse) Status() string
Status returns HTTPResponse.Status
func (InstallStewardResponse) StatusCode ¶ added in v0.1.2
func (r InstallStewardResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ListClustersResponse ¶ added in v0.1.2
type ListClustersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Cluster
JSONDefault *Reason
}
func ParseListClustersResponse ¶
func ParseListClustersResponse(rsp *http.Response) (*ListClustersResponse, error)
ParseListClustersResponse parses an HTTP response from a ListClustersWithResponse call
func (ListClustersResponse) Status ¶ added in v0.1.2
func (r ListClustersResponse) Status() string
Status returns HTTPResponse.Status
func (ListClustersResponse) StatusCode ¶ added in v0.1.2
func (r ListClustersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTenantsResponse ¶ added in v0.1.2
type ListTenantsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Tenant
JSONDefault *Reason
}
func ParseListTenantsResponse ¶
func ParseListTenantsResponse(rsp *http.Response) (*ListTenantsResponse, error)
ParseListTenantsResponse parses an HTTP response from a ListTenantsWithResponse call
func (ListTenantsResponse) Status ¶ added in v0.1.2
func (r ListTenantsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTenantsResponse) StatusCode ¶ added in v0.1.2
func (r ListTenantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OpenapiResponse ¶ added in v0.1.2
type OpenapiResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *map[string]interface{}
}
func ParseOpenapiResponse ¶ added in v0.1.2
func ParseOpenapiResponse(rsp *http.Response) (*OpenapiResponse, error)
ParseOpenapiResponse parses an HTTP response from a OpenapiWithResponse call
func (OpenapiResponse) Status ¶ added in v0.1.2
func (r OpenapiResponse) Status() string
Status returns HTTPResponse.Status
func (OpenapiResponse) StatusCode ¶ added in v0.1.2
func (r OpenapiResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryInventoryParams ¶
type QueryInventoryParams struct {
// InfluxQL query string
Q *string `json:"q,omitempty"`
}
QueryInventoryParams defines parameters for QueryInventory.
type QueryInventoryResponse ¶ added in v0.1.2
type QueryInventoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Inventory
JSONDefault *Reason
}
func ParseQueryInventoryResponse ¶
func ParseQueryInventoryResponse(rsp *http.Response) (*QueryInventoryResponse, error)
ParseQueryInventoryResponse parses an HTTP response from a QueryInventoryWithResponse call
func (QueryInventoryResponse) Status ¶ added in v0.1.2
func (r QueryInventoryResponse) Status() string
Status returns HTTPResponse.Status
func (QueryInventoryResponse) StatusCode ¶ added in v0.1.2
func (r QueryInventoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 documentation
// (GET /docs)
Docs(ctx echo.Context) 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
// OpenAPI JSON spec
// (GET /openapi.json)
Openapi(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) Docs ¶ added in v0.1.2
func (w *ServerInterfaceWrapper) Docs(ctx echo.Context) error
Docs 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) Openapi ¶ added in v0.1.2
func (w *ServerInterfaceWrapper) Openapi(ctx echo.Context) error
Openapi 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 (in the form "<letter>-<adjective>-<noun>-<digits>" where all letters are lowercase, max 63 characters in total).
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 UpdateClusterResponse ¶ added in v0.1.2
type UpdateClusterResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Cluster
JSON403 *Reason
JSONDefault *Reason
}
func ParseUpdateClusterResponse ¶
func ParseUpdateClusterResponse(rsp *http.Response) (*UpdateClusterResponse, error)
ParseUpdateClusterResponse parses an HTTP response from a UpdateClusterWithResponse call
func (UpdateClusterResponse) Status ¶ added in v0.1.2
func (r UpdateClusterResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateClusterResponse) StatusCode ¶ added in v0.1.2
func (r UpdateClusterResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInventoryJSONBody ¶
type UpdateInventoryJSONBody Inventory
UpdateInventoryJSONBody defines parameters for UpdateInventory.
type UpdateInventoryJSONRequestBody ¶
type UpdateInventoryJSONRequestBody UpdateInventoryJSONBody
UpdateInventoryRequestBody defines body for UpdateInventory for application/json ContentType.
type UpdateInventoryResponse ¶ added in v0.1.2
func ParseUpdateInventoryResponse ¶
func ParseUpdateInventoryResponse(rsp *http.Response) (*UpdateInventoryResponse, error)
ParseUpdateInventoryResponse parses an HTTP response from a UpdateInventoryWithResponse call
func (UpdateInventoryResponse) Status ¶ added in v0.1.2
func (r UpdateInventoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInventoryResponse) StatusCode ¶ added in v0.1.2
func (r UpdateInventoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTenantResponse ¶ added in v0.1.2
type UpdateTenantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Tenant
JSON403 *Reason
JSONDefault *Reason
}
func ParseUpdateTenantResponse ¶
func ParseUpdateTenantResponse(rsp *http.Response) (*UpdateTenantResponse, error)
ParseUpdateTenantResponse parses an HTTP response from a UpdateTenantWithResponse call
func (UpdateTenantResponse) Status ¶ added in v0.1.2
func (r UpdateTenantResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTenantResponse) StatusCode ¶ added in v0.1.2
func (r UpdateTenantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode