Documentation
¶
Index ¶
- Constants
- Variables
- func Init(name string) (*synccontext.RegisterContext, error)
- func InitWithOptions(name string, opts Options) (*synccontext.RegisterContext, error)
- func MustInit(name string) *synccontext.RegisterContext
- func MustRegister(syncer syncer.Base)
- func MustStart()
- func Register(syncer syncer.Base) error
- func Start() error
- type ApiVersionKindType
- type LeaderElectionHook
- type Manager
- type Options
Constants ¶
View Source
const (
PLUGIN_SERVER_ADDRESS = "VCLUSTER_PLUGIN_ADDRESS"
)
Variables ¶
View Source
var (
Scheme = runtime.NewScheme()
)
Functions ¶
func Init ¶
func Init(name string) (*synccontext.RegisterContext, error)
func InitWithOptions ¶
func InitWithOptions(name string, opts Options) (*synccontext.RegisterContext, error)
func MustInit ¶
func MustInit(name string) *synccontext.RegisterContext
func MustRegister ¶
Types ¶
type ApiVersionKindType ¶ added in v0.2.0
type LeaderElectionHook ¶ added in v0.2.0
type Manager ¶
type Manager interface {
// Init creates a new plugin context and will block until the
// vcluster container instance could be contacted.
Init(name string) (*synccontext.RegisterContext, error)
// InitWithOptions creates a new plugin context and will block until the
// vcluster container instance could be contacted.
InitWithOptions(name string, opts Options) (*synccontext.RegisterContext, error)
// Register makes sure the syncer will be executed as soon as start
// is run.
Register(syncer syncer.Base) error
// Start runs all the registered syncers and will block. It only executes
// the functionality if the current vcluster pod is the current leader and
// will stop if the pod will lose leader election.
Start() error
}
Click to show internal directories.
Click to hide internal directories.