utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForConfirmation

func AskForConfirmation(prompt string) bool

func BroadcastIPv4

func BroadcastIPv4(network net.IPNet) (net.IP, error)

func CreatePublicKey

func CreatePublicKey(privateKey *rsa.PrivateKey, publicKeyPath string) error

func GenerateAlphaNumericPassword

func GenerateAlphaNumericPassword() string

func IncrementIPv4

func IncrementIPv4(ip net.IP) (net.IP, error)

func LoadOrCreatePrivateSSHKey

func LoadOrCreatePrivateSSHKey(privateKeyPath string) (*rsa.PrivateKey, error)

func MakeFileAskOnOverwrite

func MakeFileAskOnOverwrite(name string) (*os.File, error)

func MakeStringSet

func MakeStringSet(slice []string) map[string]struct{}

func MakeUniqueFile

func MakeUniqueFile(name string, suffix string, count int) (*os.File, error)

func StringSetContains

func StringSetContains(set map[string]struct{}, value string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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