package subnets | |
import "fmt" | |
func err(str string) error { | |
return fmt.Errorf("%s", str) | |
} | |
var ( | |
ErrNetworkIDRequired = err("A network ID is required") | |
ErrCIDRRequired = err("A valid CIDR is required") | |
ErrInvalidIPType = err("An IP type must either be 4 or 6") | |
ErrCIDRNotUpdatable = err("CIDR attributes cannot be updated") | |
ErrIPVersionNotUpdatable = err("IP Version attributes cannot be updated") | |
) |