service

package
v0.0.0-...-da48874 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(config *Config) (api.API, error)

func Get

func Get(f *factory.Factory, format string, getter func(api *AdminAPI) (interface{}, *http.Response, error)) error

func GetClusterByID

func GetClusterByID(c *AdminAPI, clusterID string) (*admin.ConnectorClusterAdminView, error)

func GetClusterForNamespace

func GetClusterForNamespace(c *AdminAPI, namespaceID string) (*admin.ConnectorClusterAdminView, error)

func GetConnectorByID

func GetConnectorByID(c *AdminAPI, connectorID string) (*admin.ConnectorAdminView, error)

func GetDeploymentByID

func GetDeploymentByID(c *AdminAPI, clusterID string, deploymentID string) (*admin.ConnectorDeploymentAdminView, error)

func GetNamespaceByID

func GetNamespaceByID(c *AdminAPI, namespaceID string) (*admin.ConnectorNamespace, error)

func ListConnectorsForCluster

func ListConnectorsForCluster(c *AdminAPI, opts request.ListOptions, clusterID string) (admin.ConnectorAdminViewList, error)

func ListConnectorsForNamespace

func ListConnectorsForNamespace(c *AdminAPI, opts request.ListOptions, namespaceID string) (admin.ConnectorAdminViewList, error)

func ListDeploymentsForNamespace

func ListDeploymentsForNamespace(c *AdminAPI, opts request.ListOptions, namespaceId string) (admin.ConnectorDeploymentAdminViewList, error)

func ListNamespacesForCluster

func ListNamespacesForCluster(c *AdminAPI, opts request.ListOptions, clusterID string) (admin.ConnectorNamespaceList, error)

Types

type AdminAPI

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

func NewAdminClient

func NewAdminClient(config *Config) (*AdminAPI, error)

func (*AdminAPI) Catalog

func (api *AdminAPI) Catalog() *admin.ConnectorTypesApiService

func (*AdminAPI) Clusters

func (*AdminAPI) Context

func (api *AdminAPI) Context() context.Context

func (*AdminAPI) DELETE

func (api *AdminAPI) DELETE(relativePath string) (interface{}, *http.Response, error)

func (*AdminAPI) GET

func (api *AdminAPI) GET(relativePath string) (interface{}, *http.Response, error)

func (*AdminAPI) Namespaces

func (*AdminAPI) PATCH

func (api *AdminAPI) PATCH(relativePath string, body io.Reader) (interface{}, *http.Response, error)

func (*AdminAPI) POST

func (api *AdminAPI) POST(relativePath string, body io.Reader) (interface{}, *http.Response, error)

func (*AdminAPI) PUT

func (api *AdminAPI) PUT(relativePath string, body io.Reader) (interface{}, *http.Response, error)

type Config

type Config struct {
	F *factory.Factory
}

Jump to

Keyboard shortcuts

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