client

package
v0.0.0-...-55d440c Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostVersion

func GetHostVersion() string

GetHostVersion fetches the version of YBA Host

func GetVersion

func GetVersion() string

GetVersion fetches the version of YBA CLI

func ParseURL

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

ParseURL returns a URL if string is valid, or returns error

func SetHostVersion

func SetHostVersion(version string)

SetHostVersion assigns the version of YBA Host

func SetVersion

func SetVersion(version string)

SetVersion assigns the version of YBA CLI

Types

type AuthAPIClient

type AuthAPIClient struct {
	APIClient    *ybaclient.APIClient
	CustomerUUID string
	// contains filtered or unexported fields
}

AuthAPIClient contains authenticated api client and customer UUID

func NewAuthAPIClient

func NewAuthAPIClient() (*AuthAPIClient, error)

NewAuthAPIClient function is returning a new AuthAPIClient Client

func NewAuthAPIClientAndCustomer

func NewAuthAPIClientAndCustomer() *AuthAPIClient

NewAuthAPIClientAndCustomer before every command to access YBA host

func NewAuthAPIClientInitialize

func NewAuthAPIClientInitialize(url *url.URL, apiToken string) (*AuthAPIClient, error)

NewAuthAPIClientInitialize function is returning a new AuthAPIClient Client

func (*AuthAPIClient) AbortTask

AbortTask triggers abort task API

func (*AuthAPIClient) ApiLogin

ApiLogin fetches API Token and CustomerUUID

func (*AuthAPIClient) CheckValidYBAVersion

func (a *AuthAPIClient) CheckValidYBAVersion(versions YBAMinimumVersion) (bool,
	string, error)

CheckValidYBAVersion allows operation if version is higher than listed versions For releases older than 2024.1, keeping both stable and preview min version as the same version would provide the correct result For features on and after 2024.1, min stable and min preview must be different

func (*AuthAPIClient) CreateAllClusters

CreateAllClusters creates a universe with a minimum of 1 cluster

func (*AuthAPIClient) CreateBackup

CreateBackup creates backups associated with the universe

func (*AuthAPIClient) CreateBackupSchedule

func (*AuthAPIClient) CreateCustomerConfig

CreateCustomerConfig creates configs associated with the customer

func (*AuthAPIClient) CreateInstanceType

CreateInstanceType for onprem providers

func (*AuthAPIClient) CreateNodeInstance

CreateNodeInstance adds a node instance to an onprem provider

func (*AuthAPIClient) CreateProvider

CreateProvider calls the create provider API

func (*AuthAPIClient) DeleteBackupSchedule

func (a *AuthAPIClient) DeleteBackupSchedule(scheduleUUID string) ybaclient.ScheduleManagementApiApiDeleteScheduleV2Request

func (*AuthAPIClient) DeleteBackups

func (*AuthAPIClient) DeleteCustomerConfig

DeleteCustomerConfig deletes configs associated with the customer

func (*AuthAPIClient) DeleteInstance

DeleteInstance deletes the node instance from the onprem provider

func (*AuthAPIClient) DeleteInstanceType

func (a *AuthAPIClient) DeleteInstanceType(pUUID, instanceTypeName string) ybaclient.InstanceTypesApiApiDeleteInstanceTypeRequest

DeleteInstanceType for onprem providers

func (*AuthAPIClient) DeleteProvider

DeleteProvider deletes provider associated with the providerUUID

func (*AuthAPIClient) DeleteUniverse

DeleteUniverse deletes universe associated with the universeUUID

func (*AuthAPIClient) DetachedNodeAction

DetachedNodeAction deletes the node instance from the onprem provider

func (*AuthAPIClient) EditBackup

func (*AuthAPIClient) EditBackupSchedule

func (*AuthAPIClient) EditCustomerConfig

EditCustomerConfig edits configs associated with the customer

func (*AuthAPIClient) EditProvider

EditProvider edits the provider associated with the providerUUIS

func (*AuthAPIClient) GetAppVersion

GetAppVersion fetches YugabyteDB Anywhere version

func (*AuthAPIClient) GetBackupByTasKUUID

func (a *AuthAPIClient) GetBackupByTasKUUID(universeUUID string, taskUUID string) ybaclient.BackupsApiApiFetchBackupsByTaskUUIDRequest

func (*AuthAPIClient) GetBackupSchedule

func (a *AuthAPIClient) GetBackupSchedule(scheduleUUID string) ybaclient.ScheduleManagementApiApiGetScheduleRequest

func (*AuthAPIClient) GetCustomerTaskStatus

func (a *AuthAPIClient) GetCustomerTaskStatus(taskUUID string) ybaclient.CustomerTasksApiApiTaskStatusRequest

GetCustomerTaskStatus fetches the customer task status

func (*AuthAPIClient) GetCustomerUUID

func (a *AuthAPIClient) GetCustomerUUID() error

GetCustomerUUID fetches YugabyteDB Anywhere customer UUID

func (*AuthAPIClient) GetListOfCertificates

