Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertRestConfigToClientConfig ¶
func ConvertRestConfigToClientConfig(config *rest.Config) (clientcmd.ClientConfig, error)
Types ¶
type Manager ¶
type Manager interface {
Start(
currentNamespace, targetNamespace string,
virtualKubeConfig *rest.Config,
physicalKubeConfig *rest.Config,
syncerConfig *clientcmdapi.Config,
options *context2.VirtualClusterOptions,
) error
SetLeader(isLeader bool)
ClientHooksFor(versionKindType VersionKindType) []*Plugin
HasClientHooks() bool
HasPlugins() bool
}
var DefaultManager Manager = &manager{
clientHooks: map[VersionKindType][]*Plugin{},
pluginVersions: map[string]*remote.RegisterPluginRequest{},
}
type VersionKindType ¶ added in v0.9.0
type VersionKindType struct {
ApiVersion string
Kind string
Type string
}
Click to show internal directories.
Click to hide internal directories.