syncer

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	CreateAction Action = iota
	UpdateAction
)

type DeleteRequestBody

type DeleteRequestBody struct {
	Signature string `json:"signature"`
}

type ServerInfo

type ServerInfo struct {
	Addr   string
	ApiKey string
}

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

func NewPolicySyncer

func NewPolicySyncer(storage storage.DatabaseStorage) *Syncer

func (*Syncer) CreatePolicyAsync deprecated

func (s *Syncer) CreatePolicyAsync(ctx context.Context, policySyncEntity itypes.PluginPolicySync) error

Deprecated: use CreatePolicySync instead.

func (*Syncer) CreatePolicySync

func (s *Syncer) CreatePolicySync(ctx context.Context, pluginPolicy types.PluginPolicy) error

Creates a policy in a synchronous manner.

func (*Syncer) DeletePolicyAsync deprecated

func (s *Syncer) DeletePolicyAsync(ctx context.Context, syncEntity itypes.PluginPolicySync) error

Deprecated: use DeletePolicySync instead.

func (*Syncer) DeletePolicySync

func (s *Syncer) DeletePolicySync(ctx context.Context, pluginPolicy types.PluginPolicy) error

Deletes a policy in a synchronous manner.

func (*Syncer) SyncSafetyToPlugin added in v0.1.16

func (s *Syncer) SyncSafetyToPlugin(ctx context.Context, pluginID types.PluginID, flags []safety.ControlFlag) error

func (*Syncer) UpdatePolicySync added in v0.1.16

func (s *Syncer) UpdatePolicySync(ctx context.Context, pluginPolicy types.PluginPolicy) error

Updates a policy in a synchronous manner.

Jump to

Keyboard shortcuts

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