utils

package
v0.0.0-...-15aa78f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2016 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPVersion

func GetIPVersion(ipString string) int

Returns the IP version of the specified IP address (e.g. 4 for IPv4, 6 for IPv6),

or 0 if the address is invalid.

func Init

func Init()

func IsPrivate

func IsPrivate(ipString string) bool

func IsSliceSubset

func IsSliceSubset(set []string, subset []string) bool

func PublicKeyToAuthorizedKeysFormat

func PublicKeyToAuthorizedKeysFormat(in string) (string, error)

Converts a public key to authorized keys format.

func Uid

func Uid(l int) string

func UidAlphabet

func UidAlphabet(l int, alphabet []rune) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL