Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudCredential ¶
type CloudCredential struct { Name string `json:"name"` ProjectID string `json:"projectId"` ProviderID string `json:"providerId"` Cred CredType `json:"credential"` }
CloudCredential contains all parameters which should be passed to add cloud credential
type CredentialAdding ¶
type CredentialAdding struct { CloudName string CredName string Username string Password string // contains filtered or unexported fields }
CredentialAdding represent the fields required to add a credential
func NewCredentialsAdder ¶
func NewCredentialsAdder(cred CredentialAdding) *CredentialAdding
NewCredentialsAdder return fields value required to add a credential
func (*CredentialAdding) AddCloudCredential ¶
func (a *CredentialAdding) AddCloudCredential() error
AddCloudCredential method add backup providers credential
func (*CredentialAdding) AddCredential ¶
func (a *CredentialAdding) AddCredential() error
AddCredential method will add cloud provider credential
func (*CredentialAdding) FetchBackupProviderID ¶
func (a *CredentialAdding) FetchBackupProviderID() error
FetchBackupProviderID method sets backup provider ID
func (*CredentialAdding) FetchGroupProjectID ¶
func (a *CredentialAdding) FetchGroupProjectID() error
FetchGroupProjectID method sets group and project ID
func (*CredentialAdding) SetKuberaDetails ¶
func (a *CredentialAdding) SetKuberaDetails() error
SetKuberaDetails sets JWT token and Kubera url
Click to show internal directories.
Click to hide internal directories.