Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: May 27, 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(ctx context.Context, onlyNewOrUpdated bool) (any, error)
	// ToJsonIETF returns the Tree contained structure as JSON_IETF
	// use e.g. json.MarshalIndent() on the returned struct
	ToJsonIETF(ctx context.Context, onlyNewOrUpdated bool) (any, error)
	ToXML(ctx context.Context, 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)
	ContainsChanges(ctx context.Context) (bool, 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