syncher

package
v3.2.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const PolicySyncRetryTime = 500 * time.Millisecond

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncClient

type SyncClient interface {

	// Sync connects to the Policy Sync API server and processes updates from it.  It sends PolicyStores over the
	// channel when they are ready for enforcement.  Each time we disconnect and resync with the Policy Sync API a new
	// PolicyStore is created.
	Sync(ctx context.Context, stores chan<- *policystore.PolicyStore)
}

func NewClient

func NewClient(target string, opts []grpc.DialOption) SyncClient

NewClient creates a new syncClient.

Jump to

Keyboard shortcuts

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