Documentation ¶
Index ¶
- Constants
- Variables
- func InitUsages()
- type AccessGroupManager
- type AccessGroupRuleManager
- type AppEnvironmentManager
- type AppManager
- type BackupStorageManager
- type CloudproviderQuotasManager
- type DBInstanceSkusManager
- type DiskBackupManager
- type ElasticCacheAccountManager
- type ElasticCacheManager
- type ElasticSearchManager
- type ElasticcacheSkusManager
- type FileSystemManager
- type GlobalVpcManager
- type HistoryUsageManager
- type HostManager
- func (this *HostManager) BatchRegister(s *mcclient.ClientSession, titles []string, params jsonutils.JSONObject) ([]printutils.SubmitResult, error)
- func (this *HostManager) DoBatchRegister(s *mcclient.ClientSession, params jsonutils.JSONObject) ([]printutils.SubmitResult, error)
- func (this *HostManager) GetIpmiInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *HostManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- type IUsageManager
- type InstanceBackupManager
- type InterVpcNetworkRouteSetManager
- type KafkaManager
- type KeypairManager
- type LoadbalancerAclManager
- type LoadbalancerAgentManager
- type LoadbalancerBackendGroupManager
- type LoadbalancerBackendManager
- type LoadbalancerCertificateManager
- type LoadbalancerClusterManager
- type LoadbalancerListenerManager
- type LoadbalancerListenerRuleManager
- type LoadbalancerManager
- type MetadataManager
- type MiscResourceManager
- type ModelartsPoolManager
- type ModelartsPoolSkuManager
- type MongoDBManager
- type MountTargetManager
- type NasSkusManager
- type NatSkusManager
- type OfflineCloudmetaManager
- type PolicyAssignmentManager
- type PolicyDefinitionManager
- type ProxySettingManager
- type ReservedIPManager
- type RouteTableAssociationManager
- type RouteTableManager
- type RouteTableRoutesetManager
- type SBucketManager
- type SCDNDomainManager
- type SCapabilityManager
- type SCloudDelegate
- type SCloudaccount
- type SCloudprovider
- type SCloudregionManager
- func (this *SCloudregionManager) GetCityServers(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *SCloudregionManager) GetRegionCities(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *SCloudregionManager) GetRegionProviders(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- type SDBInstanceAccountManager
- type SGuestTemplateManager
- type SServiceCatalog
- type SSshkeypairManager
- func (this *SSshkeypairManager) FetchKeypairBySession(ctx context.Context, s *mcclient.ClientSession) (*models.SshKeypair, error)
- func (this *SSshkeypairManager) FetchPrivateKey(ctx context.Context, userCred mcclient.TokenCredential) (string, error)
- func (this *SSshkeypairManager) FetchPrivateKeyBySession(ctx context.Context, s *mcclient.ClientSession) (string, error)
- func (this *SSshkeypairManager) List(s *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
- type SchedtagManager
- type ServerManager
- type ServerSkusManager
- type SkusManager
- type SpecsManager
- func (this *SpecsManager) GetAllSpecs(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *SpecsManager) GetHostSpecs(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *SpecsManager) GetIsolatedDevicesSpecs(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *SpecsManager) GetModelSpecs(s *mcclient.ClientSession, model string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *SpecsManager) GetObjects(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *SpecsManager) SpecsQueryModelObjects(s *mcclient.ClientSession, model string, specKeys []string, ...) (jsonutils.JSONObject, error)
- type TUsageManager
- type TasksManager
- func (this *TasksManager) List(session *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
- func (man TasksManager) TaskComplete(session *mcclient.ClientSession, taskId string, params jsonutils.JSONObject)
- func (man TasksManager) TaskFailed(session *mcclient.ClientSession, taskId string, err error)
- func (man TasksManager) TaskFailed2(session *mcclient.ClientSession, taskId string, reason string)
- func (man TasksManager) TaskFailed3(session *mcclient.ClientSession, taskId string, reason string, ...)
- type UsageManager
- func (this *UsageManager) GetGeneralUsage(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *UsageManager) GetIdentityUsage(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *UsageManager) GetImageUsage(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *UsageManager) GetK8sUsage(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
- func (this *UsageManager) GetManagerByType(t TUsageManager) IUsageManager
- func (this *UsageManager) RegisterManager(manType TUsageManager, man IUsageManager)
- type WorkerManager
Constants ¶
View Source
const MACAddressPattern = `(([a-fA-F0-9]{2}[:-]){5}([a-fA-F0-9]{2}))`
Variables ¶
View Source
var ( Apps AppManager AppEnvironments AppEnvironmentManager )
View Source
var ( DiskBackups DiskBackupManager BackupStorages BackupStorageManager InstanceBackups InstanceBackupManager )
View Source
var ( ElasticCache ElasticCacheManager ElasticCacheAccount ElasticCacheAccountManager ElasticCacheBackup modulebase.ResourceManager ElasticCacheAcl modulebase.ResourceManager ElasticCacheParameter modulebase.ResourceManager ElasticCacheSecgroup modulebase.JointResourceManager )
View Source
var ( ScalingGroup modulebase.ResourceManager ScalingPolicy modulebase.ResourceManager ScalingActivity modulebase.ResourceManager )
View Source
var ( Schedtaghosts modulebase.JointResourceManager Schedtagnetworks modulebase.JointResourceManager Schedtagcloudproviders modulebase.JointResourceManager Schedtagcloudregions modulebase.JointResourceManager Schedtagzones modulebase.JointResourceManager )
View Source
var ( // CloudmetaSkus SkusManager // meta.yunion.io OfflineCloudmeta OfflineCloudmetaManager // aliyun offine sku&rate data ServerSkus ServerSkusManager // region service: server sku manager ElasticcacheSkus ElasticcacheSkusManager // region service: elasitc cache sku manager )
View Source
var ( Usages *UsageManager HistoryUsages *HistoryUsageManager )
View Source
var (
Baremetalagents modulebase.ResourceManager
)
View Source
var (
Baremetalnetworks modulebase.JointResourceManager
)
View Source
var (
Baremetalstorages modulebase.JointResourceManager
)
View Source
var (
Cachedimages modulebase.ResourceManager
)
View Source
var (
CloudproviderregionManager modulebase.JointResourceManager
)
View Source
var (
DBInstance modulebase.ResourceManager
)
View Source
var (
DBInstanceBackups modulebase.ResourceManager
)
View Source
var (
DBInstanceDatabases modulebase.ResourceManager
)
View Source
var (
DBInstanceNetworks modulebase.JointResourceManager
)
View Source
var (
DBInstanceParameters modulebase.ResourceManager
)
View Source
var (
DBInstancePrivileges modulebase.ResourceManager
)
View Source
var (
Disks modulebase.ResourceManager
)
View Source
var (
DnsRecords modulebase.ResourceManager
)
View Source
var (
DnsZones modulebase.ResourceManager
)
View Source
var (
)
View Source
var (
Elasticips modulebase.ResourceManager
)
View Source
var (
ExternalProjects modulebase.ResourceManager
)
View Source
var (
HostBackupstorages modulebase.JointResourceManager
)
View Source
var (
HostIsolatedDeviceModels modulebase.JointResourceManager
)
View Source
var (
Hostcachedimages modulebase.JointResourceManager
)
View Source
var (
Hoststorages modulebase.JointResourceManager
)
View Source
var (
IPv6Gateways modulebase.ResourceManager
)
View Source
var (
InstanceGroupGuests modulebase.JointResourceManager
)
View Source
var (
InstanceGroups modulebase.ResourceManager
)
View Source
var (
InstanceSnapshots modulebase.ResourceManager
)
View Source
var (
InstancegroupNetworks modulebase.JointResourceManager
)
View Source
var (
InterVpcNetworks modulebase.ResourceManager
)
View Source
var (
IsolatedDeviceModels modulebase.ResourceManager
)
View Source
var (
IsolatedDevices modulebase.ResourceManager
)
View Source
var (
KubeClusters modulebase.ResourceManager
)
View Source
var (
KubeNodePools modulebase.ResourceManager
)
View Source
var (
KubeNodes modulebase.ResourceManager
)
View Source
var (
Loadbalancernetworks modulebase.JointResourceManager
)
View Source
var (
Logs modulebase.ResourceManager
)
View Source
var (
NatDTable modulebase.ResourceManager
)
View Source
var (
NatGateways modulebase.ResourceManager
)
View Source
var (
NatSTable modulebase.ResourceManager
)
View Source
var (
NetTapFlows modulebase.ResourceManager
)
View Source
var (
NetTapServices modulebase.ResourceManager
)
View Source
var (
NetworkAddresses modulebase.ResourceManager
)
View Source
var (
NetworkIpMacs modulebase.ResourceManager
)
View Source
var (
Networkinterfacenetworks modulebase.JointResourceManager
)
View Source
var (
Networkinterfaces modulebase.ResourceManager
)
View Source
var (
Networks modulebase.ResourceManager
)
View Source
var (
ProjectMappings modulebase.ResourceManager
)
View Source
var (
Schedpolicies modulebase.ResourceManager
)
View Source
var (
SecGroupRules modulebase.ResourceManager
)
View Source
var (
SecGroups modulebase.ResourceManager
)
View Source
var (
Serverdisks modulebase.JointResourceManager
)
View Source
var (
Servernetworks modulebase.JointResourceManager
)
View Source
var (
Serversecgroups modulebase.JointResourceManager
)
View Source
var (
SnapshotPoliciy modulebase.ResourceManager
)
View Source
var (
Snapshots modulebase.ResourceManager
)
View Source
var (
Storagecachedimages modulebase.JointResourceManager
)
View Source
var (
Storagecaches modulebase.ResourceManager
)
View Source
var (
Storages modulebase.ResourceManager
)
View Source
var (
Tablestores modulebase.ResourceManager
)
View Source
var (
VCenters modulebase.ResourceManager
)
View Source
var (
VpcPeeringConnections modulebase.ResourceManager
)
View Source
var (
Vpcs modulebase.ResourceManager
)
View Source
var (
WafIPSets modulebase.ResourceManager
)
View Source
var (
WafInstances modulebase.ResourceManager
)
View Source
var (
WafRegexSets modulebase.ResourceManager
)
View Source
var (
WafRuleGroups modulebase.ResourceManager
)
View Source
var (
WafRules modulebase.ResourceManager
)
View Source
var (
Wires modulebase.ResourceManager
)
View Source
var (
Zones modulebase.ResourceManager
)
Functions ¶
func InitUsages ¶
func InitUsages()
Types ¶
type AccessGroupManager ¶
type AccessGroupManager struct {
modulebase.ResourceManager
}
var (
AccessGroups AccessGroupManager
)
type AccessGroupRuleManager ¶
type AccessGroupRuleManager struct {
modulebase.ResourceManager
}
var (
AccessGroupRules AccessGroupRuleManager
)
type AppEnvironmentManager ¶
type AppEnvironmentManager struct {
modulebase.ResourceManager
}
type AppManager ¶
type AppManager struct {
modulebase.ResourceManager
}
type BackupStorageManager ¶
type BackupStorageManager struct {
modulebase.ResourceManager
}
type CloudproviderQuotasManager ¶
type CloudproviderQuotasManager struct {
modulebase.ResourceManager
}
var (
CloudproviderQuotas CloudproviderQuotasManager
)
type DBInstanceSkusManager ¶
type DBInstanceSkusManager struct {
modulebase.ResourceManager
}
var (
DBInstanceSkus DBInstanceSkusManager
)
type DiskBackupManager ¶
type DiskBackupManager struct {
modulebase.ResourceManager
}
type ElasticCacheAccountManager ¶
type ElasticCacheAccountManager struct {
modulebase.ResourceManager
}
func (*ElasticCacheAccountManager) GetLoginInfo ¶
func (self *ElasticCacheAccountManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type ElasticCacheManager ¶
type ElasticCacheManager struct {
modulebase.ResourceManager
}
func (*ElasticCacheManager) GetLoginInfo ¶
func (self *ElasticCacheManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type ElasticSearchManager ¶
type ElasticSearchManager struct {
modulebase.ResourceManager
}
var (
ElasticSearchs ElasticSearchManager
)
type ElasticcacheSkusManager ¶
type ElasticcacheSkusManager struct {
modulebase.ResourceManager
}
type FileSystemManager ¶
type FileSystemManager struct {
modulebase.ResourceManager
}
var (
FileSystems FileSystemManager
)
type GlobalVpcManager ¶
type GlobalVpcManager struct {
modulebase.ResourceManager
}
var (
GlobalVpcs GlobalVpcManager
)
type HistoryUsageManager ¶
type HistoryUsageManager struct { modulebase.ResourceManager // contains filtered or unexported fields }
func (*HistoryUsageManager) RegisterManager ¶
func (this *HistoryUsageManager) RegisterManager(manType TUsageManager, man IUsageManager)
type HostManager ¶
type HostManager struct {
modulebase.ResourceManager
}
var (
Hosts HostManager
)
func (*HostManager) BatchRegister ¶
func (this *HostManager) BatchRegister(s *mcclient.ClientSession, titles []string, params jsonutils.JSONObject) ([]printutils.SubmitResult, error)
func (*HostManager) DoBatchRegister ¶
func (this *HostManager) DoBatchRegister(s *mcclient.ClientSession, params jsonutils.JSONObject) ([]printutils.SubmitResult, error)
func (*HostManager) GetIpmiInfo ¶
func (this *HostManager) GetIpmiInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*HostManager) GetLoginInfo ¶
func (this *HostManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type IUsageManager ¶
type IUsageManager interface {
GetUsage(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
}
type InstanceBackupManager ¶
type InstanceBackupManager struct {
modulebase.ResourceManager
}
type InterVpcNetworkRouteSetManager ¶
type InterVpcNetworkRouteSetManager struct {
modulebase.ResourceManager
}
var (
InterVpcNetworkRouteSets InterVpcNetworkRouteSetManager
)
type KafkaManager ¶
type KafkaManager struct {
modulebase.ResourceManager
}
var (
Kafkas KafkaManager
)
type KeypairManager ¶
type KeypairManager struct {
modulebase.ResourceManager
}
var (
Keypairs KeypairManager
)
type LoadbalancerAclManager ¶
type LoadbalancerAclManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerAcls LoadbalancerAclManager
)
type LoadbalancerAgentManager ¶
type LoadbalancerAgentManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerAgents LoadbalancerAgentManager
)
type LoadbalancerBackendGroupManager ¶
type LoadbalancerBackendGroupManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerBackendGroups LoadbalancerBackendGroupManager
)
type LoadbalancerBackendManager ¶
type LoadbalancerBackendManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerBackends LoadbalancerBackendManager
)
type LoadbalancerCertificateManager ¶
type LoadbalancerCertificateManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerCertificates LoadbalancerCertificateManager
)
type LoadbalancerClusterManager ¶
type LoadbalancerClusterManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerClusters LoadbalancerClusterManager
)
type LoadbalancerListenerManager ¶
type LoadbalancerListenerManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerListeners LoadbalancerListenerManager
)
type LoadbalancerListenerRuleManager ¶
type LoadbalancerListenerRuleManager struct {
modulebase.ResourceManager
}
var (
LoadbalancerListenerRules LoadbalancerListenerRuleManager
)
type LoadbalancerManager ¶
type LoadbalancerManager struct {
modulebase.ResourceManager
}
var (
Loadbalancers LoadbalancerManager
)
type MetadataManager ¶
type MetadataManager struct {
modulebase.ResourceManager
}
var ( ComputeMetadatas MetadataManager IdentityMetadatas MetadataManager ImageMetadatas MetadataManager )
func (*MetadataManager) Get ¶
func (this *MetadataManager) Get(session *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*MetadataManager) List ¶
func (this *MetadataManager) List(session *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
type MiscResourceManager ¶
type MiscResourceManager struct {
modulebase.ResourceManager
}
var (
MiscResource MiscResourceManager
)
type ModelartsPoolManager ¶
type ModelartsPoolManager struct {
modulebase.ResourceManager
}
var (
ModelartsPools ModelartsPoolManager
)
type ModelartsPoolSkuManager ¶
type ModelartsPoolSkuManager struct {
modulebase.ResourceManager
}
var (
ModelartsPoolSku ModelartsPoolSkuManager
)
type MongoDBManager ¶
type MongoDBManager struct {
modulebase.ResourceManager
}
var (
MongoDB MongoDBManager
)
type MountTargetManager ¶
type MountTargetManager struct {
modulebase.ResourceManager
}
var (
MountTargets MountTargetManager
)
type NasSkusManager ¶
type NasSkusManager struct {
modulebase.ResourceManager
}
var (
NasSkus NasSkusManager
)
type NatSkusManager ¶
type NatSkusManager struct {
modulebase.ResourceManager
}
var (
NatSkus NatSkusManager
)
type OfflineCloudmetaManager ¶
type OfflineCloudmetaManager struct {
modulebase.ResourceManager
}
func (*OfflineCloudmetaManager) GetSkuIndex ¶
func (self *OfflineCloudmetaManager) GetSkuIndex(s *mcclient.ClientSession, client *http.Client, res string) (string, map[string]string, error)
func (*OfflineCloudmetaManager) GetSkuSourcesMeta ¶
func (self *OfflineCloudmetaManager) GetSkuSourcesMeta(s *mcclient.ClientSession, client *http.Client) (jsonutils.JSONObject, error)
type PolicyAssignmentManager ¶
type PolicyAssignmentManager struct {
modulebase.ResourceManager
}
var (
PolicyAssignment PolicyAssignmentManager
)
type PolicyDefinitionManager ¶
type PolicyDefinitionManager struct {
modulebase.ResourceManager
}
var (
PolicyDefinition PolicyDefinitionManager
)
type ProxySettingManager ¶
type ProxySettingManager struct {
modulebase.ResourceManager
}
var (
ProxySettings ProxySettingManager
)
type ReservedIPManager ¶
type ReservedIPManager struct {
modulebase.ResourceManager
}
var (
ReservedIPs ReservedIPManager
)
func (*ReservedIPManager) DoBatchReleaseReservedIps ¶
func (this *ReservedIPManager) DoBatchReleaseReservedIps(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type RouteTableAssociationManager ¶
type RouteTableAssociationManager struct {
modulebase.ResourceManager
}
var (
RouteTableRouteAssociations RouteTableAssociationManager
)
type RouteTableManager ¶
type RouteTableManager struct {
modulebase.ResourceManager
}
var (
RouteTables RouteTableManager
)
type RouteTableRoutesetManager ¶
type RouteTableRoutesetManager struct {
modulebase.ResourceManager
}
var (
RouteTableRouteSets RouteTableRoutesetManager
)
type SBucketManager ¶
type SBucketManager struct {
modulebase.ResourceManager
}
var (
Buckets SBucketManager
)
type SCDNDomainManager ¶
type SCDNDomainManager struct {
modulebase.ResourceManager
}
var (
CDNDomains SCDNDomainManager
)
type SCapabilityManager ¶
type SCapabilityManager struct {
modulebase.ResourceManager
}
var (
Capabilities SCapabilityManager
)
func (*SCapabilityManager) List ¶
func (this *SCapabilityManager) List(s *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
type SCloudDelegate ¶
type SCloudDelegate struct { Id string Name string Enabled bool Status string SyncStatus string CloudaccountId string AccessUrl string Account string Secret string Provider string Brand string ReadOnly bool Options struct { cloudprovider.SHCSOEndpoints Account string Password string } ProxySetting proxyapi.SProxySetting }
type SCloudaccount ¶
type SCloudaccount struct {
modulebase.ResourceManager
}
var (
Cloudaccounts SCloudaccount
)
func (*SCloudaccount) GetProvider ¶
func (self *SCloudaccount) GetProvider(ctx context.Context, s *mcclient.ClientSession, id string) (cloudprovider.ICloudProvider, error)
type SCloudprovider ¶
type SCloudprovider struct {
modulebase.ResourceManager
}
var (
Cloudproviders SCloudprovider
)
func (*SCloudprovider) GetProvider ¶
func (self *SCloudprovider) GetProvider(ctx context.Context, s *mcclient.ClientSession, id string) (cloudprovider.ICloudProvider, error)
type SCloudregionManager ¶
type SCloudregionManager struct {
modulebase.ResourceManager
}
var (
Cloudregions SCloudregionManager
)
func (*SCloudregionManager) GetCityServers ¶
func (this *SCloudregionManager) GetCityServers(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SCloudregionManager) GetRegionCities ¶
func (this *SCloudregionManager) GetRegionCities(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SCloudregionManager) GetRegionProviders ¶
func (this *SCloudregionManager) GetRegionProviders(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type SDBInstanceAccountManager ¶
type SDBInstanceAccountManager struct {
modulebase.ResourceManager
}
var (
DBInstanceAccounts SDBInstanceAccountManager
)
func (*SDBInstanceAccountManager) GetLoginInfo ¶
func (this *SDBInstanceAccountManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type SGuestTemplateManager ¶
type SGuestTemplateManager struct {
modulebase.ResourceManager
}
var GuestTemplate SGuestTemplateManager
type SServiceCatalog ¶
type SServiceCatalog struct {
modulebase.ResourceManager
}
var ServiceCatalog SServiceCatalog
type SSshkeypairManager ¶
type SSshkeypairManager struct {
modulebase.ResourceManager
}
var (
Sshkeypairs SSshkeypairManager
)
func (*SSshkeypairManager) FetchKeypairBySession ¶
func (this *SSshkeypairManager) FetchKeypairBySession(ctx context.Context, s *mcclient.ClientSession) (*models.SshKeypair, error)
func (*SSshkeypairManager) FetchPrivateKey ¶
func (this *SSshkeypairManager) FetchPrivateKey(ctx context.Context, userCred mcclient.TokenCredential) (string, error)
func (*SSshkeypairManager) FetchPrivateKeyBySession ¶
func (this *SSshkeypairManager) FetchPrivateKeyBySession(ctx context.Context, s *mcclient.ClientSession) (string, error)
func (*SSshkeypairManager) List ¶
func (this *SSshkeypairManager) List(s *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
type SchedtagManager ¶
type SchedtagManager struct {
modulebase.ResourceManager
}
var (
)func (*SchedtagManager) DoBatchSchedtagHostAddRemove ¶
func (this *SchedtagManager) DoBatchSchedtagHostAddRemove(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type ServerManager ¶
type ServerManager struct {
modulebase.ResourceManager
}
var (
Servers ServerManager
)
func (*ServerManager) DoChangeSetting ¶
func (this *ServerManager) DoChangeSetting(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*ServerManager) GetLoginInfo ¶
func (this *ServerManager) GetLoginInfo(s *mcclient.ClientSession, id string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type ServerSkusManager ¶
type ServerSkusManager struct {
modulebase.ResourceManager
}
type SkusManager ¶
type SkusManager struct {
modulebase.ResourceManager
}
func (*SkusManager) GetSkus ¶
func (self *SkusManager) GetSkus(s *mcclient.ClientSession, providerId, regionId, zoneId string, limit, offset int) (*printutils.ListResult, error)
type SpecsManager ¶
type SpecsManager struct {
modulebase.ResourceManager
}
var (
Specs SpecsManager
)
func (*SpecsManager) GetAllSpecs ¶
func (this *SpecsManager) GetAllSpecs(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SpecsManager) GetHostSpecs ¶
func (this *SpecsManager) GetHostSpecs(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SpecsManager) GetIsolatedDevicesSpecs ¶
func (this *SpecsManager) GetIsolatedDevicesSpecs(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SpecsManager) GetModelSpecs ¶
func (this *SpecsManager) GetModelSpecs(s *mcclient.ClientSession, model string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SpecsManager) GetObjects ¶
func (this *SpecsManager) GetObjects(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SpecsManager) SpecsQueryModelObjects ¶
func (this *SpecsManager) SpecsQueryModelObjects(s *mcclient.ClientSession, model string, specKeys []string, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
type TUsageManager ¶
type TUsageManager string
const ( UsageManagerImage TUsageManager = "image" UsageManagerIdentity TUsageManager = "identity" UsageManagerK8s TUsageManager = "k8s" )
type TasksManager ¶
type TasksManager struct {
modulebase.ResourceManager
}
var ( ComputeTasks TasksManager DevtoolTasks TasksManager )
func (*TasksManager) List ¶
func (this *TasksManager) List(session *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
func (TasksManager) TaskComplete ¶
func (man TasksManager) TaskComplete(session *mcclient.ClientSession, taskId string, params jsonutils.JSONObject)
func (TasksManager) TaskFailed ¶
func (man TasksManager) TaskFailed(session *mcclient.ClientSession, taskId string, err error)
func (TasksManager) TaskFailed2 ¶
func (man TasksManager) TaskFailed2(session *mcclient.ClientSession, taskId string, reason string)
func (TasksManager) TaskFailed3 ¶
func (man TasksManager) TaskFailed3(session *mcclient.ClientSession, taskId string, reason string, params *jsonutils.JSONDict)
type UsageManager ¶
type UsageManager struct { modulebase.ResourceManager // contains filtered or unexported fields }
func (*UsageManager) GetGeneralUsage ¶
func (this *UsageManager) GetGeneralUsage(session *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*UsageManager) GetIdentityUsage ¶
func (this *UsageManager) GetIdentityUsage(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*UsageManager) GetImageUsage ¶
func (this *UsageManager) GetImageUsage(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*UsageManager) GetK8sUsage ¶
func (this *UsageManager) GetK8sUsage(s *mcclient.ClientSession, params jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*UsageManager) GetManagerByType ¶
func (this *UsageManager) GetManagerByType(t TUsageManager) IUsageManager
func (*UsageManager) RegisterManager ¶
func (this *UsageManager) RegisterManager(manType TUsageManager, man IUsageManager)
type WorkerManager ¶
type WorkerManager struct {
modulebase.ResourceManager
}
var (
Workers WorkerManager
)
func (*WorkerManager) List ¶
func (this *WorkerManager) List(s *mcclient.ClientSession, params jsonutils.JSONObject) (*printutils.ListResult, error)
Source Files ¶
- doc.go
- mod_access_group_rules.go
- mod_access_groups.go
- mod_app.go
- mod_backup.go
- mod_baremetalagents.go
- mod_baremetalnetworks.go
- mod_baremetalstorages.go
- mod_buckets.go
- mod_cachedimages.go
- mod_capabilities.go
- mod_cdn_domains.go
- mod_cloudaccounts.go
- mod_cloudprovider_quotas.go
- mod_cloudproviderregions.go
- mod_cloudproviders.go
- mod_cloudregions.go
- mod_dbinstance_skus.go
- mod_dbinstanceaccounts.go
- mod_dbinstancebackups.go
- mod_dbinstancedatabases.go
- mod_dbinstancenetworks.go
- mod_dbinstanceparameters.go
- mod_dbinstanceprivileges.go
- mod_dbinstances.go
- mod_disks.go
- mod_dnsrecords.go
- mod_dnszone.go
- mod_dynamicschedtags.go
- mod_elastic_searchs.go
- mod_elasticcache.go
- mod_elasticips.go
- mod_externalprojects.go
- mod_filesystem.go
- mod_globalvpcs.go
- mod_guesttemplate.go
- mod_host_isolated_device_models.go
- mod_hostbackupstorages.go
- mod_hostcachedimages.go
- mod_hosts.go
- mod_hoststorages.go
- mod_instance_group.go
- mod_instance_group_guest.go
- mod_instance_group_networks.go
- mod_instance_snapshots.go
- mod_inter_vpc_network.go
- mod_inter_vpc_network_routeset.go
- mod_ipv6_gateways.go
- mod_isolated_device_models.go
- mod_isolatedevices.go
- mod_kafka.go
- mod_keypairs.go
- mod_kube_clusters.go
- mod_kube_node_pools.go
- mod_kube_nodes.go
- mod_loadbalanceracls.go
- mod_loadbalanceragents.go
- mod_loadbalancerbackendgroups.go
- mod_loadbalancerbackends.go
- mod_loadbalancercertificates.go
- mod_loadbalancerclusters.go
- mod_loadbalancerlistenerrules.go
- mod_loadbalancerlisteners.go
- mod_loadbalancernetworks.go
- mod_loadbalancers.go
- mod_logs.go
- mod_metadatas.go
- mod_misc_resources.go
- mod_modelart_pool_sku.go
- mod_modelart_pools.go
- mod_mongodb.go
- mod_mount_targets.go
- mod_nas_skus.go
- mod_nat_skus.go
- mod_natdtables.go
- mod_natgateways.go
- mod_natstables.go
- mod_network_ip_macs.go
- mod_networkaddresses.go
- mod_networkinterfacenetworks.go
- mod_networkinterfaces.go
- mod_networks.go
- mod_policy_assignments.go
- mod_policy_definitions.go
- mod_project_mappings.go
- mod_proxysettings.go
- mod_reservedips.go
- mod_routetable_association.go
- mod_routetable_routeset.go
- mod_routetables.go
- mod_scaling.go
- mod_schedpolicies.go
- mod_schedtaghosts.go
- mod_schedtags.go
- mod_secgrouprules.go
- mod_secgroups.go
- mod_serverdisks.go
- mod_servernetworks.go
- mod_servers.go
- mod_serversecgroups.go
- mod_servicecatalog.go
- mod_skus.go
- mod_snapshotpolicy.go
- mod_snapshots.go
- mod_specs.go
- mod_sshkeypairs.go
- mod_storagecachedimages.go
- mod_storagecaches.go
- mod_storages.go
- mod_tablestores.go
- mod_tap_flows.go
- mod_tap_services.go
- mod_tasks.go
- mod_usages.go
- mod_vcenters.go
- mod_vpc_peering_connection.go
- mod_vpcs.go
- mod_waf_instances.go
- mod_waf_ipsets.go
- mod_waf_regexsets.go
- mod_waf_rule_groups.go
- mod_waf_rules.go
- mod_wires.go
- mod_workers.go
- mod_zones.go
Click to show internal directories.
Click to hide internal directories.