adminweb

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0, BSD-2-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PRICEINFO_CACHE_PATH string = os.Getenv("CBSPIDER_ROOT") + "/cache/priceinfo"

Functions

func BodyFrame added in v0.9.2

func BodyFrame(c echo.Context) error

BodyFrame renders the body frame

func ClusterManagement added in v0.9.6

func ClusterManagement(c echo.Context) error

func ClusterMgmt added in v0.6.16

func ClusterMgmt(c echo.Context) error

func ConnectionManagement added in v0.9.2

func ConnectionManagement(c echo.Context) error

func Connectionconfig

func Connectionconfig(c echo.Context) error

create Connection page

func Credential

func Credential(c echo.Context) error

================ Credential Info Management create credential page

func CredentialManagement added in v0.9.2

func CredentialManagement(c echo.Context) error

func Dashboard added in v0.8.17

func Dashboard(c echo.Context) error

Dashboard renders the dashboard page.

func DiskManagement added in v0.9.2

func DiskManagement(c echo.Context) error

Handler function to render the Disk management page

func DiskMgmt added in v0.6.7

func DiskMgmt(c echo.Context) error

func DownloadPriceInfo added in v0.8.6

func DownloadPriceInfo(c echo.Context) error

func Driver

func Driver(c echo.Context) error

================ Driver Info Management create driver page

func DriverManagement added in v0.9.2

func DriverManagement(c echo.Context) error

DriverManagement - Handles the management of drivers

func Frame

func Frame(c echo.Context) error

================ Frame

func HandleWebSocket added in v0.9.2

func HandleWebSocket(c echo.Context) error

func KeyPairManagement added in v0.9.2

func KeyPairManagement(c echo.Context) error

Handler function to render the KeyPair management page

func KeyPairMgmt

func KeyPairMgmt(c echo.Context) error

func LeftMenu added in v0.9.2

func LeftMenu(c echo.Context) error

LeftMenu renders the left menu

func Log added in v0.5.4

func Log(c echo.Context) error

================ Log Page

func MainPage added in v0.9.2

func MainPage(c echo.Context) error

MainPage renders the main page with iframes

func MyImageManagement added in v0.9.2

func MyImageManagement(c echo.Context) error

Handler function to render the MyImage management page

func MyImageMgmt added in v0.6.10

func MyImageMgmt(c echo.Context) error

func NLBManagement added in v0.9.5

func NLBManagement(c echo.Context) error

Handler function to render the NLB management page

func NLBMgmt added in v0.5.11

func NLBMgmt(c echo.Context) error

func PriceInfoRequest added in v0.8.2

func PriceInfoRequest(c echo.Context) error

func PriceInfoTableList added in v0.8.2

func PriceInfoTableList(c echo.Context) error

PriceInfoTableList handles the display of CloudPriceData to Table

func Region

func Region(c echo.Context) error

================ Region Info Management create region page

func RegionManagement added in v0.9.2

func RegionManagement(c echo.Context) error

func RegionZone added in v0.7.6

func RegionZone(c echo.Context) error

func SecurityGroupManagement added in v0.9.2

func SecurityGroupManagement(c echo.Context) error

Handler function to render the SecurityGroup management page

func SecurityGroupMgmt

func SecurityGroupMgmt(c echo.Context) error

func SpiderInfo

func SpiderInfo(c echo.Context) error

================ Spider Info

func SpiderletVMMointoring added in v0.9.8

func SpiderletVMMointoring(c echo.Context) error

func Top

func Top(c echo.Context) error

================ Top Page

func VMImage

func VMImage(c echo.Context) error

func VMManagement added in v0.9.2

func VMManagement(c echo.Context) error

func VMMgmt

func VMMgmt(c echo.Context) error

func VMMointoring added in v0.9.8

func VMMointoring(c echo.Context) error

func VMSpec

func VMSpec(c echo.Context) error

func VPCMgmt

func VPCMgmt(c echo.Context) error

func VPCSubnetManagement added in v0.9.2

func VPCSubnetManagement(c echo.Context) error

Handler function to render the VPC-Subnet management page

Types

type ConnectionConfig added in v0.8.17

type ConnectionConfig struct {
	ConfigName     string `json:"ConfigName"`
	ProviderName   string `json:"ProviderName"`
	DriverName     string `json:"DriverName"`
	CredentialName string `json:"CredentialName"`
	RegionName     string `json:"RegionName"`
}

================ Connection Config Info Management

type ConnectionConfigs added in v0.8.17

type ConnectionConfigs struct {
	ConnectionConfigs []ConnectionConfig `json:"connectionconfig"`
}

type CountResponse added in v0.8.17

type CountResponse struct {
	Count int `json:"count"`
}

type CredentialInfo added in v0.9.2

type CredentialInfo struct {
	CredentialName   string `json:"CredentialName"`
	ProviderName     string `json:"ProviderName"`
	KeyValueInfoList []struct {
		Key   string `json:"Key"`
		Value string `json:"Value"`
	} `json:"KeyValueInfoList"`
}

type CredentialMetaInfo added in v0.9.2

type CredentialMetaInfo struct {
	Credential []string `json:"Credential"`
}

type Credentials added in v0.9.2

type Credentials struct {
	Credentials []CredentialInfo `json:"credential"`
}

type DashboardData added in v0.8.17

type DashboardData struct {
	ServerIP           string
	TotalConnections   int
	ConnectionsByCloud map[string]int
	Providers          []string
	ResourceCounts     map[string][]ResourceCounts
	ShowEmpty          bool
}

DashboardData aggregates the data for rendering the dashboard

type DriverInfo added in v0.9.2

type DriverInfo struct {
	DriverName        string `json:"DriverName"`
	DriverLibFileName string `json:"DriverLibFileName"`
	ProviderName      string `json:"ProviderName"`
}

type Drivers added in v0.9.2

type Drivers struct {
	Drivers []DriverInfo `json:"driver"`
}

type NameWidth

type NameWidth struct {
	Name  string
	Width string
}

type Providers added in v0.9.2

type Providers struct {
	Providers []string `json:"cloudos"`
}

type RegionInfo added in v0.9.2

type RegionInfo struct {
	RegionName       string `json:"RegionName"`
	ProviderName     string `json:"ProviderName"`
	KeyValueInfoList []struct {
		Key   string `json:"Key"`
		Value string `json:"Value"`
	} `json:"KeyValueInfoList"`
}

type RegionMetaInfo added in v0.9.2

type RegionMetaInfo struct {
	Region []string `json:"Region"`
}

type Regions added in v0.9.2

type Regions struct {
	Regions []RegionInfo `json:"region"`
}

type ResourceCounts added in v0.8.17

type ResourceCounts struct {
	ConnectionName       string `json:"connectionName"`
	VPCs                 int    `json:"vpcs"`
	Subnets              int    `json:"subnets"`
	SecurityGroups       int    `json:"securityGroups"`
	VMs                  int    `json:"vms"`
	KeyPairs             int    `json:"keyPairs"`
	Disks                int    `json:"disks"`
	NetworkLoadBalancers int    `json:"nlbs"`
	Clusters             int    `json:"clusters"`
	MyImages             int    `json:"myImages"`
}

ResourceCounts holds the counts for various resources

type VMStatusMap added in v0.9.2

type VMStatusMap map[string]string

Jump to

Keyboard shortcuts

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