mirror of
https://github.com/moby/moby.git
synced 2026-08-12 12:15:08 +00:00
This utility was originally added in3716ec25b4at which time it was not yet implemented for Windows, so this utility was used to print a warning when trying to use it on that platform. Windows support was added inbd4e8aa64e, which kept the utility, but adjusted it to support for both Windows and Linux, and excluding any other platform. Let's remove this utility, given that we currently only support Windows and Linux (there's been some partial support for other platforms, but they are very likely broken in many ways). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
16 lines
422 B
Go
16 lines
422 B
Go
package daemon // import "github.com/docker/docker/daemon"
|
|
|
|
import (
|
|
swarmtypes "github.com/docker/docker/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
|
|
}
|