register

package
v1.0.202209131709 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConnectorIDtoAstra

func AddConnectorIDtoAstra(m *v1.AstraConnector, astraConnectorID string, ctx context.Context) error

func GetAstraHostURL

func GetAstraHostURL(m *v1.AstraConnector, ctx context.Context) string

func GetCloudId

func GetCloudId(astraHost string, accountId string, token string, cloudType string, ctx context.Context) (string, error)

func GetClusterId

func GetClusterId(astraHost string, clusterName string, accountId string, cloudId string, token string, ctx context.Context) (string, string, error)

func GetConnectorIDFromConfigMap

func GetConnectorIDFromConfigMap(cmData map[string]string) (string, error)

func GetNatssyncClientRegistrationURL

func GetNatssyncClientRegistrationURL(m *v1.AstraConnector) string

GetNatssyncClientRegistrationURL returns NatssyncClient Registration URL

func ListClouds

func ListClouds(astraHost string, accountId string, token string) (*http.Response, error)

func ListClusters

func ListClusters(astraHost string, accountId string, cloudId string, token string) (*http.Response, error)

func LogHttpError

func LogHttpError(response *http.Response, ctx context.Context)

func PostConnectorID

func PostConnectorID(astraCloudHost string, pcloudAccountId string, token string, astraConnectorID string, cloudId string, clusterId string, managedState string, ctx context.Context) (*http.Response, error)

func ReadResponseBody

func ReadResponseBody(response *http.Response) ([]byte, error)

func RegisterClient

func RegisterClient(m *v1.AstraConnector) (string, error)

func RegisterConnectorID

func RegisterConnectorID(astraCloudHost string, pcloudAccountId string, token string, astraConnectorID string, cloudId string, clusterId string, managedState string, ctx context.Context) error

func RemoveConnectorIDFromAstra

func RemoveConnectorIDFromAstra(m *v1.AstraConnector, ctx context.Context) error

func UnregisterClient

func UnregisterClient(m *v1.AstraConnector) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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