Documentation ¶
Index ¶
- type PolicyEvent
- type Storage
- func (s *Storage) ActiveImportConfigs(ctx context.Context) ([]*storage.PolicyAutoImport, error)
- func (s *Storage) AddPolicySubscribers(subscribers ...storage.PolicySubscriber)
- func (s *Storage) AutoImportConfig(ctx context.Context, policyURL string) (*storage.PolicyAutoImport, error)
- func (s *Storage) AutoImportConfigs(ctx context.Context) ([]*storage.PolicyAutoImport, error)
- func (s *Storage) Close(ctx context.Context)
- func (s *Storage) CreateSubscriber(ctx context.Context, subscriber *storage.Subscriber) (*storage.Subscriber, error)
- func (s *Storage) DeleteAutoImportConfig(ctx context.Context, policyURL string) error
- func (s *Storage) DeleteData(ctx context.Context, key string) error
- func (s *Storage) GetData(ctx context.Context, key string) (any, error)
- func (s *Storage) GetPolicies(ctx context.Context, locked *bool, policyName *string) ([]*storage.Policy, error)
- func (s *Storage) GetRefreshPolicies(ctx context.Context) ([]*storage.Policy, error)
- func (s *Storage) ListenPolicyDataChanges(ctx context.Context) error
- func (s *Storage) Policy(ctx context.Context, repository, group, name, version string) (*storage.Policy, error)
- func (s *Storage) PolicySubscribers(ctx context.Context, ...) ([]*storage.Subscriber, error)
- func (s *Storage) SaveAutoImportConfig(ctx context.Context, importConfig *storage.PolicyAutoImport) error
- func (s *Storage) SavePolicy(ctx context.Context, policy *storage.Policy) error
- func (s *Storage) SetData(ctx context.Context, key string, data map[string]interface{}) error
- func (s *Storage) SetPolicyLock(ctx context.Context, repository, group, name, version string, lock bool) error
- func (s *Storage) Subscriber(ctx context.Context, ...) (*storage.Subscriber, error)
- func (s *Storage) Transaction(ctx context.Context, ...) (interface{}, error)
- func (s *Storage) UpdateNextRefreshTime(ctx context.Context, p *storage.Policy, nextDataRefreshTime time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyEvent ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) ActiveImportConfigs ¶ added in v1.2.0
func (*Storage) AddPolicySubscribers ¶ added in v1.2.0
func (s *Storage) AddPolicySubscribers(subscribers ...storage.PolicySubscriber)
func (*Storage) AutoImportConfig ¶ added in v1.2.0
func (*Storage) AutoImportConfigs ¶ added in v1.2.0
func (*Storage) CreateSubscriber ¶
func (s *Storage) CreateSubscriber(ctx context.Context, subscriber *storage.Subscriber) (*storage.Subscriber, error)
func (*Storage) DeleteAutoImportConfig ¶ added in v1.2.0
func (*Storage) GetPolicies ¶
func (*Storage) GetRefreshPolicies ¶
func (*Storage) ListenPolicyDataChanges ¶
func (*Storage) PolicySubscribers ¶ added in v1.2.0
func (*Storage) SaveAutoImportConfig ¶ added in v1.2.0
func (*Storage) SavePolicy ¶
func (*Storage) SetPolicyLock ¶
func (*Storage) Subscriber ¶ added in v1.2.0
func (*Storage) Transaction ¶
Click to show internal directories.
Click to hide internal directories.