Documentation
¶
Index ¶
- type Action
- type DeleteRequestBody
- type ServerInfo
- type Syncer
- func (s *Syncer) CreatePolicyAsync(ctx context.Context, policySyncEntity itypes.PluginPolicySync) errordeprecated
- func (s *Syncer) CreatePolicySync(ctx context.Context, pluginPolicy types.PluginPolicy) error
- func (s *Syncer) DeletePolicyAsync(ctx context.Context, syncEntity itypes.PluginPolicySync) errordeprecated
- func (s *Syncer) DeletePolicySync(ctx context.Context, pluginPolicy types.PluginPolicy) error
- func (s *Syncer) SyncSafetyToPlugin(ctx context.Context, pluginID types.PluginID, flags []safety.ControlFlag) error
- func (s *Syncer) UpdatePolicySync(ctx context.Context, pluginPolicy types.PluginPolicy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteRequestBody ¶
type DeleteRequestBody struct {
Signature string `json:"signature"`
}
type ServerInfo ¶
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
func NewPolicySyncer ¶
func NewPolicySyncer(storage storage.DatabaseStorage) *Syncer
func (*Syncer) CreatePolicyAsync
deprecated
func (*Syncer) CreatePolicySync ¶
Creates a policy in a synchronous manner.
func (*Syncer) DeletePolicyAsync
deprecated
func (*Syncer) DeletePolicySync ¶
Deletes a policy in a synchronous manner.
func (*Syncer) SyncSafetyToPlugin ¶ added in v0.1.16
func (*Syncer) UpdatePolicySync ¶ added in v0.1.16
Updates a policy in a synchronous manner.
Click to show internal directories.
Click to hide internal directories.