netd

package
v0.0.0-...-e890a9a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName = "netd"
	DefaultUUID = "d8c941f9-c191-404c-ae42-d3c9bf933d0e"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithIPCAddr

func WithIPCAddr(ipcAddr string) Option

func WithIfaces

func WithIfaces(ifaces []iface.Iface) Option

func WithInit

func WithInit(id uuid.UUID) Option

func WithLogger

func WithLogger(log logr.Logger) Option

func WithName

func WithName(name string) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Service

func (*Service) Name

func (s *Service) Name() string

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

func (*Service) UUID

func (s *Service) UUID() uuid.UUID

Jump to

Keyboard shortcuts

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