watcher

package
v0.0.0-...-614d85d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketMap

type BucketMap map[string]*model.Bucket

BucketMap is the map type from bucket name to Bucket object

type BucketsWatcher

type BucketsWatcher interface {
	GetBucket(name string) *model.Bucket

	Watch()
}

BucketsWatcher defines API for watching bucket changes in Etcd

func NewBucketsWatcher

func NewBucketsWatcher(bucketPathPrefix string, client *etcd.Client) (BucketsWatcher, error)

NewBucketsWatcher creates a watcher that load existing ACLs from buckets

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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