sync

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Created               int
	RemovedSecrets        int
	RemovedSecretVersions int
	Updated               int
	Skipped               int
}

type SecretVersionRemoval

type SecretVersionRemoval struct {
	Secret       *engine.ExistingSecret
	RemoveParent bool
}

type ServiceTask

type ServiceTask struct {
	Service swarm.Service
	Secrets map[string]updatingServiceSecret
}

type Synchronizer

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

func NewSynchronizer

func NewSynchronizer(
	engine engine.Client,
	secretProvider contracts.Provider,
	secretsMetrics metrics.Secrets,
	cleanupOrphaned bool,
	folderDelimiter secretname.FolderDelimiter,
) *Synchronizer

func (*Synchronizer) Sync

func (s *Synchronizer) Sync(ctx context.Context) (Result, error)

type UpdatedSecret

type UpdatedSecret struct {
	Path         string
	Value        []byte
	ExternalPath string

	ExternalID string
}

Jump to

Keyboard shortcuts

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