buildin

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry() mgr.Instance

Types

type Registry

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

func (*Registry) Close

func (ec *Registry) Close()

func (*Registry) Compact

func (ec *Registry) Compact(ctx context.Context, reserve int64) error

func (*Registry) Do

func (*Registry) Err

func (ec *Registry) Err() (err <-chan error)

func (*Registry) LeaseGrant

func (ec *Registry) LeaseGrant(ctx context.Context, TTL int64) (leaseID int64, err error)

func (*Registry) LeaseRenew

func (ec *Registry) LeaseRenew(ctx context.Context, leaseID int64) (TTL int64, err error)

func (*Registry) LeaseRevoke

func (ec *Registry) LeaseRevoke(ctx context.Context, leaseID int64) error

func (*Registry) PutNoOverride

func (ec *Registry) PutNoOverride(ctx context.Context, opts ...registry.PluginOpOption) (bool, error)

func (*Registry) Ready

func (ec *Registry) Ready() <-chan struct{}

func (*Registry) Txn

func (*Registry) TxnWithCmp

func (ec *Registry) TxnWithCmp(ctx context.Context, success []registry.PluginOp, cmp []registry.CompareOp, fail []registry.PluginOp) (*registry.PluginResponse, error)

func (*Registry) Watch

func (ec *Registry) Watch(ctx context.Context, opts ...registry.PluginOpOption) error

Jump to

Keyboard shortcuts

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