Documentation ¶
Index ¶
- func GenerateConf(w io.Writer, lrns []int, osName, osVersion, serial string) error
- func GenerateService(w io.Writer, rt neco.ContainerRuntime) error
- func GetOSName() (string, error)
- func GetOSVersionID() (string, error)
- func GetSerial() (string, error)
- func InstallTools(ctx context.Context, rt neco.ContainerRuntime) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConf ¶
GenerateConf generates serf.json from template.
func GenerateService ¶
func GenerateService(w io.Writer, rt neco.ContainerRuntime) error
GenerateService generate systemd service unit contents.
func GetOSVersionID ¶
GetOSVersionID returns value of VERSION_ID in /etc/os-release
func InstallTools ¶
func InstallTools(ctx context.Context, rt neco.ContainerRuntime) error
InstallTools install serf under /usr/local/bin.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.