Movatterモバイル変換


[0]ホーム

URL:


tkatest

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:10Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

tkatest has functions for creating a mock control server that respondsto TKA endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcHandleTKABootstrap

HandleTKABootstrap handles a request to /tka/bootstrap.

If the request is valid, it sends a response to the client, and returnsthe parsed request to the caller.

funcHandleTKAInitBegin

func HandleTKAInitBegin(whttp.ResponseWriter, r *http.Request, nodesiter.Seq[*tailcfg.Node]) (*tka.AUM,error)

HandleTKAInitBegin handles a request to /machine/tka/init/begin.

If the request contains a valid genesis AUM, it sends a response to theclient, and returns the AUM to the caller.

funcHandleTKAInitFinish

HandleTKAInitFinish handles a request to /machine/tka/init/finish.

It sends a response to the client, and gives the caller a list of nodesignatures to apply.

This method assumes that the node signatures are valid, and does notverify them with the supplied public key.

funcHandleTKASign

HandleTKASign handles a request to /machine/tka/sign.

If the signature request is valid, it sends a response to the client, andgives the caller the signature and public key of the node being signed.

funcHandleTKASyncOffer

func HandleTKASyncOffer(whttp.ResponseWriter, r *http.Request, authority *tka.Authority, chonktka.Chonk)error

funcHandleTKASyncSend

func HandleTKASyncSend(whttp.ResponseWriter, r *http.Request, authority *tka.Authority, chonktka.Chonk)error

HandleTKASyncSend handles a request to /machine/tka/send.

If the request is valid, it adds the new AUMs to the authority, and sendsa response to the client with the new head.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp