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.
Click to show internal directories.
Click to hide internal directories.