Documentation ¶
Overview ¶
Package server implements a test server for the SideroLink.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NodeProvisioner NodeProvisioner ServerAddress netip.Addr ServerEndpoint netip.AddrPort VirtualPrefix netip.Prefix Logger *zap.Logger JoinToken string ServerPublicKey wgtypes.Key }
Config configures the server.
type NodeProvisioner ¶ added in v0.3.5
type NodeProvisioner interface {
NodePrefix(nodeUUID string, talosVersion string) (netip.Prefix, error)
}
NodeProvisioner is an interface that provides the node ip and prefix.
type Server ¶
type Server struct { pb.UnimplementedProvisionServiceServer // contains filtered or unexported fields }
Server implents gRPC API.
func (*Server) Provision ¶
func (srv *Server) Provision(_ context.Context, req *pb.ProvisionRequest) (*pb.ProvisionResponse, error)
Provision the SideroLink.
Click to show internal directories.
Click to hide internal directories.