runtime

package
v0.0.0-...-30d1bac Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIvoryOperatorScheme

func CreateIvoryOperatorScheme() (*runtime.Scheme, error)

CreateIvoryOperatorScheme creates a scheme containing the resource types required by the IvorySQL Operator. This includes any custom resource types specific to the IvorySQL Operator, as well as any standard Kubernetes resource types.

func CreateRuntimeManager

func CreateRuntimeManager(namespace string, config *rest.Config,
	disableMetrics bool) (manager.Manager, error)

CreateRuntimeManager creates a new controller runtime manager for the IvorySQL Operator. The manager returned is configured specifically for the IvorySQL Operator, and includes any controllers that will be responsible for managing IvorySQL clusters using the 'ivorycluster' custom resource. Additionally, the manager will only watch for resources in the namespace specified, with an empty string resulting in the manager watching all namespaces.

func GetConfig

func GetConfig() (*rest.Config, error)

GetConfig creates a *rest.Config for talking to a Kubernetes API server.

func NewTicker

func NewTicker(d time.Duration, e event.GenericEvent) source.Source

NewTicker returns a Source that emits e every d.

func NewTickerImmediate

func NewTickerImmediate(d time.Duration, e event.GenericEvent) source.Source

NewTickerImmediate returns a Source that emits e at start and every d.

Types

type ClientCreate

type ClientCreate func(context.Context, client.Object, ...client.CreateOption) error

Types that implement single methods of the client.Writer interface.

func (ClientCreate) Create

func (fn ClientCreate) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

type ClientDelete

type ClientDelete func(context.Context, client.Object, ...client.DeleteOption) error

Types that implement single methods of the client.Writer interface.

func (ClientDelete) Delete

func (fn ClientDelete) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

type ClientDeleteAll

type ClientDeleteAll func(context.Context, client.Object, ...client.DeleteAllOfOption) error

Types that implement single methods of the client.Writer interface.

func (ClientDeleteAll) DeleteAllOf

func (fn ClientDeleteAll) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

type ClientGet

type ClientGet func(context.Context, client.ObjectKey, client.Object) error

Types that implement single methods of the client.Reader interface.

func (ClientGet) Get

func (fn ClientGet) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error

type ClientList

type ClientList func(context.Context, client.ObjectList, ...client.ListOption) error

Types that implement single methods of the client.Reader interface.

func (ClientList) List

func (fn ClientList) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

type ClientPatch

Types that implement single methods of the client.Writer interface.

func (ClientPatch) Patch

func (fn ClientPatch) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

type ClientReader

type ClientReader struct {
	ClientGet
	ClientList
}

ClientReader implements client.Reader by composing assignable functions.

type ClientUpdate

type ClientUpdate func(context.Context, client.Object, ...client.UpdateOption) error

Types that implement single methods of the client.Writer interface.

func (ClientUpdate) Update

func (fn ClientUpdate) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type ClientWriter

ClientWriter implements client.Writer by composing assignable functions.

Jump to

Keyboard shortcuts

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