Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartSyncer ¶
Types ¶
type APIImporter ¶ added in v0.6.0
type APIImporter struct {
SyncedGVRs map[string]metav1.GroupVersionResource
// contains filtered or unexported fields
}
func NewAPIImporter ¶ added in v0.6.0
func NewAPIImporter( upstreamConfig, downstreamConfig *rest.Config, resourcesToSync []string, logicalClusterName logicalcluster.Name, location string, ) (*APIImporter, error)
func (*APIImporter) ImportAPIs ¶ added in v0.6.0
func (i *APIImporter) ImportAPIs(ctx context.Context)
func (*APIImporter) Start ¶ added in v0.6.0
func (i *APIImporter) Start(ctx context.Context, pollInterval time.Duration)
func (*APIImporter) Stop ¶ added in v0.6.0
func (i *APIImporter) Stop()
type SyncerConfig ¶ added in v0.6.0
type SyncerConfig struct {
UpstreamConfig *rest.Config
DownstreamConfig *rest.Config
ResourcesToSync sets.String
KCPClusterName logicalcluster.Name
WorkloadClusterName string
}
SyncerConfig defines the syncer configuration that is guaranteed to vary across syncer deployments. Capturing these details in a struct simplifies defining these details in test fixture.
func (*SyncerConfig) ID ¶
func (sc *SyncerConfig) ID() string
Click to show internal directories.
Click to hide internal directories.