Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkPart ¶
GetNetworkPart allows to get the network subnet of an ip address : 192.168.1.1/24 => 192.168.1.0 if invalid ip or mask <= 0 return "0.0.0.0" if mask >= 32 return ip
func ParsePrivKey ¶
func ParsePrivKey(AuthKeyFile string) (*rsa.PrivateKey, error)
ParsePrivKey allow to parse a private key file if the path or the content of the file is invalid return an error The function return a pointer of rsa.PrivateKey when valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.