serf

package
v0.0.0-...-1eec387 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConf

func GenerateConf(w io.Writer, lrns []int, osName, osVersion, serial string) error

GenerateConf generates serf.json from template.

func GenerateService

func GenerateService(w io.Writer, rt neco.ContainerRuntime) error

GenerateService generate systemd service unit contents.

func GetOSName

func GetOSName() (string, error)

GetOSName returns value of NAME in /etc/os-release

func GetOSVersionID

func GetOSVersionID() (string, error)

GetOSVersionID returns value of VERSION_ID in /etc/os-release

func GetSerial

func GetSerial() (string, error)

GetSerial returns serial number

func InstallTools

func InstallTools(ctx context.Context, rt neco.ContainerRuntime) error

InstallTools install serf under /usr/local/bin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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