cmd_queue

package
v0.0.0-...-d7ecc2e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconcileAdd    = "add"
	ReconcileUpdate = "update"
	ReconcileDelete = "delete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DropDns

type DropDns struct {
	PriorityQueueItem
	Initiator meta.Object
}

DropDns specifies drop dns queue item

func NewDropDns

func NewDropDns(initiator meta.Object) *DropDns

NewDropDns creates new drop dns queue item

func (DropDns) Handle

func (r DropDns) Handle() queue.T

Handle returns handle of the queue item

type PriorityQueueItem

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

PriorityQueueItem specifies item of the priority queue

func (PriorityQueueItem) Priority

func (i PriorityQueueItem) Priority() int

Priority gets priority of the queue item

type ReconcileCHI

type ReconcileCHI struct {
	PriorityQueueItem
	Cmd string
	Old *api.ClickHouseInstallation
	New *api.ClickHouseInstallation
}

ReconcileCHI specifies reconcile request queue item

func NewReconcileCHI

func NewReconcileCHI(cmd string, old, new *api.ClickHouseInstallation) *ReconcileCHI

NewReconcileCHI creates new reconcile request queue item

func (ReconcileCHI) Handle

func (r ReconcileCHI) Handle() queue.T

Handle returns handle of the queue item

type ReconcileCHIT

ReconcileCHIT specifies reconcile CHI template queue item

func NewReconcileCHIT

func NewReconcileCHIT(cmd string, old, new *api.ClickHouseInstallationTemplate) *ReconcileCHIT

NewReconcileCHIT creates new reconcile CHI template queue item

func (ReconcileCHIT) Handle

func (r ReconcileCHIT) Handle() queue.T

Handle returns handle of the queue item

type ReconcileChopConfig

ReconcileChopConfig specifies CHOp config queue item

func NewReconcileChopConfig

func NewReconcileChopConfig(cmd string, old, new *api.ClickHouseOperatorConfiguration) *ReconcileChopConfig

NewReconcileChopConfig creates new CHOp config queue item

func (ReconcileChopConfig) Handle

func (r ReconcileChopConfig) Handle() queue.T

Handle returns handle of the queue item

type ReconcileEndpoints

type ReconcileEndpoints struct {
	PriorityQueueItem
	Cmd string
	Old *core.Endpoints
	New *core.Endpoints
}

ReconcileEndpoints specifies endpoint

func NewReconcileEndpoints

func NewReconcileEndpoints(cmd string, old, new *core.Endpoints) *ReconcileEndpoints

NewReconcileEndpoints creates new reconcile endpoints queue item

func (ReconcileEndpoints) Handle

func (r ReconcileEndpoints) Handle() queue.T

Handle returns handle of the queue item

type ReconcilePod

type ReconcilePod struct {
	PriorityQueueItem
	Cmd string
	Old *core.Pod
	New *core.Pod
}

ReconcilePod specifies pod reconcile

func NewReconcilePod

func NewReconcilePod(cmd string, old, new *core.Pod) *ReconcilePod

NewReconcilePod creates new reconcile endpoints queue item

func (ReconcilePod) Handle

func (r ReconcilePod) Handle() queue.T

Handle returns handle of the queue item

Jump to

Keyboard shortcuts

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