secrets

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecretRef

func NewSecretRef(path, name, id string) *swarm.SecretReference

Types

type Result

type Result struct {
	Created int
	Updated int
	Skipped int
}

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,
) *Synchronizer

func (*Synchronizer) Sync

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

type TaskQueue

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

func (*TaskQueue) PushSecret

func (q *TaskQueue) PushSecret(secret UpdatedSecret)

func (*TaskQueue) PushService

func (q *TaskQueue) PushService(service swarm.Service, secret UpdatingServiceSecret)

type UpdatedSecret

type UpdatedSecret struct {
	Name  string
	ID    string
	Path  string
	Value []byte

	ExternalID string
}

type UpdatingServiceSecret

type UpdatingServiceSecret struct {
	Name string
	ID   string
	Path string
}

Jump to

Keyboard shortcuts

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