This also brings in these PRs from swarmkit: - https://github.com/docker/swarmkit/pull/2691 - https://github.com/docker/swarmkit/pull/2744 - https://github.com/docker/swarmkit/pull/2732 - https://github.com/docker/swarmkit/pull/2729 - https://github.com/docker/swarmkit/pull/2748 Signed-off-by: Tibor Vass <tibor@docker.com> Upstream-commit: cce1763d57b5c8fc446b0863517bb5313e7e53be Component: engine
13 lines
286 B
Go
13 lines
286 B
Go
package continuity
|
|
|
|
import "os"
|
|
|
|
// newBaseResource returns a *resource, populated with data from p and fi,
|
|
// where p will be populated directly.
|
|
func newBaseResource(p string, fi os.FileInfo) (*resource, error) {
|
|
return &resource{
|
|
paths: []string{p},
|
|
mode: fi.Mode(),
|
|
}, nil
|
|
}
|