GetListOfCertificates fetches list of certificates associated with the customer

func (*AuthAPIClient) GetListOfCustomerConfig

GetListOfCustomerConfig fetches list of configs associated with the customer

func (*AuthAPIClient) GetListOfProviders

GetListOfProviders fetches list of providers associated with the customer

func (*AuthAPIClient) GetListOfReleases

func (a *AuthAPIClient) GetListOfReleases(includeMetadata bool) ybaclient.ReleaseManagementApiApiGetListOfReleasesRequest

GetListOfReleases API to fetch list of releases

func (*AuthAPIClient) GetNodeDetails

GetNodeDetails fetches a node based on UUID

func (*AuthAPIClient) GetNodeInstance

GetNodeInstance fetches a node based on UUID

func (*AuthAPIClient) GetProvider

GetProvider fetches provider associated with the customer and providerUUID

func (*AuthAPIClient) GetRegion

GetRegion fetches region list of a provider

func (*AuthAPIClient) GetRestore

func (*AuthAPIClient) GetSessionInfo

GetSessionInfo fetches YugabyteDB Anywhere session info

func (*AuthAPIClient) GetUniverse

GetUniverse fetches of universe associated with the universeUUID

func (*AuthAPIClient) InstanceTypeDetail

func (a *AuthAPIClient) InstanceTypeDetail(pUUID, instanceTypeName string) ybaclient.InstanceTypesApiApiInstanceTypeDetailRequest

InstanceTypeDetail fetches details of the instance type in an onprem provider

func (*AuthAPIClient) IsCLISupported

func (a *AuthAPIClient) IsCLISupported()

func (*AuthAPIClient) List

List fetches the list of access keys associated with the provider

func (*AuthAPIClient) ListBackupSchedules

func (*AuthAPIClient) ListBackups

List Backups

func (*AuthAPIClient) ListByProvider

ListByProvider fetches node instances associated to an onprem provider

func (*AuthAPIClient) ListFailedSubtasks

ListFailedSubtasks fetches the customer failed task status

func (*AuthAPIClient) ListIncrementalBackups

func (a *AuthAPIClient) ListIncrementalBackups(backupUUID string) ybaclient.BackupsApiApiListIncrementalBackupsRequest

func (*AuthAPIClient) ListKMSConfigs

ListKMSConfigs fetches list of universes associated with the customer

func (*AuthAPIClient) ListOfAZ

ListOfAZ fetches az list of a provider region

func (*AuthAPIClient) ListOfInstanceType

ListOfInstanceType fetches the list of instance types associated with the provider (for onprem)

func (*AuthAPIClient) ListRestores

func (*AuthAPIClient) ListUniverses

ListUniverses fetches list of universes associated with the customer

func (*AuthAPIClient) NewProviderYBAVersionCheck

func (a *AuthAPIClient) NewProviderYBAVersionCheck() (bool, string, error)

NewProviderYBAVersionCheck checks if the new API request body can be used for the Create Provider API

func (*AuthAPIClient) NodeAction

func (a *AuthAPIClient) NodeAction(uUUID, nodeName string) ybaclient.NodeInstancesApiApiNodeActionRequest

NodeAction for the node operations for universes

func (*AuthAPIClient) Refresh

Refresh the releases page to get the latest YugabyteDB releases

func (*AuthAPIClient) RegisterCustomer

RegisterCustomer registers a YugabyteDB Anywhere customer

func (*AuthAPIClient) RestartUniverse

RestartUniverse for restart operation

func (*AuthAPIClient) RestoreBackup

func (*AuthAPIClient) RetryTask

RetryTask triggers retry universe/provider API

func (*AuthAPIClient) TasksList

TasksList triggers abort task API

func (*AuthAPIClient) UniverseYBAVersionCheck

func (a *AuthAPIClient) UniverseYBAVersionCheck() (bool, string, error)

UniverseYBAVersionCheck checks if the new API request body can be used for the Create Provider API

func (*AuthAPIClient) UpgradeGFlags

UpgradeGFlags upgrades the universe gflags

func (*AuthAPIClient) UpgradeSoftware

UpgradeSoftware upgrades the universe YugabyteDB version

func (*AuthAPIClient) WaitForTask

func (a *AuthAPIClient) WaitForTask(taskUUID, message string) error

WaitForTask waits for state changes for a YugabyteDB Anywhere task

func (*AuthAPIClient) WaitForTaskCI

func (a *AuthAPIClient) WaitForTaskCI(taskUUID, message string) error

WaitForTaskCI waits for State change for a YugabyteDB Anywhere task for CI

func (*AuthAPIClient) WaitForTaskProgressBar

func (a *AuthAPIClient) WaitForTaskProgressBar(taskUUID, message string) error

WaitForTaskProgressBar waits for State change for a YugabyteDB Anywhere task

type YBAMinimumVersion

type YBAMinimumVersion struct {
	Stable  string
	Preview string
}

Jump to

Keyboard shortcuts

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