github.com/hms58/moby@v1.13.1/runconfig/hostconfig_solaris.go (about)

     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  }