edge

package
v0.33.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginName string = "aserto_edge"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled           bool              `json:"enabled"`             //
	Addr              string            `json:"addr"`                //
	APIKey            string            `json:"apikey"`              //
	Timeout           int               `json:"timeout"`             // timeout in seconds.
	SyncInterval      int               `json:"sync_interval"`       // interval in minutes.
	Insecure          bool              `json:"insecure"`            //
	ConnectionTimeout time.Duration     `json:"-"`                   // mapped at runtime to timeout * time.Second.
	PageSize          int               `json:"page_size,omitempty"` // deprecated: no longer used.
	ClientCertPath    string            `json:"client_cert_path"`    //
	ClientKeyPath     string            `json:"client_key_path"`     //
	CACertPath        string            `json:"ca_cert_path"`        //
	NoTLS             bool              `json:"no_tls"`              //
	NoProxy           bool              `json:"no_proxy"`            //
	Headers           map[string]string `json:"headers"`             //
}

type Plugin

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

func (*Plugin) Reconfigure

func (p *Plugin) Reconfigure(ctx context.Context, config any)

func (*Plugin) Start

func (p *Plugin) Start(ctx context.Context) error

func (*Plugin) Stop

func (p *Plugin) Stop(ctx context.Context)

func (*Plugin) SyncNow

func (p *Plugin) SyncNow(mode SyncMode)

type PluginFactory

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

func NewPluginFactory

func NewPluginFactory(ctx context.Context, cfg *topaz.Config, logger *zerolog.Logger) PluginFactory

func (PluginFactory) New

func (f PluginFactory) New(m *plugins.Manager, config any) plugins.Plugin

func (PluginFactory) Validate

func (PluginFactory) Validate(m *plugins.Manager, config []byte) (any, error)

type SyncMode added in v0.33.13

type SyncMode int32
const (
	// SyncModeUnknown nothing selected (default initialization value).
	SyncModeUnknown SyncMode = 0
	// SyncModeFull full sync, requests full export of source, contains new and updated elements only.
	SyncModeFull SyncMode = 1
	// SyncModeDiff full sync with differential, removing items deleted in source from target.
	SyncModeDiff SyncMode = 2
	// SyncModeWatermark watermark sync, pulls all new and updated data since last watermark.
	SyncModeWatermark SyncMode = 4
	// SyncModeManifest manifest sync, pulls manifest from source and applies to target when etags are different.
	SyncModeManifest SyncMode = 8
)

Jump to

Keyboard shortcuts

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