connectionconfiginfomanager

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const KEY_COLUMN_NAME = "config_name"

====================================================================

Variables

This section is empty.

Functions

func CountAllConnections added in v0.8.17

func CountAllConnections() (int64, error)

func CountConnectionsByProvider added in v0.8.17

func CountConnectionsByProvider(providerName string) (int64, error)

func DeleteConnectionConfig

func DeleteConnectionConfig(configName string) (bool, error)

Types

type ConnectionConfigInfo

type ConnectionConfigInfo struct {
	ConfigName     string `json:"ConfigName" gorm:"primaryKey" validate:"required" example:"config01"` // The name of the connection configuration, used as a unique identifier.
	ProviderName   string `json:"ProviderName" validate:"required" example:"AWS"`                      // The name of the cloud provider (e.g., AWS, Azure, GCP).
	DriverName     string `json:"DriverName" validate:"required" example:"AWS-Test-Driver-V0.5"`       // The name of the cloud driver associated with this configuration.
	CredentialName string `json:"CredentialName" validate:"required" example:"credential01"`           // The name of the credential used for cloud authentication.
	RegionName     string `json:"RegionName" validate:"required" example:"region01"`                   // The name of the region for the cloud connection.
}

ConnectionConfigInfo represents the configuration information for cloud connection. @Description Information about the connection configuration used to connect to a specific cloud provider.

func CreateConnectionConfig

func CreateConnectionConfig(configName string,
	providerName string, driverName string, credentialName string, regionName string) (*ConnectionConfigInfo, error)

func CreateConnectionConfigInfo

func CreateConnectionConfigInfo(configInfo ConnectionConfigInfo) (*ConnectionConfigInfo, error)

1. check params 2. insert them into info-store

func GetConnectionConfig

func GetConnectionConfig(configName string) (*ConnectionConfigInfo, error)

1. check params 2. get ConnectionConfigInfo from info-store

func ListConnectionConfig

func ListConnectionConfig() ([]*ConnectionConfigInfo, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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