api

package
v0.0.0-...-c60e063 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BasicScopes      = "basic.Scopes"
	BasicAuthScopes  = "basicAuth.Scopes"
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

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 NewAddCatalogComponentRequest

func NewAddCatalogComponentRequest(server string, body AddCatalogComponentJSONRequestBody) (*http.Request, error)

NewAddCatalogComponentRequest calls the generic AddCatalogComponent builder with application/json body

func NewAddCatalogComponentRequestWithBody

func NewAddCatalogComponentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddCatalogComponentRequestWithBody generates requests for AddCatalogComponent with any type of body

func NewAddCatalogComponentVersionRequest

func NewAddCatalogComponentVersionRequest(server string, componentName string, body AddCatalogComponentVersionJSONRequestBody) (*http.Request, error)

NewAddCatalogComponentVersionRequest calls the generic AddCatalogComponentVersion builder with application/json body

func NewAddCatalogComponentVersionRequestWithBody

func NewAddCatalogComponentVersionRequestWithBody(server string, componentName string, contentType string, body io.Reader) (*http.Request, error)

NewAddCatalogComponentVersionRequestWithBody generates requests for AddCatalogComponentVersion with any type of body

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 NewCreateRegistrarClusterRequest

func NewCreateRegistrarClusterRequest(server string, body CreateRegistrarClusterJSONRequestBody) (*http.Request, error)

NewCreateRegistrarClusterRequest calls the generic CreateRegistrarCluster builder with application/json body

func NewCreateRegistrarClusterRequestWithBody

func NewCreateRegistrarClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRegistrarClusterRequestWithBody generates requests for CreateRegistrarCluster with any type of body

func NewDeleteCatalogComponentRequest

func NewDeleteCatalogComponentRequest(server string, componentName string) (*http.Request, error)

NewDeleteCatalogComponentRequest generates requests for DeleteCatalogComponent

func NewDeleteCatalogComponentVersionRequest

func NewDeleteCatalogComponentVersionRequest(server string, componentName string, componentVersion string) (*http.Request, error)

NewDeleteCatalogComponentVersionRequest generates requests for DeleteCatalogComponentVersion

func NewDeleteClusterRequest

func NewDeleteClusterRequest(server string, region string, clusterId string) (*http.Request, error)

NewDeleteClusterRequest generates requests for DeleteCluster

func NewDeleteRegistrarClusterRequest

func NewDeleteRegistrarClusterRequest(server string, clusterRegistrarId string) (*http.Request, error)

NewDeleteRegistrarClusterRequest generates requests for DeleteRegistrarCluster

func NewGetCatalogComponentRequest

func NewGetCatalogComponentRequest(server string, componentName string) (*http.Request, error)

NewGetCatalogComponentRequest generates requests for GetCatalogComponent

func NewGetCatalogComponentVersionRequest

func NewGetCatalogComponentVersionRequest(server string, componentName string, componentVersion string) (*http.Request, error)

NewGetCatalogComponentVersionRequest generates requests for GetCatalogComponentVersion

func NewGetClusterRequest

func NewGetClusterRequest(server string, region string, clusterId string) (*http.Request, error)

NewGetClusterRequest generates requests for GetCluster

func NewGetRegistrarClusterRequest

func NewGetRegistrarClusterRequest(server string, clusterRegistrarId string) (*http.Request, error)

NewGetRegistrarClusterRequest generates requests for GetRegistrarCluster

func NewListCatalogComponentVersionSubscriptionsRequest

func NewListCatalogComponentVersionSubscriptionsRequest(server string, componentName string, componentVersion string) (*http.Request, error)

NewListCatalogComponentVersionSubscriptionsRequest generates requests for ListCatalogComponentVersionSubscriptions

func NewListCatalogComponentsRequest

func NewListCatalogComponentsRequest(server string) (*http.Request, error)

NewListCatalogComponentsRequest generates requests for ListCatalogComponents

func NewListClusterSubscriptionsRequest

func NewListClusterSubscriptionsRequest(server string, region string, clusterId string) (*http.Request, error)

NewListClusterSubscriptionsRequest generates requests for ListClusterSubscriptions

func NewListClustersRequest

func NewListClustersRequest(server string) (*http.Request, error)

NewListClustersRequest generates requests for ListClusters

func NewListRegistrarClustersRequest

func NewListRegistrarClustersRequest(server string) (*http.Request, error)

NewListRegistrarClustersRequest generates requests for ListRegistrarClusters

func NewSubscribeCatalogComponentVersionRequest

func NewSubscribeCatalogComponentVersionRequest(server string, componentName string, componentVersion string, params *SubscribeCatalogComponentVersionParams) (*http.Request, error)

NewSubscribeCatalogComponentVersionRequest generates requests for SubscribeCatalogComponentVersion

func NewUnsubscribeCatalogComponentVersionRequest

func NewUnsubscribeCatalogComponentVersionRequest(server string, componentName string, componentVersion string, params *UnsubscribeCatalogComponentVersionParams) (*http.Request, error)

NewUnsubscribeCatalogComponentVersionRequest generates requests for UnsubscribeCatalogComponentVersion

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

Types

type AddCatalogComponentJSONRequestBody

type AddCatalogComponentJSONRequestBody = CatalogComponent

AddCatalogComponentJSONRequestBody defines body for AddCatalogComponent for application/json ContentType.

type AddCatalogComponentResponse

type AddCatalogComponentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CatalogComponent
	JSON400      *Error
	JSON409      *Error
}

func ParseAddCatalogComponentResponse

func ParseAddCatalogComponentResponse(rsp *http.Response) (*AddCatalogComponentResponse, error)

ParseAddCatalogComponentResponse parses an HTTP response from a AddCatalogComponentWithResponse call

