Documentation ¶
Index ¶
- func CanReadFile(path string) bool
- func GenerateSelfSignedCert(certPath, keyPath string, ips []net.IP, alternateDNS []string) error
- func HomeDir() string
- func Pad(str string) string
- func ReadInputFromStdin(fieldlabel string) string
- func ReadPasswordFromStdin(fieldlabel string) string
- func Retry(attempts int, callback func() error) (err error)
- func RetryAfter(attempts int, callback func() error, d time.Duration) (err error)
- func Until(fn func() error, w io.Writer, name string, sleep time.Duration, ...)
- func ValidateProxyURI(uri string) bool
- func VersionOrdinal(version string) string
- type MultiError
- type RealRunner
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanReadFile ¶
If the file represented by path exists and readable, return true otherwise return false.
func GenerateSelfSignedCert ¶
You may also specify additional subject alt names (either ip or dns names) for the certificate The certificate will be created with file mode 0644. The key will be created with file mode 0600. If the certificate or key files already exist, they will be overwritten. Any parent directories of the certPath or keyPath will be created as needed with file mode 0755.
func HomeDir ¶ added in v1.0.0
func HomeDir() string
HomeDir returns the home directory for the current user
func ReadInputFromStdin ¶ added in v1.0.0
func ReadPasswordFromStdin ¶ added in v1.0.0
func Until ¶
Until endlessly loops the provided function until a message is received on the done channel. The function will wait the duration provided in sleep between function calls. Errors will be sent on provider Writer.
func ValidateProxyURI ¶ added in v1.0.0
func VersionOrdinal ¶ added in v1.0.0
Types ¶
type MultiError ¶ added in v0.3.5
type MultiError struct {
Errors []error
}
func (*MultiError) Collect ¶ added in v0.3.5
func (m *MultiError) Collect(err error)
func (MultiError) ToError ¶ added in v0.3.5
func (m MultiError) ToError() error
type RealRunner ¶ added in v1.0.0
type RealRunner struct{}