Documentation ¶
Index ¶
- type Linux
- func (l Linux) Arch(h os.Host) (string, error)
- func (l Linux) Chmod(h os.Host, path, chmod string) error
- func (l Linux) DeleteFile(h os.Host, path string) error
- func (l Linux) DownloadK0s(h os.Host, version, arch string) error
- func (l Linux) FileContains(h os.Host, path, s string) bool
- func (l Linux) HTTPStatus(h os.Host, url string) (int, error)
- func (l Linux) K0sBinaryPath() string
- func (l Linux) K0sCmdf(template string, args ...interface{}) string
- func (l Linux) K0sConfigPath() string
- func (l Linux) K0sJoinTokenPath() string
- func (l Linux) KubeconfigPath() string
- func (l Linux) KubectlCmdf(s string, args ...interface{}) string
- func (l Linux) MoveFile(h os.Host, src, dst string) error
- func (l Linux) PrivateAddress(h os.Host, iface, publicip string) (string, error)
- func (l Linux) PrivateInterface(h os.Host) (string, error)
- func (l Linux) ReplaceK0sTokenPath(h os.Host, spath string) error
- func (l Linux) TempDir(h os.Host) (string, error)
- func (l Linux) TempFile(h os.Host) (string, error)
- type PathFuncs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linux ¶
type Linux struct {
PathFuncs
}
Linux is a base module for various linux OS support packages
func (Linux) DeleteFile ¶
DeleteFile deletes a file on the host
func (Linux) DownloadK0s ¶
DownloadK0s performs k0s binary download from github on the host
func (Linux) FileContains ¶
FileContains returns true if a file contains the substring
func (Linux) HTTPStatus ¶
HTTPStatus makes a HTTP GET request to the url and returns the status code or an error
func (Linux) K0sBinaryPath ¶
K0sBinaryPath returns the location of k0s binary
func (Linux) K0sConfigPath ¶
K0sConfigPath returns the location of k0s configuration file
func (Linux) K0sJoinTokenPath ¶
K0sJoinTokenPath returns the location of k0s join token file
func (Linux) KubeconfigPath ¶
KubeconfigPath returns the path to a kubeconfig on the host
func (Linux) KubectlCmdf ¶
KubectlCmdf returns a command line in sprintf manner for running kubectl on the host using the kubeconfig from KubeconfigPath
func (Linux) PrivateAddress ¶
PrivateAddress resolves internal ip from private interface
func (Linux) PrivateInterface ¶
PrivateInterface tries to find a private network interface
func (Linux) ReplaceK0sTokenPath ¶
ReplaceK0sTokenPath replaces the config path in the service stub