Documentation ¶
Index ¶
- Constants
- func CanReadFile(path string) bool
- func FindAndSet(path string, c interface{}, value string) error
- func GenerateCACert(certPath, keyPath string) error
- func GenerateSignedCert(certPath, keyPath string, ips []net.IP, alternateDNS []string, ...) error
- func GetAlternateDNS(domain string) []string
- func GetLocalkubeDownloadURL(versionOrURL string, filename string) (string, error)
- func IsDirectory(path string) (bool, error)
- func Pad(str string) string
- func ParseSHAFromURL(url string) (string, error)
- 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, ...)
- type DefaultDownloader
- type ExtraOption
- type ExtraOptionSlice
- type ISODownloader
- type MultiError
- type RetriableError
Constants ¶
View Source
const ( DefaultLocalkubeDirectory = "/var/lib/localkube" DefaultCertPath = DefaultLocalkubeDirectory + "/certs/" DefaultServiceClusterIP = "10.0.0.1" DefaultDNSDomain = "cluster.local" DefaultDNSIP = "10.0.0.10" )
These constants are used by both minikube and localkube
Variables ¶
This section is empty.
Functions ¶
func CanReadFile ¶
If the file represented by path exists and readable, return true otherwise return false.
func FindAndSet ¶ added in v0.11.0
FindAndSet sets the nested value.
func GenerateCACert ¶ added in v0.6.0
func GenerateSignedCert ¶ added in v0.6.0
func GenerateSignedCert(certPath, keyPath string, ips []net.IP, alternateDNS []string, signerCertPath, signerKeyPath string) error
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 GetAlternateDNS ¶
func GetLocalkubeDownloadURL ¶ added in v0.8.0
func IsDirectory ¶ added in v0.9.0
func ParseSHAFromURL ¶ added in v0.11.0
func RetryAfter ¶ added in v0.2.0
Types ¶
type DefaultDownloader ¶ added in v0.16.0
type DefaultDownloader struct{}
func (DefaultDownloader) CacheMinikubeISOFromURL ¶ added in v0.16.0
func (f DefaultDownloader) CacheMinikubeISOFromURL(isoURL string) error
func (DefaultDownloader) GetISOFileURI ¶ added in v0.16.0
func (f DefaultDownloader) GetISOFileURI(isoURL string) string
type ExtraOption ¶ added in v0.11.0
func (*ExtraOption) String ¶ added in v0.11.0
func (e *ExtraOption) String() string
type ExtraOptionSlice ¶ added in v0.11.0
type ExtraOptionSlice []ExtraOption
func (*ExtraOptionSlice) Set ¶ added in v0.11.0
func (es *ExtraOptionSlice) Set(value string) error
func (*ExtraOptionSlice) String ¶ added in v0.11.0
func (es *ExtraOptionSlice) String() string
func (*ExtraOptionSlice) Type ¶ added in v0.11.0
func (es *ExtraOptionSlice) Type() string
type ISODownloader ¶ added in v0.16.0
type MultiError ¶ added in v0.8.0
type MultiError struct {
Errors []error
}
func (*MultiError) Collect ¶ added in v0.8.0
func (m *MultiError) Collect(err error)
func (MultiError) ToError ¶ added in v0.8.0
func (m MultiError) ToError() error
type RetriableError ¶ added in v0.12.0
type RetriableError struct {
Err error
}
func (RetriableError) Error ¶ added in v0.12.0
func (r RetriableError) Error() string
Click to show internal directories.
Click to hide internal directories.