fix compile error
[platform/upstream/docker-engine.git] / runconfig / hostconfig_solaris.go
1 package runconfig
2
3 import (
4         "github.com/docker/docker/api/types/container"
5         "github.com/docker/docker/pkg/sysinfo"
6 )
7
8 // DefaultDaemonNetworkMode returns the default network stack the daemon should
9 // use.
10 func DefaultDaemonNetworkMode() container.NetworkMode {
11         return container.NetworkMode("bridge")
12 }
13
14 // IsPreDefinedNetwork indicates if a network is predefined by the daemon
15 func IsPreDefinedNetwork(network string) bool {
16         return false
17 }
18
19 // validateNetMode ensures that the various combinations of requested
20 // network settings are valid.
21 func validateNetMode(c *container.Config, hc *container.HostConfig) error {
22         // We may not be passed a host config, such as in the case of docker commit
23         return nil
24 }
25
26 // validateIsolation performs platform specific validation of the
27 // isolation level in the hostconfig structure.
28 // This setting is currently discarded for Solaris so this is a no-op.
29 func validateIsolation(hc *container.HostConfig) error {
30         return nil
31 }
32
33 // validateQoS performs platform specific validation of the QoS settings
34 func validateQoS(hc *container.HostConfig) error {
35         return nil
36 }
37
38 // validateResources performs platform specific validation of the resource settings
39 func validateResources(hc *container.HostConfig, si *sysinfo.SysInfo) error {
40         return nil
41 }
42
43 // validatePrivileged performs platform specific validation of the Privileged setting
44 func validatePrivileged(hc *container.HostConfig) error {
45         return nil
46 }