plz

package
v0.0.23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetScheme

func SetScheme(s *runtime.Scheme)

Types

type PLZWorker

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

PLZWorker is an internal representation of PrivateLoadZone, which is regularly polling GCk6 and can (in the future) receive async updates of the state through the channel

func NewPLZWorker

func NewPLZWorker(plz *v1alpha1.PrivateLoadZone, token string, k8sClient client.Client, logger logr.Logger) *PLZWorker

NewPLZWorker constructs a PLZWorker, create a template for test runs and creates a poller.

func (*PLZWorker) Deregister

func (w *PLZWorker) Deregister(ctx context.Context)

Deregister PLZ with the Cloud.

func (*PLZWorker) Register

func (w *PLZWorker) Register(ctx context.Context) (string, error)

Register PLZ with the Cloud.

func (*PLZWorker) StartFactory

func (w *PLZWorker) StartFactory()

StartFactory starts a poller and starts to watch the channel for new test runs.

func (*PLZWorker) StopFactory

func (w *PLZWorker) StopFactory()

StopFactory stops the poller

type PLZWorkers

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

PLZWorkers is a gathering point for multiple PLZ workers. Note: while PLZWorkers is thread-safe, a lone PLZWorker is not.

func (*PLZWorkers) AddWorker

func (w *PLZWorkers) AddWorker(name string, worker *PLZWorker) error

func (*PLZWorkers) DeleteWorker

func (w *PLZWorkers) DeleteWorker(name string)

func (*PLZWorkers) GetWorker

func (w *PLZWorkers) GetWorker(name string) (worker *PLZWorker, err error)

Jump to

Keyboard shortcuts

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