Documentation
¶
Index ¶
- func GetApiErrorDetails(err error) string
- func ParseURL(host string) (*url.URL, error)
- func SetVersion(version string)
- type AuthApiClient
- func (a *AuthApiClient) CreateBackup() ybmclient.ApiCreateBackupRequest
- func (a *AuthApiClient) CreateCdcSink() ybmclient.ApiCreateCdcSinkRequest
- func (a *AuthApiClient) CreateCdcStream(clusterId string) ybmclient.ApiCreateCdcStreamRequest
- func (a *AuthApiClient) CreateCluster() ybmclient.ApiCreateClusterRequest
- func (a *AuthApiClient) CreateClusterSpec(cmd *cobra.Command, regionInfoList []map[string]string) (*ybmclient.ClusterSpec, error)
- func (a *AuthApiClient) CreateNetworkAllowList() ybmclient.ApiCreateNetworkAllowListRequest
- func (a *AuthApiClient) CreateReadReplica(clusterId string) ybmclient.ApiCreateReadReplicaRequest
- func (a *AuthApiClient) CreateVpc() ybmclient.ApiCreateVpcRequest
- func (a *AuthApiClient) CreateVpcPeering() ybmclient.ApiCreateVpcPeeringRequest
- func (a *AuthApiClient) DeleteBackup(backupId string) ybmclient.ApiDeleteBackupRequest
- func (a *AuthApiClient) DeleteCdcSink(cdcSinkId string) ybmclient.ApiDeleteCdcSinkRequest
- func (a *AuthApiClient) DeleteCdcStream(cdcStreamId string, clusterId string) ybmclient.ApiDeleteCdcStreamRequest
- func (a *AuthApiClient) DeleteCluster(clusterId string) ybmclient.ApiDeleteClusterRequest
- func (a *AuthApiClient) DeleteNetworkAllowList(allowListId string) ybmclient.ApiDeleteNetworkAllowListRequest
- func (a *AuthApiClient) DeleteReadReplica(clusterId string) ybmclient.ApiDeleteReadReplicaRequest
- func (a *AuthApiClient) DeleteVpc(vpcId string) ybmclient.ApiDeleteVpcRequest
- func (a *AuthApiClient) DeleteVpcPeering(vpcPeeringId string) ybmclient.ApiDeleteVpcPeeringRequest
- func (a *AuthApiClient) EditCdcSink(cdcSinkId string) ybmclient.ApiEditCdcSinkRequest
- func (a *AuthApiClient) EditCdcStream(cdcStreamId string, clusterId string) ybmclient.ApiEditCdcStreamRequest
- func (a *AuthApiClient) EditCluster(clusterId string) ybmclient.ApiEditClusterRequest
- func (a *AuthApiClient) EditClusterNetworkAllowLists(clusterId string, allowListIds []string) ybmclient.ApiEditClusterNetworkAllowListsRequest
- func (a *AuthApiClient) EditReadReplicas(clusterId string) ybmclient.ApiEditReadReplicasRequest
- func (a *AuthApiClient) GetAccountID(accountID string) (string, error)
- func (a *AuthApiClient) GetBackup(backupID string) ybmclient.ApiGetBackupRequest
- func (a *AuthApiClient) GetCdcSink(cdcSinkId string) ybmclient.ApiGetCdcSinkRequest
- func (a *AuthApiClient) GetCdcSinkIDBySinkName(cdcSinkName string) (string, error)
- func (a *AuthApiClient) GetCdcStream(cdcStreamId string, clusterId string) ybmclient.ApiGetCdcStreamRequest
- func (a *AuthApiClient) GetCdcStreamIDByStreamName(cdcStreamName string) (string, error)
- func (a *AuthApiClient) GetCluster(clusterId string) ybmclient.ApiGetClusterRequest
- func (a *AuthApiClient) GetClusterCloudById(clusterId string) (ybmclient.CloudEnum, error)
- func (a *AuthApiClient) GetClusterIdByName(clusterName string) (string, error)
- func (a *AuthApiClient) GetClusterVpcById(clusterId string) (string, error)
- func (a *AuthApiClient) GetConnectionCertificate() (string, error)
- func (a *AuthApiClient) GetFromInstanceType(resource string, cloud string, tier string, region string, numCores int32) (int32, error)
- func (a *AuthApiClient) GetInfo(providedAccountID string, providedProjectID string)
- func (a *AuthApiClient) GetNetworkAllowListIdByName(networkAllowListName string) (string, error)
- func (a *AuthApiClient) GetProjectID(projectID string) (string, error)
- func (a *AuthApiClient) GetSingleTenantVpc(vpcId string) ybmclient.ApiGetSingleTenantVpcRequest
- func (a *AuthApiClient) GetSupportedCloudRegions() ybmclient.ApiGetSupportedCloudRegionsRequest
- func (a *AuthApiClient) GetSupportedInstanceTypes(cloud string, tier string, region string) ybmclient.ApiGetSupportedInstanceTypesRequest
- func (a *AuthApiClient) GetTrack(trackId string) ybmclient.ApiGetTrackRequest
- func (a *AuthApiClient) GetTrackIdByName(trackName string) (string, error)
- func (a *AuthApiClient) GetTrackNameById(trackId string) (string, error)
- func (a *AuthApiClient) GetVpcIdByName(vpcName string) (string, error)
- func (a *AuthApiClient) GetVpcNameById(vpcId string) (string, error)
- func (a *AuthApiClient) GetVpcPeering(vpcPeeringID string) ybmclient.ApiGetVpcPeeringRequest
- func (a *AuthApiClient) ListAccounts() ybmclient.ApiListAccountsRequest
- func (a *AuthApiClient) ListBackups() ybmclient.ApiListBackupsRequest
- func (a *AuthApiClient) ListCdcSinks() ybmclient.ApiListCdcSinksRequest
- func (a *AuthApiClient) ListCdcStreamsForAccount() ybmclient.ApiListCdcStreamsForAccountRequest
- func (a *AuthApiClient) ListClusterNetworkAllowLists(clusterId string) ybmclient.ApiListClusterNetworkAllowListsRequest
- func (a *AuthApiClient) ListClusters() ybmclient.ApiListClustersRequest
- func (a *AuthApiClient) ListNetworkAllowLists() ybmclient.ApiListNetworkAllowListsRequest
- func (a *AuthApiClient) ListProjects() ybmclient.ApiListProjectsRequest
- func (a *AuthApiClient) ListReadReplicas(clusterId string) ybmclient.ApiListReadReplicasRequest
- func (a *AuthApiClient) ListSingleTenantVpcs() ybmclient.ApiListSingleTenantVpcsRequest
- func (a *AuthApiClient) ListSingleTenantVpcsByName(name string) ybmclient.ApiListSingleTenantVpcsRequest
- func (a *AuthApiClient) ListTasks() ybmclient.ApiListTasksRequest
- func (a *AuthApiClient) ListTracks() ybmclient.ApiListTracksRequest
- func (a *AuthApiClient) ListVpcPeerings() ybmclient.ApiListVpcPeeringsRequest
- func (a *AuthApiClient) PauseCluster(clusterId string) ybmclient.ApiPauseClusterRequest
- func (a *AuthApiClient) RestoreBackup() ybmclient.ApiRestoreBackupRequest
- func (a *AuthApiClient) ResumeCluster(clusterId string) ybmclient.ApiResumeClusterRequest
- func (a *AuthApiClient) WaitForTaskCompletion(entityId string, entityType string, taskType string, completionStatus []string, ...) (string, error)
- func (a *AuthApiClient) WaitForTaskCompletionCI(entityId string, entityType string, taskType string, completionStatus []string, ...) (string, error)
- func (a *AuthApiClient) WaitForTaskCompletionFull(entityId string, entityType string, taskType string, completionStatus []string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApiErrorDetails ¶
GetApiErrorDetails will return the api Error message if present If not present will return the original err.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 (a *AuthApiClient) CreateBackup() ybmclient.ApiCreateBackupRequest
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 (a *AuthApiClient) CreateVpc() ybmclient.ApiCreateVpcRequest
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) GetConnectionCertificate ¶ added in v0.0.14
func (a *AuthApiClient) GetConnectionCertificate() (string, error)
func (*AuthApiClient) GetFromInstanceType ¶
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 (a *AuthApiClient) ListAccounts() ybmclient.ApiListAccountsRequest
func (*AuthApiClient) ListBackups ¶
func (a *AuthApiClient) ListBackups() ybmclient.ApiListBackupsRequest
func (*AuthApiClient) ListCdcSinks ¶
func (a *AuthApiClient) ListCdcSinks() ybmclient.ApiListCdcSinksRequest
func (*AuthApiClient) ListCdcStreamsForAccount ¶
func (a *AuthApiClient) ListCdcStreamsForAccount() ybmclient.ApiListCdcStreamsForAccountRequest
func (*AuthApiClient) ListClusterNetworkAllowLists ¶
func (a *AuthApiClient) ListClusterNetworkAllowLists(clusterId string) ybmclient.ApiListClusterNetworkAllowListsRequest
func (*AuthApiClient) ListClusters ¶
func (a *AuthApiClient) ListClusters() ybmclient.ApiListClustersRequest
func (*AuthApiClient) ListNetworkAllowLists ¶
func (a *AuthApiClient) ListNetworkAllowLists() ybmclient.ApiListNetworkAllowListsRequest
func (*AuthApiClient) ListProjects ¶
func (a *AuthApiClient) ListProjects() ybmclient.ApiListProjectsRequest
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 (a *AuthApiClient) ListTasks() ybmclient.ApiListTasksRequest
func (*AuthApiClient) ListTracks ¶
func (a *AuthApiClient) ListTracks() ybmclient.ApiListTracksRequest
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 (*AuthApiClient) WaitForTaskCompletionCI ¶
Click to show internal directories.
Click to hide internal directories.