Documentation ¶
Index ¶
- func CopyViaJson[F any, T any](f F, t T) error
- func ToDNSConfig(m *domain.Machine, tailnet *domain.Tailnet, c *domain.DNSConfig) *tailcfg.DNSConfig
- func ToNode(capVer tailcfg.CapabilityVersion, m *domain.Machine, tailnet *domain.Tailnet, ...) (*tailcfg.Node, *tailcfg.UserProfile, error)
- func ToUser(u domain.User) (tailcfg.User, tailcfg.Login)
- func ToUserProfile(u domain.User) tailcfg.UserProfile
- type MapResponse
- type PollNetMapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyViaJson ¶
func ToDNSConfig ¶
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
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)
Click to show internal directories.
Click to hide internal directories.