package secrets

import "github.com/moby/swarmkit/v2/agent/secrets"

Index

Functions

func NewManager

func NewManager() exec.SecretsManager

NewManager returns a place to store secrets.

func Restrict

func Restrict(secrets exec.SecretGetter, t *api.Task) exec.SecretGetter

Restrict provides a getter that only allows access to the secrets referenced by the task.

Source Files

secrets.go

Version
v2.0.0-20250103191802-8c1959736554 (latest)
Published
Jan 3, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
2 weeks ago

Tools for package owners.