resourcecomponent

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentsDiscoverTask

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

func NewComponentsDiscoverTask

func NewComponentsDiscoverTask(logger log.Logger, mc model.ClientSet) (in *ComponentsDiscoverTask, err error)

func (*ComponentsDiscoverTask) Process

func (in *ComponentsDiscoverTask) Process(ctx context.Context, args ...any) error

Process implements the Task interface, it will discover the components of managed instance resources.

Process fetches all connectors at first, and constructs the operator related to each connector. Then it will query the resources belong to each connector, and process the resources in batches concurrently according to the operator burst size.

type LabelApplyTask

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

func NewLabelApplyTask

func NewLabelApplyTask(logger log.Logger, mc model.ClientSet) (in *LabelApplyTask, err error)

func (*LabelApplyTask) Process

func (in *LabelApplyTask) Process(ctx context.Context, args ...any) error

Process implements the Task interface, it will label managed instance resources.

Process fetches all connectors at first, and constructs the operator related to each connector. Then it will query the resources belong to each connector, and process the resources in batches concurrently according to the operator burst size.

type StatusSyncTask

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

func NewStatusSyncTask

func NewStatusSyncTask(logger log.Logger, mc model.ClientSet) (in *StatusSyncTask, err error)

func (*StatusSyncTask) Process

func (in *StatusSyncTask) Process(ctx context.Context, args ...any) error

Jump to

Keyboard shortcuts

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