types

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunningStore

type RunningStore interface {
	ApplyToRunning(ctx context.Context, deletes []*sdcpb.Path, importer importer.ImportConfigAdapter) error
	NewEmptyTree(ctx context.Context) (*tree.RootEntry, error)
}

type SyncResult

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

func NewSyncResult

func NewSyncResult() *SyncResult

func (*SyncResult) AddDeletes

func (r *SyncResult) AddDeletes(d ...*sdcpb.Path)

type TargetConnectionStatus

type TargetConnectionStatus string
const (
	TargetStatusConnected    TargetConnectionStatus = "connected"
	TargetStatusNotConnected TargetConnectionStatus = "not connected"
)

type TargetSource

type TargetSource interface {
	// ToJson returns the Tree contained structure as JSON
	// use e.g. json.MarshalIndent() on the returned struct
	ToJson(onlyNewOrUpdated bool) (any, error)
	// ToJsonIETF returns the Tree contained structure as JSON_IETF
	// use e.g. json.MarshalIndent() on the returned struct
	ToJsonIETF(onlyNewOrUpdated bool) (any, error)
	ToXML(onlyNewOrUpdated bool, honorNamespace bool, operationWithNamespace bool, useOperationRemove bool) (*etree.Document, error)
	ToProtoUpdates(ctx context.Context, onlyNewOrUpdated bool) ([]*sdcpb.Update, error)
	ToProtoDeletes(ctx context.Context) ([]*sdcpb.Path, error)
}

type TargetStatus

type TargetStatus struct {
	Status  TargetConnectionStatus
	Details string
}

func NewTargetStatus

func NewTargetStatus(status TargetConnectionStatus) *TargetStatus

func (*TargetStatus) IsConnected

func (ts *TargetStatus) IsConnected() bool

Jump to

Keyboard shortcuts

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