mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
16 lines
374 B
Go
16 lines
374 B
Go
package daemon
|
|
|
|
import (
|
|
swarmtypes "github.com/moby/moby/api/types/swarm"
|
|
)
|
|
|
|
// SetContainerSecretReferences sets the container secret references needed
|
|
func (daemon *Daemon) SetContainerSecretReferences(name string, refs []*swarmtypes.SecretReference) error {
|
|
c, err := daemon.GetContainer(name)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
c.SecretReferences = refs
|
|
return nil
|
|
}
|