credentials

package
v0.0.0-...-a198cfb Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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 CredType

type CredType struct {
	AccessID  string `json:"access_id"`
	SecretKey string `json:"secret_key"`
}

CredType is cloud provider access id and secret key

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

Jump to

Keyboard shortcuts

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