Documentation ¶
Index ¶
- Constants
- func BuildVirtualWorkspace(rootPathPrefix string, shardExternalURL func() string, ...) []rootapiserver.NamedVirtualWorkspace
- func NewSyncerRestProvider(ctx context.Context, clusterClient kcpdynamic.ClusterInterface, ...) apiserver.RestProviderFunc
- func NewUpSyncerRestProvider(ctx context.Context, clusterClient kcpdynamic.ClusterInterface, ...) apiserver.RestProviderFunc
- type BuildRestProviderFunc
Constants ¶
View Source
const ( // SyncerVirtualWorkspaceName holds the name of the virtual workspace for the syncer, used to sync resources from upstream to downstream. SyncerVirtualWorkspaceName string = "syncer" // UpsyncerVirtualWorkspaceName holds the name of the virtual workspace for the upsyncer, used to sync resources from downstream to upstream. UpsyncerVirtualWorkspaceName string = "upsyncer" )
Variables ¶
This section is empty.
Functions ¶
func BuildVirtualWorkspace ¶
func BuildVirtualWorkspace( rootPathPrefix string, shardExternalURL func() string, kubeClusterClient kcpkubernetesclientset.ClusterInterface, dynamicClusterClient kcpdynamic.ClusterInterface, cachedKCPInformers kcpinformers.SharedInformerFactory, tmcinformers tmcinformers.SharedInformerFactory, ) []rootapiserver.NamedVirtualWorkspace
BuildVirtualWorkspace builds two virtual workspaces, SyncerVirtualWorkspace and UpsyncerVirtualWorkspace by instantiating a DynamicVirtualWorkspace which, combined with a ForwardingREST REST storage implementation, serves a SyncTargetAPI list maintained by the APIReconciler controller.
func NewSyncerRestProvider ¶
func NewSyncerRestProvider(ctx context.Context, clusterClient kcpdynamic.ClusterInterface, apiExportIdentityHash string, wrapper registry.StorageWrapper) apiserver.RestProviderFunc
NewSyncerRestProvider returns a forwarding storage build function, with an optional storage wrapper e.g. to add label based filtering.
func NewUpSyncerRestProvider ¶
func NewUpSyncerRestProvider(ctx context.Context, clusterClient kcpdynamic.ClusterInterface, apiExportIdentityHash string, wrapper registry.StorageWrapper) apiserver.RestProviderFunc
NewUpSyncerRestProvider returns a forwarding storage build function, with an optional storage wrapper e.g. to add label based filtering.
Types ¶
type BuildRestProviderFunc ¶
type BuildRestProviderFunc func(ctx context.Context, clusterClient kcpdynamic.ClusterInterface, apiExportIdentityHash string, wrapper registry.StorageWrapper) apiserver.RestProviderFunc
Click to show internal directories.
Click to hide internal directories.