Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRuleNotFound = errors.New("rule not found") ErrInstanceNotFound = errors.New("instance not found") ErrInstanceAlreadyExists = errors.New("instance already exists") ErrSyncStorageLocked = errors.New("sync already locked") ErrACLAPISyncedRuleNotFound = errors.New("aclapi synced rule not found") )
View Source
var GetACLAPIStorage = func() (ACLAPIStorage, error) { return nil, errors.New("no acl api storage imported") }
View Source
var GetRuleStorage = func() (RuleStorage, error) { return nil, errors.New("no rule storage imported") }
View Source
var GetServiceStorage = func() (ServiceStorage, error) { return nil, errors.New("no service storage imported") }
View Source
var GetSyncStorage = func() (SyncStorage, error) { return nil, errors.New("no sync storage imported") }
Functions ¶
This section is empty.
Types ¶
type ACLAPIStorage ¶
type ACLAPISyncedRule ¶
type DeleteOpts ¶
type RuleStorage ¶
type ServiceStorage ¶
type ServiceStorage interface { Create(instance types.ServiceInstance) error List() ([]types.ServiceInstance, error) Find(instanceName string) (types.ServiceInstance, error) Delete(instanceName string) error AddRule(instanceName string, r *types.ServiceRule) error RemoveRule(instanceName string, ruleID string) error AddApp(instanceName string, appName string) error RemoveApp(instanceName string, appName string) error AddJob(instanceName string, jobName string) error RemoveJob(instanceName string, jobName string) error }
type SyncFindOpts ¶
type SyncStorage ¶
type SyncStorage interface { Find(opts SyncFindOpts) ([]types.RuleSyncInfo, error) StartSync(after time.Duration, ruleID, engine string, force bool) (time.Duration, *types.RuleSyncInfo, error) PingSyncs(ruleSyncIDs []string) error EndSync(ruleSync types.RuleSyncInfo, syncData types.RuleSyncData) error SetLockExpireTime(timeout time.Duration) time.Duration }
Click to show internal directories.
Click to hide internal directories.