func (AddCatalogComponentResponse) Status

Status returns HTTPResponse.Status

func (AddCatalogComponentResponse) StatusCode

func (r AddCatalogComponentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddCatalogComponentVersionJSONRequestBody

type AddCatalogComponentVersionJSONRequestBody = CatalogComponentVersion

AddCatalogComponentVersionJSONRequestBody defines body for AddCatalogComponentVersion for application/json ContentType.

type AddCatalogComponentVersionResponse

type AddCatalogComponentVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CatalogComponentVersion
	JSON400      *Error
	JSON409      *Error
}

func ParseAddCatalogComponentVersionResponse

func ParseAddCatalogComponentVersionResponse(rsp *http.Response) (*AddCatalogComponentVersionResponse, error)

ParseAddCatalogComponentVersionResponse parses an HTTP response from a AddCatalogComponentVersionWithResponse call

func (AddCatalogComponentVersionResponse) Status

Status returns HTTPResponse.Status

func (AddCatalogComponentVersionResponse) StatusCode

func (r AddCatalogComponentVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApiImpl

type ApiImpl struct {
	// contains filtered or unexported fields
}

func NewApiImpl

func NewApiImpl(logger logr.Logger,
	manager Manager) *ApiImpl

func (*ApiImpl) AddCatalogComponent

func (api *ApiImpl) AddCatalogComponent(c echo.Context) error

func (*ApiImpl) AddCatalogComponentVersion

func (api *ApiImpl) AddCatalogComponentVersion(c echo.Context, componentName string) error

func (*ApiImpl) CreateCluster

func (api *ApiImpl) CreateCluster(c echo.Context) error

func (*ApiImpl) CreateRegistrarCluster

func (api *ApiImpl) CreateRegistrarCluster(c echo.Context) error

func (*ApiImpl) DeleteCatalogComponent

func (api *ApiImpl) DeleteCatalogComponent(c echo.Context, componentName string) error

func (*ApiImpl) DeleteCatalogComponentVersion

func (api *ApiImpl) DeleteCatalogComponentVersion(c echo.Context, componentName string, componentVersion string) error

func (*ApiImpl) DeleteCluster

func (api *ApiImpl) DeleteCluster(c echo.Context, region string, id string) error

func (*ApiImpl) DeleteRegistrarCluster

func (api *ApiImpl) DeleteRegistrarCluster(c echo.Context, id string) error

func (*ApiImpl) GetCatalogComponent

func (api *ApiImpl) GetCatalogComponent(c echo.Context, componentName string) error

func (*ApiImpl) GetCatalogComponentVersion

func (api *ApiImpl) GetCatalogComponentVersion(c echo.Context, componentName string, componentVersion string) error

func (*ApiImpl) GetCluster

func (api *ApiImpl) GetCluster(c echo.Context, region string, id string) error

func (*ApiImpl) GetRegistrarCluster

func (api *ApiImpl) GetRegistrarCluster(c echo.Context, region string) error

func (*ApiImpl) ListCatalogComponentVersionSubscriptions

func (api *ApiImpl) ListCatalogComponentVersionSubscriptions(c echo.Context, componentName string, componentVersion string) error

func (*ApiImpl) ListCatalogComponents

func (api *ApiImpl) ListCatalogComponents(c echo.Context) error

func (*ApiImpl) ListClusterSubscriptions

func (api *ApiImpl) ListClusterSubscriptions(c echo.Context, region string, clusterId string) error

func (*ApiImpl) ListClusters

func (api *ApiImpl) ListClusters(c echo.Context) error

func (*ApiImpl) ListRegistrarClusters

func (api *ApiImpl) ListRegistrarClusters(c echo.Context) error

func (*ApiImpl) SubscribeCatalogComponentVersion

func (api *ApiImpl) SubscribeCatalogComponentVersion(c echo.Context, componentName string, componentVersion string,
	params SubscribeCatalogComponentVersionParams) error

func (*ApiImpl) UnsubscribeCatalogComponentVersion

func (api *ApiImpl) UnsubscribeCatalogComponentVersion(c echo.Context, componentName string, componentVersion string,
	params UnsubscribeCatalogComponentVersionParams) error

type Catalog

type Catalog struct {
	Components []CatalogComponent `json:"components"`
}

Catalog defines model for Catalog.

type CatalogComponent

type CatalogComponent struct {
	Description      string    `json:"description"`
	Icon             string    `json:"icon"`
	LatestVersion    *string   `json:"latest_version,omitempty"`
	Name             string    `json:"name"`
	PublishedRegions *[]string `json:"published_regions,omitempty"`
	ShortDescription string    `json:"short_description"`
	Url              string    `json:"url"`
	Versions         *[]string `json:"versions,omitempty"`
}

CatalogComponent defines model for CatalogComponent.

type CatalogComponentVersion

type CatalogComponentVersion struct {
	DeprecationDate  *string   `json:"deprecation_date,omitempty"`
	Description      string    `json:"description"`
	PublicationDate  string    `json:"publication_date"`
	PublishedRegions *[]string `json:"published_regions,omitempty"`
	RemovalDate      *string   `json:"removal_date,omitempty"`
	Version          string    `json:"version"`
}

CatalogComponentVersion defines model for CatalogComponentVersion.

type CatalogManager

type CatalogManager interface {
	ListComponents() ([]CatalogComponent, error)
	AddComponent(component *CatalogComponent) error
	DeleteComponent(componentName string) error
	GetComponent(componentName string) (*CatalogComponent, error)
	AddComponentVersion(componentName string, version *CatalogComponentVersion) error
	DeleteComponentVersion(componentName string, version string) error
	GetComponentVersion(componentName string, version string) (*CatalogComponentVersion, error)
	SubscribeComponentVersion(region string, clusterId string, componentName string, componentVersion string) error
	ListComponentVersionSubscriptions(componentName string, componentVersion string) ([]SubscribedClusters, error)
	UnsubscribeComponentVersion(region string, clusterId string, componentName string, componentVersion string) error
}

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AddCatalogComponent

func (c *Client) AddCatalogComponent(ctx context.Context, body AddCatalogComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddCatalogComponentVersion

func (c *Client) AddCatalogComponentVersion(ctx context.Context, componentName string, body AddCatalogComponentVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddCatalogComponentVersionWithBody

func (c *Client) AddCatalogComponentVersionWithBody(ctx context.Context, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddCatalogComponentWithBody

func (c *Client) AddCatalogComponentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCluster

func (c *Client) CreateCluster(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateClusterWithBody

func (c *Client) CreateClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRegistrarCluster

func (c *Client) CreateRegistrarCluster(ctx context.Context, body CreateRegistrarClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRegistrarClusterWithBody

func (c *Client) CreateRegistrarClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCatalogComponent

func (c *Client) DeleteCatalogComponent(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCatalogComponentVersion

func (c *Client) DeleteCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRegistrarCluster

func (c *Client) DeleteRegistrarCluster(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCatalogComponent

func (c *Client) GetCatalogComponent(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCatalogComponentVersion

func (c *Client) GetCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCluster

func (c *Client) GetCluster(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRegistrarCluster

func (c *Client) GetRegistrarCluster(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCatalogComponentVersionSubscriptions

func (c *Client) ListCatalogComponentVersionSubscriptions(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCatalogComponents

func (c *Client) ListCatalogComponents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListClusterSubscriptions

func (c *Client) ListClusterSubscriptions(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListClusters

func (c *Client) ListClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRegistrarClusters

func (c *Client) ListRegistrarClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SubscribeCatalogComponentVersion

func (c *Client) SubscribeCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, params *SubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UnsubscribeCatalogComponentVersion

func (c *Client) UnsubscribeCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, params *UnsubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListCatalogComponents request
	ListCatalogComponents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddCatalogComponentWithBody request with any body
	AddCatalogComponentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddCatalogComponent(ctx context.Context, body AddCatalogComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCatalogComponent request
	DeleteCatalogComponent(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCatalogComponent request
	GetCatalogComponent(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddCatalogComponentVersionWithBody request with any body
	AddCatalogComponentVersionWithBody(ctx context.Context, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddCatalogComponentVersion(ctx context.Context, componentName string, body AddCatalogComponentVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCatalogComponentVersion request
	DeleteCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCatalogComponentVersion request
	GetCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnsubscribeCatalogComponentVersion request
	UnsubscribeCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, params *UnsubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCatalogComponentVersionSubscriptions request
	ListCatalogComponentVersionSubscriptions(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubscribeCatalogComponentVersion request
	SubscribeCatalogComponentVersion(ctx context.Context, componentName string, componentVersion string, params *SubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListClusters request
	ListClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateClusterWithBody request with any body
	CreateClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCluster(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCluster request
	DeleteCluster(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCluster request
	GetCluster(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListClusterSubscriptions request
	ListClusterSubscriptions(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRegistrarClusters request
	ListRegistrarClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRegistrarClusterWithBody request with any body
	CreateRegistrarClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateRegistrarCluster(ctx context.Context, body CreateRegistrarClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRegistrarCluster request
	DeleteRegistrarCluster(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRegistrarCluster request
	GetRegistrarCluster(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) AddCatalogComponentVersionWithBodyWithResponse

func (c *ClientWithResponses) AddCatalogComponentVersionWithBodyWithResponse(ctx context.Context, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCatalogComponentVersionResponse, error)

AddCatalogComponentVersionWithBodyWithResponse request with arbitrary body returning *AddCatalogComponentVersionResponse

func (*ClientWithResponses) AddCatalogComponentVersionWithResponse

func (c *ClientWithResponses) AddCatalogComponentVersionWithResponse(ctx context.Context, componentName string, body AddCatalogComponentVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCatalogComponentVersionResponse, error)

func (*ClientWithResponses) AddCatalogComponentWithBodyWithResponse

func (c *ClientWithResponses) AddCatalogComponentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCatalogComponentResponse, error)

AddCatalogComponentWithBodyWithResponse request with arbitrary body returning *AddCatalogComponentResponse

func (*ClientWithResponses) AddCatalogComponentWithResponse

func (c *ClientWithResponses) AddCatalogComponentWithResponse(ctx context.Context, body AddCatalogComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCatalogComponentResponse, error)

func (*ClientWithResponses) CreateClusterWithBodyWithResponse

func (c *ClientWithResponses) CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

CreateClusterWithBodyWithResponse request with arbitrary body returning *CreateClusterResponse

func (*ClientWithResponses) CreateClusterWithResponse

func (c *ClientWithResponses) CreateClusterWithResponse(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

func (*ClientWithResponses) CreateRegistrarClusterWithBodyWithResponse

func (c *ClientWithResponses) CreateRegistrarClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRegistrarClusterResponse, error)

CreateRegistrarClusterWithBodyWithResponse request with arbitrary body returning *CreateRegistrarClusterResponse

func (*ClientWithResponses) CreateRegistrarClusterWithResponse

func (c *ClientWithResponses) CreateRegistrarClusterWithResponse(ctx context.Context, body CreateRegistrarClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRegistrarClusterResponse, error)

func (*ClientWithResponses) DeleteCatalogComponentVersionWithResponse

func (c *ClientWithResponses) DeleteCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*DeleteCatalogComponentVersionResponse, error)

DeleteCatalogComponentVersionWithResponse request returning *DeleteCatalogComponentVersionResponse

func (*ClientWithResponses) DeleteCatalogComponentWithResponse

func (c *ClientWithResponses) DeleteCatalogComponentWithResponse(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*DeleteCatalogComponentResponse, error)

DeleteCatalogComponentWithResponse request returning *DeleteCatalogComponentResponse

func (*ClientWithResponses) DeleteClusterWithResponse

func (c *ClientWithResponses) DeleteClusterWithResponse(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*DeleteClusterResponse, error)

DeleteClusterWithResponse request returning *DeleteClusterResponse

func (*ClientWithResponses) DeleteRegistrarClusterWithResponse

func (c *ClientWithResponses) DeleteRegistrarClusterWithResponse(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*DeleteRegistrarClusterResponse, error)

DeleteRegistrarClusterWithResponse request returning *DeleteRegistrarClusterResponse

func (*ClientWithResponses) GetCatalogComponentVersionWithResponse

func (c *ClientWithResponses) GetCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*GetCatalogComponentVersionResponse, error)

GetCatalogComponentVersionWithResponse request returning *GetCatalogComponentVersionResponse

func (*ClientWithResponses) GetCatalogComponentWithResponse

func (c *ClientWithResponses) GetCatalogComponentWithResponse(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*GetCatalogComponentResponse, error)

GetCatalogComponentWithResponse request returning *GetCatalogComponentResponse

func (*ClientWithResponses) GetClusterWithResponse

func (c *ClientWithResponses) GetClusterWithResponse(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*GetClusterResponse, error)

GetClusterWithResponse request returning *GetClusterResponse

func (*ClientWithResponses) GetRegistrarClusterWithResponse

func (c *ClientWithResponses) GetRegistrarClusterWithResponse(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*GetRegistrarClusterResponse, error)

GetRegistrarClusterWithResponse request returning *GetRegistrarClusterResponse

func (*ClientWithResponses) ListCatalogComponentVersionSubscriptionsWithResponse

func (c *ClientWithResponses) ListCatalogComponentVersionSubscriptionsWithResponse(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*ListCatalogComponentVersionSubscriptionsResponse, error)

ListCatalogComponentVersionSubscriptionsWithResponse request returning *ListCatalogComponentVersionSubscriptionsResponse

func (*ClientWithResponses) ListCatalogComponentsWithResponse

func (c *ClientWithResponses) ListCatalogComponentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCatalogComponentsResponse, error)

ListCatalogComponentsWithResponse request returning *ListCatalogComponentsResponse

func (*ClientWithResponses) ListClusterSubscriptionsWithResponse

func (c *ClientWithResponses) ListClusterSubscriptionsWithResponse(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*ListClusterSubscriptionsResponse, error)

ListClusterSubscriptionsWithResponse request returning *ListClusterSubscriptionsResponse

func (*ClientWithResponses) ListClustersWithResponse

func (c *ClientWithResponses) ListClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)

ListClustersWithResponse request returning *ListClustersResponse

func (*ClientWithResponses) ListRegistrarClustersWithResponse

func (c *ClientWithResponses) ListRegistrarClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegistrarClustersResponse, error)

ListRegistrarClustersWithResponse request returning *ListRegistrarClustersResponse

func (*ClientWithResponses) SubscribeCatalogComponentVersionWithResponse

func (c *ClientWithResponses) SubscribeCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, params *SubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*SubscribeCatalogComponentVersionResponse, error)

SubscribeCatalogComponentVersionWithResponse request returning *SubscribeCatalogComponentVersionResponse

func (*ClientWithResponses) UnsubscribeCatalogComponentVersionWithResponse

func (c *ClientWithResponses) UnsubscribeCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, params *UnsubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*UnsubscribeCatalogComponentVersionResponse, error)

UnsubscribeCatalogComponentVersionWithResponse request returning *UnsubscribeCatalogComponentVersionResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListCatalogComponentsWithResponse request
	ListCatalogComponentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCatalogComponentsResponse, error)

	// AddCatalogComponentWithBodyWithResponse request with any body
	AddCatalogComponentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCatalogComponentResponse, error)

	AddCatalogComponentWithResponse(ctx context.Context, body AddCatalogComponentJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCatalogComponentResponse, error)

	// DeleteCatalogComponentWithResponse request
	DeleteCatalogComponentWithResponse(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*DeleteCatalogComponentResponse, error)

	// GetCatalogComponentWithResponse request
	GetCatalogComponentWithResponse(ctx context.Context, componentName string, reqEditors ...RequestEditorFn) (*GetCatalogComponentResponse, error)

	// AddCatalogComponentVersionWithBodyWithResponse request with any body
	AddCatalogComponentVersionWithBodyWithResponse(ctx context.Context, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddCatalogComponentVersionResponse, error)

	AddCatalogComponentVersionWithResponse(ctx context.Context, componentName string, body AddCatalogComponentVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddCatalogComponentVersionResponse, error)

	// DeleteCatalogComponentVersionWithResponse request
	DeleteCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*DeleteCatalogComponentVersionResponse, error)

	// GetCatalogComponentVersionWithResponse request
	GetCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*GetCatalogComponentVersionResponse, error)

	// UnsubscribeCatalogComponentVersionWithResponse request
	UnsubscribeCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, params *UnsubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*UnsubscribeCatalogComponentVersionResponse, error)

	// ListCatalogComponentVersionSubscriptionsWithResponse request
	ListCatalogComponentVersionSubscriptionsWithResponse(ctx context.Context, componentName string, componentVersion string, reqEditors ...RequestEditorFn) (*ListCatalogComponentVersionSubscriptionsResponse, error)

	// SubscribeCatalogComponentVersionWithResponse request
	SubscribeCatalogComponentVersionWithResponse(ctx context.Context, componentName string, componentVersion string, params *SubscribeCatalogComponentVersionParams, reqEditors ...RequestEditorFn) (*SubscribeCatalogComponentVersionResponse, error)

	// ListClustersWithResponse request
	ListClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClustersResponse, error)

	// CreateClusterWithBodyWithResponse request with any body
	CreateClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

	CreateClusterWithResponse(ctx context.Context, body CreateClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClusterResponse, error)

	// DeleteClusterWithResponse request
	DeleteClusterWithResponse(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*DeleteClusterResponse, error)

	// GetClusterWithResponse request
	GetClusterWithResponse(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*GetClusterResponse, error)

	// ListClusterSubscriptionsWithResponse request
	ListClusterSubscriptionsWithResponse(ctx context.Context, region string, clusterId string, reqEditors ...RequestEditorFn) (*ListClusterSubscriptionsResponse, error)

	// ListRegistrarClustersWithResponse request
	ListRegistrarClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegistrarClustersResponse, error)

	// CreateRegistrarClusterWithBodyWithResponse request with any body
	CreateRegistrarClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRegistrarClusterResponse, error)

	CreateRegistrarClusterWithResponse(ctx context.Context, body CreateRegistrarClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRegistrarClusterResponse, error)

	// DeleteRegistrarClusterWithResponse request
	DeleteRegistrarClusterWithResponse(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*DeleteRegistrarClusterResponse, error)

	// GetRegistrarClusterWithResponse request
	GetRegistrarClusterWithResponse(ctx context.Context, clusterRegistrarId string, reqEditors ...RequestEditorFn) (*GetRegistrarClusterResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Cluster

type Cluster struct {
	Id         *string        `json:"id,omitempty"`
	Kubeconfig *Kubeconfig    `json:"kubeconfig,omitempty"`
	Name       string         `json:"name"`
	Region     string         `json:"region"`
	Status     *ClusterStatus `json:"status,omitempty"`
	Version    string         `json:"version"`
}

Cluster defines model for Cluster.

func (*Cluster) ValidateInputs

func (c *Cluster) ValidateInputs() error

type ClusterManager

type ClusterManager interface {
	Create(cluster *Cluster) (*Cluster, error)
	Delete(id string) error
	List() ([]*Cluster, error)
	Get(id string) (*Cluster, error)
	ListSubscriptions(id string) ([]*CatalogComponent, error)
}

type ClusterRegistrar

type ClusterRegistrar struct {
	Id     string
	Name   string
	Region string

	Kubeconfig string
	// contains filtered or unexported fields
}

func (*ClusterRegistrar) CreateClient

func (m *ClusterRegistrar) CreateClient() (*kubernetes.Clientset, error)

func (*ClusterRegistrar) CreateDynamicClient

func (m *ClusterRegistrar) CreateDynamicClient() (*dynamic.DynamicClient, error)

type ClusterRegistrarManager

type ClusterRegistrarManager interface {
	Create(cluster *ClusterRegistrar) (*ClusterRegistrar, error)
	Delete(region string) error
	List() ([]*ClusterRegistrar, error)
	Get(region string) (*ClusterRegistrar, error)
}

type ClusterStatus

type ClusterStatus struct {
	Online bool   `json:"online"`
	Phase  string `json:"phase"`
}

ClusterStatus defines model for ClusterStatus.

type CreateClusterJSONRequestBody

type CreateClusterJSONRequestBody = Cluster

CreateClusterJSONRequestBody defines body for CreateCluster for application/json ContentType.

type CreateClusterResponse

type CreateClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Cluster
}

func ParseCreateClusterResponse

func ParseCreateClusterResponse(rsp *http.Response) (*CreateClusterResponse, error)

ParseCreateClusterResponse parses an HTTP response from a CreateClusterWithResponse call

func (CreateClusterResponse) Status

func (r CreateClusterResponse) Status() string

Status returns HTTPResponse.Status

func (CreateClusterResponse) StatusCode

func (r CreateClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRegistrarClusterJSONRequestBody

type CreateRegistrarClusterJSONRequestBody = RegistrarCluster

CreateRegistrarClusterJSONRequestBody defines body for CreateRegistrarCluster for application/json ContentType.

type CreateRegistrarClusterResponse

type CreateRegistrarClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *RegistrarCluster
	JSON400      *Error
}

func ParseCreateRegistrarClusterResponse

func ParseCreateRegistrarClusterResponse(rsp *http.Response) (*CreateRegistrarClusterResponse, error)

ParseCreateRegistrarClusterResponse parses an HTTP response from a CreateRegistrarClusterWithResponse call

func (CreateRegistrarClusterResponse) Status

Status returns HTTPResponse.Status

func (CreateRegistrarClusterResponse) StatusCode

func (r CreateRegistrarClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCatalogComponentResponse

type DeleteCatalogComponentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON409      *Error
}

func ParseDeleteCatalogComponentResponse

func ParseDeleteCatalogComponentResponse(rsp *http.Response) (*DeleteCatalogComponentResponse, error)

ParseDeleteCatalogComponentResponse parses an HTTP response from a DeleteCatalogComponentWithResponse call

func (DeleteCatalogComponentResponse) Status

Status returns HTTPResponse.Status

func (DeleteCatalogComponentResponse) StatusCode

func (r DeleteCatalogComponentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCatalogComponentVersionResponse

type DeleteCatalogComponentVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON409      *Error
}

func ParseDeleteCatalogComponentVersionResponse

func ParseDeleteCatalogComponentVersionResponse(rsp *http.Response) (*DeleteCatalogComponentVersionResponse, error)

ParseDeleteCatalogComponentVersionResponse parses an HTTP response from a DeleteCatalogComponentVersionWithResponse call

func (DeleteCatalogComponentVersionResponse) Status

Status returns HTTPResponse.Status

func (DeleteCatalogComponentVersionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteClusterResponse

type DeleteClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteClusterResponse

func ParseDeleteClusterResponse(rsp *http.Response) (*DeleteClusterResponse, error)

ParseDeleteClusterResponse parses an HTTP response from a DeleteClusterWithResponse call

func (DeleteClusterResponse) Status

func (r DeleteClusterResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteClusterResponse) StatusCode

func (r DeleteClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRegistrarClusterResponse

type DeleteRegistrarClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteRegistrarClusterResponse

func ParseDeleteRegistrarClusterResponse(rsp *http.Response) (*DeleteRegistrarClusterResponse, error)

ParseDeleteRegistrarClusterResponse parses an HTTP response from a DeleteRegistrarClusterWithResponse call

func (DeleteRegistrarClusterResponse) Status

Status returns HTTPResponse.Status

func (DeleteRegistrarClusterResponse) StatusCode

func (r DeleteRegistrarClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type Error

type Error struct {
	Error string `json:"error"`
}

Error defines model for Error.

type GetCatalogComponentResponse

type GetCatalogComponentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CatalogComponent
}

func ParseGetCatalogComponentResponse

func ParseGetCatalogComponentResponse(rsp *http.Response) (*GetCatalogComponentResponse, error)

ParseGetCatalogComponentResponse parses an HTTP response from a GetCatalogComponentWithResponse call

func (GetCatalogComponentResponse) Status

Status returns HTTPResponse.Status

func (GetCatalogComponentResponse) StatusCode

func (r GetCatalogComponentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCatalogComponentVersionResponse

type GetCatalogComponentVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CatalogComponentVersion
}

func ParseGetCatalogComponentVersionResponse

func ParseGetCatalogComponentVersionResponse(rsp *http.Response) (*GetCatalogComponentVersionResponse, error)

ParseGetCatalogComponentVersionResponse parses an HTTP response from a GetCatalogComponentVersionWithResponse call

func (GetCatalogComponentVersionResponse) Status

Status returns HTTPResponse.Status

func (GetCatalogComponentVersionResponse) StatusCode

func (r GetCatalogComponentVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetClusterResponse

type GetClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Cluster
}

func ParseGetClusterResponse

func ParseGetClusterResponse(rsp *http.Response) (*GetClusterResponse, error)

ParseGetClusterResponse parses an HTTP response from a GetClusterWithResponse call

func (GetClusterResponse) Status

func (r GetClusterResponse) Status() string

Status returns HTTPResponse.Status

func (GetClusterResponse) StatusCode

func (r GetClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRegistrarClusterResponse

type GetRegistrarClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RegistrarCluster
}

func ParseGetRegistrarClusterResponse

func ParseGetRegistrarClusterResponse(rsp *http.Response) (*GetRegistrarClusterResponse, error)

ParseGetRegistrarClusterResponse parses an HTTP response from a GetRegistrarClusterWithResponse call

func (GetRegistrarClusterResponse) Status

Status returns HTTPResponse.Status

func (GetRegistrarClusterResponse) StatusCode

func (r GetRegistrarClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Kubeconfig

type Kubeconfig = string

Kubeconfig defines model for Kubeconfig.

type ListCatalogComponentVersionSubscriptionsResponse

type ListCatalogComponentVersionSubscriptionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Subscriptions SubscribedClusters `json:"subscriptions"`
	}
}

func ParseListCatalogComponentVersionSubscriptionsResponse

func ParseListCatalogComponentVersionSubscriptionsResponse(rsp *http.Response) (*ListCatalogComponentVersionSubscriptionsResponse, error)

ParseListCatalogComponentVersionSubscriptionsResponse parses an HTTP response from a ListCatalogComponentVersionSubscriptionsWithResponse call

func (ListCatalogComponentVersionSubscriptionsResponse) Status

Status returns HTTPResponse.Status

func (ListCatalogComponentVersionSubscriptionsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListCatalogComponentsResponse

type ListCatalogComponentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Catalog
}

func ParseListCatalogComponentsResponse

func ParseListCatalogComponentsResponse(rsp *http.Response) (*ListCatalogComponentsResponse, error)

ParseListCatalogComponentsResponse parses an HTTP response from a ListCatalogComponentsWithResponse call

func (ListCatalogComponentsResponse) Status

Status returns HTTPResponse.Status

func (ListCatalogComponentsResponse) StatusCode

func (r ListCatalogComponentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListClusterSubscriptionsResponse

type ListClusterSubscriptionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Subscriptions CatalogComponentVersion `json:"subscriptions"`
	}
}

func ParseListClusterSubscriptionsResponse

func ParseListClusterSubscriptionsResponse(rsp *http.Response) (*ListClusterSubscriptionsResponse, error)

ParseListClusterSubscriptionsResponse parses an HTTP response from a ListClusterSubscriptionsWithResponse call

func (ListClusterSubscriptionsResponse) Status

Status returns HTTPResponse.Status

func (ListClusterSubscriptionsResponse) StatusCode

func (r ListClusterSubscriptionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListClustersResponse

type ListClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Clusters []Cluster `json:"clusters"`
		Warnings *[]string `json:"warnings,omitempty"`
	}
}

func ParseListClustersResponse

func ParseListClustersResponse(rsp *http.Response) (*ListClustersResponse, error)

ParseListClustersResponse parses an HTTP response from a ListClustersWithResponse call

func (ListClustersResponse) Status

func (r ListClustersResponse) Status() string

Status returns HTTPResponse.Status

func (ListClustersResponse) StatusCode

func (r ListClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRegistrarClustersResponse

type ListRegistrarClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Clusters []RegistrarCluster `json:"clusters"`
		Warnings *[]string          `json:"warnings,omitempty"`
	}
}

func ParseListRegistrarClustersResponse

func ParseListRegistrarClustersResponse(rsp *http.Response) (*ListRegistrarClustersResponse, error)

ParseListRegistrarClustersResponse parses an HTTP response from a ListRegistrarClustersWithResponse call

func (ListRegistrarClustersResponse) Status

Status returns HTTPResponse.Status

func (ListRegistrarClustersResponse) StatusCode

func (r ListRegistrarClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Manager

type Manager interface {
	GetKubeconfig() *rest.Config
	GetClusterRegistrar() ClusterRegistrarManager

	InstanciateClusterManager(logr.Logger, *kubernetes.Clientset, *dynamic.DynamicClient) ClusterManager
	GetClusterManager(region string) (ClusterManager, error)
	GetCatalog() CatalogManager
	GetRBAC() RBAC
}

type RBAC

type RBAC interface {
	IsAllowed(username, ressource, action string) bool
}

type RegistrarCluster

type RegistrarCluster struct {
	Id         *string     `json:"id,omitempty"`
	Kubeconfig *Kubeconfig `json:"kubeconfig,omitempty"`
	Name       string      `json:"name"`
	Region     string      `json:"region"`
}

RegistrarCluster defines model for RegistrarCluster.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerInterface

type ServerInterface interface {
	// List all components in the catalog
	// (GET /v1/catalog)
	ListCatalogComponents(ctx echo.Context) error
	// Add a new component to the catalog
	// (POST /v1/catalog/components)
	AddCatalogComponent(ctx echo.Context) error
	// Delete a component from the catalog
	// (DELETE /v1/catalog/components/{componentName})
	DeleteCatalogComponent(ctx echo.Context, componentName string) error
	// Get a component in the catalog
	// (GET /v1/catalog/components/{componentName})
	GetCatalogComponent(ctx echo.Context, componentName string) error
	// Add a new component version to the catalog
	// (POST /v1/catalog/components/{componentName}/versions)
	AddCatalogComponentVersion(ctx echo.Context, componentName string) error
	// Delete a component version from the catalog
	// (DELETE /v1/catalog/components/{componentName}/versions/{componentVersion})
	DeleteCatalogComponentVersion(ctx echo.Context, componentName string, componentVersion string) error
	// Get a component version in the catalog
	// (GET /v1/catalog/components/{componentName}/versions/{componentVersion})
	GetCatalogComponentVersion(ctx echo.Context, componentName string, componentVersion string) error
	// Unsubscribe from a component version
	// (DELETE /v1/catalog/components/{componentName}/versions/{componentVersion}/subscriptions)
	UnsubscribeCatalogComponentVersion(ctx echo.Context, componentName string, componentVersion string, params UnsubscribeCatalogComponentVersionParams) error
	// List all subscriptions to a component version
	// (GET /v1/catalog/components/{componentName}/versions/{componentVersion}/subscriptions)
	ListCatalogComponentVersionSubscriptions(ctx echo.Context, componentName string, componentVersion string) error
	// Subscribe to a component version
	// (POST /v1/catalog/components/{componentName}/versions/{componentVersion}/subscriptions)
	SubscribeCatalogComponentVersion(ctx echo.Context, componentName string, componentVersion string, params SubscribeCatalogComponentVersionParams) error
	// List all clusters
	// (GET /v1/clusters)
	ListClusters(ctx echo.Context) error
	// Create a new cluster
	// (POST /v1/clusters)
	CreateCluster(ctx echo.Context) error
	// Delete a cluster
	// (DELETE /v1/clusters/{region}/{clusterId})
	DeleteCluster(ctx echo.Context, region string, clusterId string) error
	// Get a cluster
	// (GET /v1/clusters/{region}/{clusterId})
	GetCluster(ctx echo.Context, region string, clusterId string) error
	// List all subscriptions to a cluster
	// (GET /v1/clusters/{region}/{clusterId}/subscriptions)
	ListClusterSubscriptions(ctx echo.Context, region string, clusterId string) error
	// List all management clusters
	// (GET /v1/registrars)
	ListRegistrarClusters(ctx echo.Context) error
	// Create a new management cluster
	// (POST /v1/registrars)
	CreateRegistrarCluster(ctx echo.Context) error
	// Delete a management cluster
	// (DELETE /v1/registrars/{clusterRegistrarId})
	DeleteRegistrarCluster(ctx echo.Context, clusterRegistrarId string) error
	// Get a management cluster
	// (GET /v1/registrars/{clusterRegistrarId})
	GetRegistrarCluster(ctx echo.Context, clusterRegistrarId string) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) AddCatalogComponent

func (w *ServerInterfaceWrapper) AddCatalogComponent(ctx echo.Context) error

AddCatalogComponent converts echo context to params.

func (*ServerInterfaceWrapper) AddCatalogComponentVersion

func (w *ServerInterfaceWrapper) AddCatalogComponentVersion(ctx echo.Context) error

AddCatalogComponentVersion converts echo context to params.

func (*ServerInterfaceWrapper) CreateCluster

func (w *ServerInterfaceWrapper) CreateCluster(ctx echo.Context) error

CreateCluster converts echo context to params.

func (*ServerInterfaceWrapper) CreateRegistrarCluster

func (w *ServerInterfaceWrapper) CreateRegistrarCluster(ctx echo.Context) error

CreateRegistrarCluster converts echo context to params.

func (*ServerInterfaceWrapper) DeleteCatalogComponent

func (w *ServerInterfaceWrapper) DeleteCatalogComponent(ctx echo.Context) error

DeleteCatalogComponent converts echo context to params.

func (*ServerInterfaceWrapper) DeleteCatalogComponentVersion

func (w *ServerInterfaceWrapper) DeleteCatalogComponentVersion(ctx echo.Context) error

DeleteCatalogComponentVersion converts echo context to params.

func (*ServerInterfaceWrapper) DeleteCluster

func (w *ServerInterfaceWrapper) DeleteCluster(ctx echo.Context) error

DeleteCluster converts echo context to params.

func (*ServerInterfaceWrapper) DeleteRegistrarCluster

func (w *ServerInterfaceWrapper) DeleteRegistrarCluster(ctx echo.Context) error

DeleteRegistrarCluster converts echo context to params.

func (*ServerInterfaceWrapper) GetCatalogComponent

func (w *ServerInterfaceWrapper) GetCatalogComponent(ctx echo.Context) error

GetCatalogComponent converts echo context to params.

func (*ServerInterfaceWrapper) GetCatalogComponentVersion

func (w *ServerInterfaceWrapper) GetCatalogComponentVersion(ctx echo.Context) error

GetCatalogComponentVersion converts echo context to params.

func (*ServerInterfaceWrapper) GetCluster

func (w *ServerInterfaceWrapper) GetCluster(ctx echo.Context) error

GetCluster converts echo context to params.

func (*ServerInterfaceWrapper) GetRegistrarCluster

func (w *ServerInterfaceWrapper) GetRegistrarCluster(ctx echo.Context) error

GetRegistrarCluster converts echo context to params.

func (*ServerInterfaceWrapper) ListCatalogComponentVersionSubscriptions

func (w *ServerInterfaceWrapper) ListCatalogComponentVersionSubscriptions(ctx echo.Context) error

ListCatalogComponentVersionSubscriptions converts echo context to params.

func (*ServerInterfaceWrapper) ListCatalogComponents

func (w *ServerInterfaceWrapper) ListCatalogComponents(ctx echo.Context) error

ListCatalogComponents converts echo context to params.

func (*ServerInterfaceWrapper) ListClusterSubscriptions

func (w *ServerInterfaceWrapper) ListClusterSubscriptions(ctx echo.Context) error

ListClusterSubscriptions converts echo context to params.

func (*ServerInterfaceWrapper) ListClusters

func (w *ServerInterfaceWrapper) ListClusters(ctx echo.Context) error

ListClusters converts echo context to params.

func (*ServerInterfaceWrapper) ListRegistrarClusters

func (w *ServerInterfaceWrapper) ListRegistrarClusters(ctx echo.Context) error

ListRegistrarClusters converts echo context to params.

func (*ServerInterfaceWrapper) SubscribeCatalogComponentVersion

func (w *ServerInterfaceWrapper) SubscribeCatalogComponentVersion(ctx echo.Context) error

SubscribeCatalogComponentVersion converts echo context to params.

func (*ServerInterfaceWrapper) UnsubscribeCatalogComponentVersion

func (w *ServerInterfaceWrapper) UnsubscribeCatalogComponentVersion(ctx echo.Context) error

UnsubscribeCatalogComponentVersion converts echo context to params.

type SubscribeCatalogComponentVersionParams

type SubscribeCatalogComponentVersionParams struct {
	// Region Region to subscribe to
	Region string `form:"region" json:"region"`

	// ClusterId Cluster ID to subscribe to
	ClusterId string `form:"clusterId" json:"clusterId"`
}

SubscribeCatalogComponentVersionParams defines parameters for SubscribeCatalogComponentVersion.

type SubscribeCatalogComponentVersionResponse

type SubscribeCatalogComponentVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON409      *Error
}

func ParseSubscribeCatalogComponentVersionResponse

func ParseSubscribeCatalogComponentVersionResponse(rsp *http.Response) (*SubscribeCatalogComponentVersionResponse, error)

ParseSubscribeCatalogComponentVersionResponse parses an HTTP response from a SubscribeCatalogComponentVersionWithResponse call

func (SubscribeCatalogComponentVersionResponse) Status

Status returns HTTPResponse.Status

func (SubscribeCatalogComponentVersionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SubscribedClusters

type SubscribedClusters struct {
	Clusters []struct {
		ClusterId *string `json:"cluster_id,omitempty"`
		Region    *string `json:"region,omitempty"`
	} `json:"clusters"`
}

SubscribedClusters defines model for SubscribedClusters.

type UnsubscribeCatalogComponentVersionParams

type UnsubscribeCatalogComponentVersionParams struct {
	// Region Region to unsubscribe from
	Region string `form:"region" json:"region"`

	// ClusterId Cluster ID to unsubscribe from
	ClusterId string `form:"clusterId" json:"clusterId"`
}

UnsubscribeCatalogComponentVersionParams defines parameters for UnsubscribeCatalogComponentVersion.

type UnsubscribeCatalogComponentVersionResponse

type UnsubscribeCatalogComponentVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON409      *Error
}

func ParseUnsubscribeCatalogComponentVersionResponse

func ParseUnsubscribeCatalogComponentVersionResponse(rsp *http.Response) (*UnsubscribeCatalogComponentVersionResponse, error)

ParseUnsubscribeCatalogComponentVersionResponse parses an HTTP response from a UnsubscribeCatalogComponentVersionWithResponse call

func (UnsubscribeCatalogComponentVersionResponse) Status

Status returns HTTPResponse.Status

func (UnsubscribeCatalogComponentVersionResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL