plugins/ipam/static: Update docstring
This commit is contained in:
parent
696b1f9ab1
commit
6dc16b9132
@ -72,7 +72,9 @@ func canonicalizeIP(ip *net.IP) error {
|
|||||||
return fmt.Errorf("IP %s not v4 nor v6", *ip)
|
return fmt.Errorf("IP %s not v4 nor v6", *ip)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewIPAMConfig creates a NetworkConfig from the given network name.
|
// LoadIPAMConfig creates IPAMConfig using json encoded configuration provided
|
||||||
|
// as `bytes`. At the moment values provided in envArgs are ignored so there
|
||||||
|
// is no possibility to overload the json configuration using envArgs
|
||||||
func LoadIPAMConfig(bytes []byte, envArgs string) (*IPAMConfig, string, error) {
|
func LoadIPAMConfig(bytes []byte, envArgs string) (*IPAMConfig, string, error) {
|
||||||
n := Net{}
|
n := Net{}
|
||||||
if err := json.Unmarshal(bytes, &n); err != nil {
|
if err := json.Unmarshal(bytes, &n); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user