controller

package
v0.0.0-...-110f2a4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessfulInitializeClusterReason = "SuccessfulInitialize"
	SuccessfulScaleOutClusterReason   = "SuccessfulScaleOut"
	SuccessfulScaleInClusterReason    = "SuccessfulScaleIn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(
	ctx context.Context,
	kubeClient kubernetes.Interface,
	godisClient godisclientset.Interface,
	clusterInformer godisinformers.GodisClusterInformer,
	godisInformer godisinformers.GodisInformer,
	clusterClient GodisClusterClient) *Controller

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int) error

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shut down the workqueue and wait for workers to finish processing their current work items.

type GodisClusterClient

type GodisClusterClient interface {
	Meet(godises []*godisapis.Godis, newID int) error
	Forget(godises []*godisapis.Godis, deletedID int) error
}

func NewClient

func NewClient() GodisClusterClient

Directories

Path Synopsis
apis
godis/v1
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.
generated
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/godis/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/godis/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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