resources

package
v0.3.9-9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 20 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
	Projects       TResource
	// contains filtered or unexported fields
}

func NewResources

func NewResources() *SResources

func (*SResources) CollectMetrics

func (self *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