providerkcp

package
v0.0.0-...-958b214 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(
	ctx context.Context,
	watcher *KcpWatcher,
	lcInformer kcpcache.ScopeableSharedIndexInformer,
) *controller

NewController returns new KCP-provider controller

Types

type KcpClusterProvider

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

KcpClusterProvider is a cluster provider for KCP workspaces.

func New

func New(configStrs map[string]string) (*KcpClusterProvider, error)

New returns a new KcpClusterProvider

func (*KcpClusterProvider) Create

func (k *KcpClusterProvider) Create(name string, opts clusterprovider.Options) error

func (*KcpClusterProvider) Delete

func (k *KcpClusterProvider) Delete(name string, opts clusterprovider.Options) error

func (*KcpClusterProvider) Get

func (*KcpClusterProvider) GetBasedOnConf

func (k *KcpClusterProvider) GetBasedOnConf(spaceName string, cfgString string) ([]byte, error)

func (*KcpClusterProvider) ListSpaces

func (k *KcpClusterProvider) ListSpaces() ([]clusterprovider.SpaceInfo, error)

func (*KcpClusterProvider) ListSpacesNames

func (k *KcpClusterProvider) ListSpacesNames() ([]string, error)

ListSpacesNames is N/A for KCP TODO remove it from ProviderClient interface

func (*KcpClusterProvider) Watch

type KcpWatcher

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

func (*KcpWatcher) ResultChan

func (k *KcpWatcher) ResultChan() <-chan clusterprovider.WatchEvent

func (*KcpWatcher) Stop

func (k *KcpWatcher) Stop()

Jump to

Keyboard shortcuts

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