cmd

package
v0.0.0-...-2cc43cd Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitRev is the git revision of the build. It is set by the Makefile.
	GitRev = "unknown (use make)"
)

Functions

func SetFlags

func SetFlags(c *Service, fs *flag.FlagSet)

Types

type DhcpMode

type DhcpMode string

func (DhcpMode) String

func (d DhcpMode) String() string

type File

type File struct {
	// FilePath is the path to a JSON FilePath containing hardware data.
	FilePath string
	Enabled  bool
}

type Kube

type Kube struct {
	// ConfigFilePath is the path to a kubernetes config file (kubeconfig).
	ConfigFilePath string
	// APIURL is the Kubernetes API URL.
	APIURL string
	// Namespace is an override for the Namespace the kubernetes client will watch.
	// The default is the Namespace the pod is running in.
	Namespace string
	Enabled   bool
}

type Noop

type Noop struct {
	Enabled bool
}

type Service

type Service struct {
	Syslog         syslogConfig
	Tftp           tftp
	IpxeHTTPBinary ipxeHTTPBinary
	IpxeHTTPScript ipxeHTTPScript
	DHCP           dhcpConfig

	// loglevel is the log level for smee.
	LogLevel string
	Backends dhcpBackends
	Otel     otelConfig
}

func (*Service) Start

func (s *Service) Start(ctx context.Context, log logr.Logger) error

Jump to

Keyboard shortcuts

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