Documentation
¶
Index ¶
- Variables
- func BodyFrame(c echo.Context) error
- func ClusterManagement(c echo.Context) error
- func ClusterMgmt(c echo.Context) error
- func ConnectionManagement(c echo.Context) error
- func Connectionconfig(c echo.Context) error
- func Credential(c echo.Context) error
- func CredentialManagement(c echo.Context) error
- func Dashboard(c echo.Context) error
- func DiskManagement(c echo.Context) error
- func DiskMgmt(c echo.Context) error
- func DownloadPriceInfo(c echo.Context) error
- func Driver(c echo.Context) error
- func DriverManagement(c echo.Context) error
- func FileSystemManagement(c echo.Context) error
- func Frame(c echo.Context) error
- func HandleWebSocket(c echo.Context) error
- func KeyPairManagement(c echo.Context) error
- func KeyPairMgmt(c echo.Context) error
- func LeftMenu(c echo.Context) error
- func Log(c echo.Context) error
- func MainPage(c echo.Context) error
- func MyImageManagement(c echo.Context) error
- func MyImageMgmt(c echo.Context) error
- func NLBManagement(c echo.Context) error
- func NLBMgmt(c echo.Context) error
- func PriceInfoRequest(c echo.Context) error
- func PriceInfoTableList(c echo.Context) error
- func Region(c echo.Context) error
- func RegionManagement(c echo.Context) error
- func RegionZone(c echo.Context) error
- func S3Management(c echo.Context) error
- func SecurityGroupManagement(c echo.Context) error
- func SecurityGroupMgmt(c echo.Context) error
- func SpiderInfo(c echo.Context) error
- func SpiderletVMMointoring(c echo.Context) error
- func SystemStatsInfoPage(c echo.Context) error
- func Top(c echo.Context) error
- func VMImage(c echo.Context) error
- func VMManagement(c echo.Context) error
- func VMMgmt(c echo.Context) error
- func VMMointoring(c echo.Context) error
- func VMSpec(c echo.Context) error
- func VPCMgmt(c echo.Context) error
- func VPCSubnetManagement(c echo.Context) error
- type ClaudeContent
- type ClaudeMessage
- type ClaudeRequestBody
- type ConnectionConfig
- type ConnectionConfigs
- type CountResponse
- type CredentialInfo
- type CredentialMetaInfo
- type Credentials
- type DashboardData
- type DiskPartitionInfo
- type DriverInfo
- type Drivers
- type FileSystemInfo
- type IID
- type KeyValue
- type NameWidth
- type Providers
- type RegionInfo
- type RegionMetaInfo
- type Regions
- type ResourceCounts
- type ResourceUsage
- type S3BucketInfo
- type S3ObjectInfo
- type SystemInfo
- type TemplateData
- type VMStatusMap
Constants ¶
This section is empty.
Variables ¶
var PRICEINFO_CACHE_PATH string = os.Getenv("CBSPIDER_ROOT") + "/cache/priceinfo"
Functions ¶
func ClusterManagement ¶ added in v0.9.6
func ClusterMgmt ¶ added in v0.6.16
func ConnectionManagement ¶ added in v0.9.2
func Credential ¶
================ Credential Info Management create credential page
func CredentialManagement ¶ added in v0.9.2
func DiskManagement ¶ added in v0.9.2
Handler function to render the Disk management page
func DownloadPriceInfo ¶ added in v0.8.6
func DriverManagement ¶ added in v0.9.2
DriverManagement - Handles the management of drivers
func FileSystemManagement ¶ added in v0.12.5
func HandleWebSocket ¶ added in v0.9.2
func KeyPairManagement ¶ added in v0.9.2
Handler function to render the KeyPair management page
func KeyPairMgmt ¶
func MyImageManagement ¶ added in v0.9.2
Handler function to render the MyImage management page
func MyImageMgmt ¶ added in v0.6.10
func NLBManagement ¶ added in v0.9.5
Handler function to render the NLB management page
func PriceInfoRequest ¶ added in v0.8.2
func PriceInfoTableList ¶ added in v0.8.2
PriceInfoTableList handles the display of CloudPrice to Table
func RegionManagement ¶ added in v0.9.2
func RegionZone ¶ added in v0.7.6
func S3Management ¶ added in v0.10.8
func SecurityGroupManagement ¶ added in v0.9.2
Handler function to render the SecurityGroup management page
func SecurityGroupMgmt ¶
func SpiderletVMMointoring ¶ added in v0.9.8
func SystemStatsInfoPage ¶ added in v0.10.4
Handler function to render the Combined System Information and Resource Usage page
func VMManagement ¶ added in v0.9.2
func VMMointoring ¶ added in v0.9.8
func VPCSubnetManagement ¶ added in v0.9.2
Handler function to render the VPC-Subnet management page
Types ¶
type ClaudeContent ¶ added in v0.10.3
type ClaudeMessage ¶ added in v0.10.3
type ClaudeMessage struct {
Role string `json:"role"`
Content []ClaudeContent `json:"content"`
}
------------------- Data Structures for Claude -------------------
type ClaudeRequestBody ¶ added in v0.10.3
type ClaudeRequestBody struct {
Model string `json:"model"`
MaxTokens int `json:"max_tokens"`
Temperature float64 `json:"temperature"`
System string `json:"system"`
Messages []ClaudeMessage `json:"messages"`
}
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 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
Regions map[string]string
ShowEmpty bool
}
DashboardData aggregates the data for rendering the dashboard
type DiskPartitionInfo ¶ added in v0.10.4
DiskPartitionInfo structure for disk partition information
type DriverInfo ¶ added in v0.9.2
type Drivers ¶ added in v0.9.2
type Drivers struct {
Drivers []DriverInfo `json:"driver"`
}
type FileSystemInfo ¶ added in v0.12.5
type FileSystemInfo struct {
IId IID `json:"IId"`
Name string `json:"Name"`
Zone string `json:"Zone"`
VpcIID IID `json:"VpcIID"`
FileSystemType string `json:"FileSystemType"`
Status string `json:"Status"`
CreatedTime string `json:"CreatedTime"`
AccessSubnets []IID `json:"AccessSubnets,omitempty"`
KeyValueList []KeyValue `json:"KeyValueList,omitempty"`
}
type RegionInfo ¶ added in v0.9.2
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"`
RegionName string `json:"regionName"`
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"`
S3Buckets int `json:"s3Buckets"`
}
ResourceCounts holds the counts for various resources
type ResourceUsage ¶ added in v0.10.4
type ResourceUsage struct {
ProcessCPUCorePercent map[string]string
ProcessCPUPercent string
ProcessDiskRead string
ProcessDiskWrite string
ProcessMemoryPercent string
ProcessMemoryUsed string
ProcessName string
ProcessNetReceived string
ProcessNetSent string
SystemCPUCorePercent map[string]string
SystemCPUPercent string
SystemDiskRead string
SystemDiskWrite string
SystemMemoryPercent string
SystemMemoryTotal string
SystemMemoryUsed string
SystemNetReceived string
SystemNetSent string
}
ResourceUsage structure mapping from the API response
type S3BucketInfo ¶ added in v0.10.8
type S3ObjectInfo ¶ added in v0.10.8
type SystemInfo ¶ added in v0.10.4
type SystemInfo struct {
CPUModel string
ClockSpeed string
DiskPartitions []DiskPartitionInfo
Hostname string
KernelArch string
KernelVersion string
LogicalCores int
PhysicalCores int
Platform string
PlatformVersion string
SwapMemory string
TotalMemory string
Uptime string
}
SystemInfo structure mapping from the API response
type TemplateData ¶ added in v0.11.9
type TemplateData struct {
Data cres.CloudPrice
CachedFileName string
TotalItems int
SimpleMode string
}
TemplateData structure to render the HTML template
type VMStatusMap ¶ added in v0.9.2
Source Files
¶
- AdminWeb-CIM.go
- AdminWeb-Cluster.go
- AdminWeb-Common.go
- AdminWeb-Connection.go
- AdminWeb-Credential.go
- AdminWeb-Dashboard.go
- AdminWeb-Disk.go
- AdminWeb-Driver.go
- AdminWeb-FileSystem.go
- AdminWeb-Frame.go
- AdminWeb-KeyPair.go
- AdminWeb-MGMT.go
- AdminWeb-Main.go
- AdminWeb-MyImage.go
- AdminWeb-NLB.go
- AdminWeb-PriceInfo-Request.go
- AdminWeb-PriceInfo-TableList.go
- AdminWeb-PublicImage.go
- AdminWeb-Region.go
- AdminWeb-RegionZone.go
- AdminWeb-S3.go
- AdminWeb-SSHWebTerminal.go
- AdminWeb-SecurityGroup.go
- AdminWeb-SystemStats.go
- AdminWeb-VM.go
- AdminWeb-VMMon.go
- AdminWeb-VMSpec.go
- AdminWeb-VPC-Subnet.go