metaldata

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

func NewIndex

func NewIndex(log logr.Logger, staticMetadata map[string]string) *Index

func (*Index) EventHandler

func (idx *Index) EventHandler() cache.ResourceEventHandlerFuncs

func (*Index) Lookup

func (idx *Index) Lookup(addr netip.Addr) (*ServerEntry, bool)

type Server

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

func NewServer

func NewServer(log logr.Logger, idx *Index, reader client.Reader, addr string) *Server

func (*Server) Addr

func (s *Server) Addr() net.Addr

func (*Server) Ready

func (s *Server) Ready() bool

Ready returns true as soon as the listener has been opened. It does not guarantee that the HTTP server is already running. Once it returns true it is safe to call Server.Addr.

func (*Server) Start

func (s *Server) Start(ctx context.Context) (err error)

type ServerEntry

type ServerEntry struct {
	Name     string
	Metadata map[string]string
	ClaimRef *metalv1alpha1.ImmutableObjectReference
}

Jump to

Keyboard shortcuts

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