multicluster

package
v0.9.1-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assign

func Assign(ctx context.Context, obj client.Object, ordinal func() int) client.Object

func FromContext

func FromContext(ctx context.Context) (string, error)

func IntoContext

func IntoContext(ctx context.Context, placement string) context.Context

func NewClient

func NewClient(control client.Client, workers map[string]client.Client) client.Client

Types

type ClientOption

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

func InControlContext

func InControlContext() *ClientOption

func InDataContext

func InDataContext() *ClientOption

func InDataContextUnspecified

func InDataContextUnspecified() *ClientOption

func InUniversalContext

func InUniversalContext() *ClientOption

func MultiCheck

func MultiCheck() *ClientOption

func Oneshot

func Oneshot() *ClientOption

func (*ClientOption) ApplyToCreate

func (o *ClientOption) ApplyToCreate(*client.CreateOptions)

func (*ClientOption) ApplyToDelete

func (o *ClientOption) ApplyToDelete(*client.DeleteOptions)

func (*ClientOption) ApplyToDeleteAllOf

func (o *ClientOption) ApplyToDeleteAllOf(*client.DeleteAllOfOptions)

func (*ClientOption) ApplyToGet

func (o *ClientOption) ApplyToGet(*client.GetOptions)

func (*ClientOption) ApplyToList

func (o *ClientOption) ApplyToList(*client.ListOptions)

func (*ClientOption) ApplyToPatch

func (o *ClientOption) ApplyToPatch(*client.PatchOptions)

func (*ClientOption) ApplyToSubResourceCreate

func (o *ClientOption) ApplyToSubResourceCreate(*client.SubResourceCreateOptions)

func (*ClientOption) ApplyToSubResourceGet

func (o *ClientOption) ApplyToSubResourceGet(*client.SubResourceGetOptions)

func (*ClientOption) ApplyToSubResourcePatch

func (o *ClientOption) ApplyToSubResourcePatch(*client.SubResourcePatchOptions)

func (*ClientOption) ApplyToSubResourceUpdate

func (o *ClientOption) ApplyToSubResourceUpdate(*client.SubResourceUpdateOptions)

func (*ClientOption) ApplyToUpdate

func (o *ClientOption) ApplyToUpdate(*client.UpdateOptions)

type Manager

type Manager interface {
	GetClient() client.Client

	GetContexts() []string

	Bind(mgr ctrl.Manager) error

	Own(b *builder.Builder, obj, owner client.Object) Manager

	Watch(b *builder.Builder, obj client.Object, eventHandler handler.EventHandler) Manager
}

func Setup

func Setup(scheme *runtime.Scheme, cfg *rest.Config, cli client.Client, kubeConfig, contexts, disabledContexts string) (Manager, error)

Jump to

Keyboard shortcuts

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