mapping

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyViaJson

func CopyViaJson[F any, T any](f F, t T) error

func ToDNSConfig

func ToDNSConfig(m *domain.Machine, tailnet *domain.Tailnet, c *domain.DNSConfig) *tailcfg.DNSConfig

func ToNode

func ToNode(capVer tailcfg.CapabilityVersion, m *domain.Machine, tailnet *domain.Tailnet, taggedDevicesUser *domain.User, peer bool, connected bool, routeFilter func(m *domain.Machine) []netip.Prefix) (*tailcfg.Node, *tailcfg.UserProfile, error)

func ToUser added in v0.7.0

func ToUser(u domain.User) (tailcfg.User, tailcfg.Login)

func ToUserProfile

func ToUserProfile(u domain.User) tailcfg.UserProfile

Types

type MapResponse added in v0.12.0

type MapResponse struct {
	tailcfg.MapResponse
	PacketFilter []tailcfg.FilterRule
}

MapResponse is a custom tailcfg.MapResponse for marshalling non-nil zero-length slices (meaning explicitly now empty) see tailcfg.MapResponse documentation

type PollNetMapper added in v0.11.0

type PollNetMapper struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewPollNetMapper added in v0.11.0

func NewPollNetMapper(req *tailcfg.MapRequest, machineID uint64, repository domain.Repository, sessionManager core.PollMapSessionManager) *PollNetMapper

func (*PollNetMapper) CreateMapResponse added in v0.11.0

func (h *PollNetMapper) CreateMapResponse(ctx context.Context, delta bool) (*MapResponse, error)

Jump to

Keyboard shortcuts

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