tasks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DailyQuotaCollector

type DailyQuotaCollector struct {
	// contains filtered or unexported fields
}

func NewDailyQuotaCollector

func NewDailyQuotaCollector(opts ...DailyQuotaCollectorOption) *DailyQuotaCollector

func (*DailyQuotaCollector) Task

func (d *DailyQuotaCollector) Task() (bool, error)

type DailyQuotaCollectorOption

type DailyQuotaCollectorOption func(collector *DailyQuotaCollector)

func DailyQuotaCollectorWithBundle

func DailyQuotaCollectorWithBundle(bndl *bundle.Bundle) DailyQuotaCollectorOption

func DailyQuotaCollectorWithCMPAPI

func DailyQuotaCollectorWithCMPAPI(cmp interface {
	ListSteveResource(ctx context.Context, req *apistructs.SteveRequest) ([]types.APIObject, error)
	GetNamespacesResources(ctx context.Context, nReq *pb.GetNamespacesResourcesRequest) (*pb.GetNamespacesResourcesResponse, error)
	GetClustersResources(ctx context.Context, cReq *pb.GetClustersResourcesRequest) (*pb.GetClusterResourcesResponse, error)
	GetAllClusters() []string
}) DailyQuotaCollectorOption

func DailyQuotaCollectorWithDBClient

func DailyQuotaCollectorWithDBClient(db *dbclient.DBClient) DailyQuotaCollectorOption

Jump to

Keyboard shortcuts

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