Documentation ¶
Index ¶
- type SBaseResources
- type SResources
- func (res *SResources) CollectMetrics(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SResources) DecrementSync(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- func (self *SResources) IncrementSync(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- func (self *SResources) Init(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- func (self *SResources) IsInit() bool
- func (self *SResources) UpdateSync(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
- type TResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SBaseResources ¶
type SBaseResources struct { Resources map[string]jsonutils.JSONObject ProviderResources map[string]map[string]jsonutils.JSONObject // contains filtered or unexported fields }
func NewBaseResources ¶
func NewBaseResources(manager modulebase.Manager) *SBaseResources
type SResources ¶
type SResources struct { Cloudaccounts TResource Cloudproviders TResource DBInstances TResource Servers TResource Hosts TResource Redis TResource Loadbalancers TResource Buckets TResource KubeClusters TResource Storages TResource ModelartsPool TResource Wires TResource Projects TResource ElasticIps TResource // contains filtered or unexported fields }
func NewResources ¶
func NewResources() *SResources
func (*SResources) CollectMetrics ¶
func (res *SResources) CollectMetrics(ctx context.Context, userCred mcclient.TokenCredential, taskStartTime time.Time, isStart bool)
func (*SResources) DecrementSync ¶
func (self *SResources) DecrementSync(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
func (*SResources) IncrementSync ¶
func (self *SResources) IncrementSync(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
func (*SResources) Init ¶
func (self *SResources) Init(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
func (*SResources) IsInit ¶
func (self *SResources) IsInit() bool
func (*SResources) UpdateSync ¶
func (self *SResources) UpdateSync(ctx context.Context, userCred mcclient.TokenCredential, isStart bool)
Click to show internal directories.
Click to hide internal directories.