client

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApiErrorDetails

func GetApiErrorDetails(err error) string

GetApiErrorDetails will return the api Error message if present If not present will return the original err.Error()

func ParseURL

func ParseURL(host string) (*url.URL, error)

func SetVersion

func SetVersion(version string)

Types

type AuthApiClient

type AuthApiClient struct {
	ApiClient *ybmclient.APIClient
	AccountID string
	ProjectID string
	// contains filtered or unexported fields
}

func NewAuthApiClient

func NewAuthApiClient() (*AuthApiClient, error)

NewAuthClient function is returning a new AuthApiClient Client

func (*AuthApiClient) CreateBackup

func (*AuthApiClient) CreateCdcSink

func (a *AuthApiClient) CreateCdcSink() ybmclient.ApiCreateCdcSinkRequest

func (*AuthApiClient) CreateCdcStream

func (a *AuthApiClient) CreateCdcStream(clusterId string) ybmclient.ApiCreateCdcStreamRequest

func (*AuthApiClient) CreateCluster

func (a *AuthApiClient) CreateCluster() ybmclient.ApiCreateClusterRequest

func (*AuthApiClient) CreateClusterSpec

func (a *AuthApiClient) CreateClusterSpec(cmd *cobra.Command, regionInfoList []map[string]string) (*ybmclient.ClusterSpec, error)

func (*AuthApiClient) CreateNetworkAllowList

func (a *AuthApiClient) CreateNetworkAllowList() ybmclient.ApiCreateNetworkAllowListRequest

func (*AuthApiClient) CreateReadReplica

func (a *AuthApiClient) CreateReadReplica(clusterId string) ybmclient.ApiCreateReadReplicaRequest

func (*AuthApiClient) CreateVpc

func (*AuthApiClient) CreateVpcPeering

func (a *AuthApiClient) CreateVpcPeering() ybmclient.ApiCreateVpcPeeringRequest

func (*AuthApiClient) DeleteBackup

func (a *AuthApiClient) DeleteBackup(backupId string) ybmclient.ApiDeleteBackupRequest

func (*AuthApiClient) DeleteCdcSink

func (a *AuthApiClient) DeleteCdcSink(cdcSinkId string) ybmclient.ApiDeleteCdcSinkRequest

func (*AuthApiClient) DeleteCdcStream

func (a *AuthApiClient) DeleteCdcStream(cdcStreamId string, clusterId string) ybmclient.ApiDeleteCdcStreamRequest

func (*AuthApiClient) DeleteCluster

func (a *AuthApiClient) DeleteCluster(clusterId string) ybmclient.ApiDeleteClusterRequest

func (*AuthApiClient) DeleteNetworkAllowList

func (a *AuthApiClient) DeleteNetworkAllowList(allowListId string) ybmclient.ApiDeleteNetworkAllowListRequest

func (*AuthApiClient) DeleteReadReplica

func (a *AuthApiClient) DeleteReadReplica(clusterId string) ybmclient.ApiDeleteReadReplicaRequest

func (*AuthApiClient) DeleteVpc

func (a *AuthApiClient) DeleteVpc(vpcId string) ybmclient.ApiDeleteVpcRequest

func (*AuthApiClient) DeleteVpcPeering

func (a *AuthApiClient) DeleteVpcPeering(vpcPeeringId string) ybmclient.ApiDeleteVpcPeeringRequest

func (*AuthApiClient) EditCdcSink

func (a *AuthApiClient) EditCdcSink(cdcSinkId string) ybmclient.ApiEditCdcSinkRequest

func (*AuthApiClient) EditCdcStream

func (a *AuthApiClient) EditCdcStream(cdcStreamId string, clusterId string) ybmclient.ApiEditCdcStreamRequest

func (*AuthApiClient) EditCluster

func (a *AuthApiClient) EditCluster(clusterId string) ybmclient.ApiEditClusterRequest

func (*AuthApiClient) EditClusterNetworkAllowLists

func (a *AuthApiClient) EditClusterNetworkAllowLists(clusterId string, allowListIds []string) ybmclient.ApiEditClusterNetworkAllowListsRequest

func (*AuthApiClient) EditReadReplicas

func (a *AuthApiClient) EditReadReplicas(clusterId string) ybmclient.ApiEditReadReplicasRequest

func (*AuthApiClient) GetAccountID

func (a *AuthApiClient) GetAccountID(accountID string) (string, error)

func (*AuthApiClient) GetBackup

func (a *AuthApiClient) GetBackup(backupID string) ybmclient.ApiGetBackupRequest

func (*AuthApiClient) GetCdcSink

func (a *AuthApiClient) GetCdcSink(cdcSinkId string) ybmclient.ApiGetCdcSinkRequest

func (*AuthApiClient) GetCdcSinkIDBySinkName

func (a *AuthApiClient) GetCdcSinkIDBySinkName(cdcSinkName string) (string, error)

func (*AuthApiClient) GetCdcStream

func (a *AuthApiClient) GetCdcStream(cdcStreamId string, clusterId string) ybmclient.ApiGetCdcStreamRequest

func (*AuthApiClient) GetCdcStreamIDByStreamName

func (a *AuthApiClient) GetCdcStreamIDByStreamName(cdcStreamName string) (string, error)

func (*AuthApiClient) GetCluster

func (a *AuthApiClient) GetCluster(clusterId string) ybmclient.ApiGetClusterRequest

