strs

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Abstraction for strings that implementors will likely wish to change.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootKernel

func BootKernel() string

name of boot kernel

func ConfDir

func ConfDir() string

Dir within the image where config data is stored. Likely under /etc.

func ContinueLoggingEnv

func ContinueLoggingEnv() string

func CoreEnv

func CoreEnv() string

func EmergPfx

func EmergPfx() string

func EnvPrefix

func EnvPrefix() string

Prefix used for env vars.

func EraseEnv

func EraseEnv() string

func FRLogPfx

func FRLogPfx() string

func FlagFile

func FlagFile() string

Name of file whose absence triggers factory restore.

func HostPrefix

func HostPrefix() string

Prefix used in creating hostname. Note hostname charset restrictions.

func ImgPrefix

func ImgPrefix() string

Returns prefix for image name. 3 sections, 2 dots + 1 trailing. Otherwise sort function will fail.

func IntegEnv

func IntegEnv() string

func LogEnv

func LogEnv() string

func MacOUI

func MacOUI() string

prefix to require on MAC addresses

func MacOUIBytes

func MacOUIBytes() []byte

like MacOUI, but as bytes

func MfgKernel

func MfgKernel() string

name of provisioning/mfg kernel

func MfgLogPfx

func MfgLogPfx() string

func MfgTestEnv

func MfgTestEnv() string

func NoRebootEnv

func NoRebootEnv() string

func PriVolName

func PriVolName() string

Name of the primary volume.

func RecVolName

func RecVolName() string

Name of the recovery volume.

func RecoveryLogDir

func RecoveryLogDir() string

func SetStringer

func SetStringer(b Stringer)

Override defaults.

func VerboseEnv

func VerboseEnv() string

Types

type Stringer

type Stringer interface {
	//Dir within the image where config data is stored. Likely under /etc.
	ConfDir() string
	//Prefix used for env vars.
	EnvPrefix() string
	//Name of the recovery volume.
	RecVolName() string
	//Name of the primary volume.
	PriVolName() string
	//Prefix used in creating hostname. Note hostname charset restrictions.
	HostPrefix() string
	//Name of file whose absence triggers factory restore.
	FlagFile() string
	//name of boot kernel
	BootKernel() string
	//name of provisioning/mfg kernel
	MfgKernel() string
	// Returns prefix for image name. 3 sections, 2 dots + 1 trailing. Otherwise
	// sort function will fail.
	ImgPrefix() string
	//prefix to require on MAC addresses
	MacOUI() string
	//like MacOUI, but as bytes
	MacOUIBytes() []byte
	//Filename prefix to match a file which can be used as an emergency image.
	EmergPfx() string
	//dir on recovery volume to use for logs
	RecoveryLogDir() string
}

Abstraction for strings that implementors will likely wish to change.

Jump to

Keyboard shortcuts

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