multicluster

package
v0.9.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

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

func IntoContext

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

func NewClient

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

Types

type ClientOption

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

func InGlobalContext

func InGlobalContext() *ClientOption

func InLocalContext

func InLocalContext() *ClientOption

func InLocalContextOneshot

func InLocalContextOneshot() *ClientOption

func InLocalContextUnspecified

func InLocalContextUnspecified() *ClientOption

func InUniversalContext

func InUniversalContext() *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

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

func Setup

func Setup(scheme *runtime.Scheme, cli client.Client, kubeContexts string) (Manager, error)

Jump to

Keyboard shortcuts

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