func (*AuthApiClient) GetClusterCloudById

func (a *AuthApiClient) GetClusterCloudById(clusterId string) (ybmclient.CloudEnum, error)

func (*AuthApiClient) GetClusterIdByName

func (a *AuthApiClient) GetClusterIdByName(clusterName string) (string, error)

func (*AuthApiClient) GetClusterVpcById

func (a *AuthApiClient) GetClusterVpcById(clusterId string) (string, error)

func (*AuthApiClient) GetFromInstanceType

func (a *AuthApiClient) GetFromInstanceType(resource string, cloud string, tier string, region string, numCores int32) (int32, error)

func (*AuthApiClient) GetInfo

func (a *AuthApiClient) GetInfo(providedAccountID string, providedProjectID string)

func (*AuthApiClient) GetNetworkAllowListIdByName

func (a *AuthApiClient) GetNetworkAllowListIdByName(networkAllowListName string) (string, error)

func (*AuthApiClient) GetProjectID

func (a *AuthApiClient) GetProjectID(projectID string) (string, error)

func (*AuthApiClient) GetSingleTenantVpc

func (a *AuthApiClient) GetSingleTenantVpc(vpcId string) ybmclient.ApiGetSingleTenantVpcRequest

func (*AuthApiClient) GetSupportedCloudRegions

func (a *AuthApiClient) GetSupportedCloudRegions() ybmclient.ApiGetSupportedCloudRegionsRequest

func (*AuthApiClient) GetSupportedInstanceTypes

func (a *AuthApiClient) GetSupportedInstanceTypes(cloud string, tier string, region string) ybmclient.ApiGetSupportedInstanceTypesRequest

func (*AuthApiClient) GetTrack

func (a *AuthApiClient) GetTrack(trackId string) ybmclient.ApiGetTrackRequest

func (*AuthApiClient) GetTrackIdByName

func (a *AuthApiClient) GetTrackIdByName(trackName string) (string, error)

func (*AuthApiClient) GetTrackNameById

func (a *AuthApiClient) GetTrackNameById(trackId string) (string, error)

func (*AuthApiClient) GetVpcIdByName

func (a *AuthApiClient) GetVpcIdByName(vpcName string) (string, error)

func (*AuthApiClient) GetVpcNameById

func (a *AuthApiClient) GetVpcNameById(vpcId string) (string, error)

func (*AuthApiClient) GetVpcPeering

func (a *AuthApiClient) GetVpcPeering(vpcPeeringID string) ybmclient.ApiGetVpcPeeringRequest

func (*AuthApiClient) ListAccounts

func (*AuthApiClient) ListBackups

func (*AuthApiClient) ListCdcSinks

func (*AuthApiClient) ListCdcStreamsForAccount

func (a *AuthApiClient) ListCdcStreamsForAccount() ybmclient.ApiListCdcStreamsForAccountRequest

func (*AuthApiClient) ListClusterNetworkAllowLists

func (a *AuthApiClient) ListClusterNetworkAllowLists(clusterId string) ybmclient.ApiListClusterNetworkAllowListsRequest

func (*AuthApiClient) ListClusters

func (*AuthApiClient) ListNetworkAllowLists

func (a *AuthApiClient) ListNetworkAllowLists() ybmclient.ApiListNetworkAllowListsRequest

func (*AuthApiClient) ListProjects

func (*AuthApiClient) ListReadReplicas

func (a *AuthApiClient) ListReadReplicas(clusterId string) ybmclient.ApiListReadReplicasRequest

func (*AuthApiClient) ListSingleTenantVpcs

func (a *AuthApiClient) ListSingleTenantVpcs() ybmclient.ApiListSingleTenantVpcsRequest

func (*AuthApiClient) ListSingleTenantVpcsByName

func (a *AuthApiClient) ListSingleTenantVpcsByName(name string) ybmclient.ApiListSingleTenantVpcsRequest

func (*AuthApiClient) ListTasks

func (*AuthApiClient) ListTracks

func (*AuthApiClient) ListVpcPeerings

func (a *AuthApiClient) ListVpcPeerings() ybmclient.ApiListVpcPeeringsRequest

func (*AuthApiClient) PauseCluster

func (a *AuthApiClient) PauseCluster(clusterId string) ybmclient.ApiPauseClusterRequest

func (*AuthApiClient) RestoreBackup

func (a *AuthApiClient) RestoreBackup() ybmclient.ApiRestoreBackupRequest

func (*AuthApiClient) ResumeCluster

func (a *AuthApiClient) ResumeCluster(clusterId string) ybmclient.ApiResumeClusterRequest

func (*AuthApiClient) WaitForTaskCompletion

func (a *AuthApiClient) WaitForTaskCompletion(entityId string, entityType string, taskType string, completionStatus []string, message string, timeOutInSec int) (string, error)

func (*AuthApiClient) WaitForTaskCompletionCI

func (a *AuthApiClient) WaitForTaskCompletionCI(entityId string, entityType string, taskType string, completionStatus []string, message string, timeOutInSec int) (string, error)

func (*AuthApiClient) WaitForTaskCompletionFull

func (a *AuthApiClient) WaitForTaskCompletionFull(entityId string, entityType string, taskType string, completionStatus []string, message string, timeOutInSec int) (string, error)

Jump to

Keyboard shortcuts

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