resources

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

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)

type TResource

type TResource interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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