tsapi

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BASE_URL = "https://api.tailscale.com/api/v2/"

Functions

This section is empty.

Types

type Device

type Device struct {
	Addresses []string `json:"addresses"`
	Hostname  string   `json:"hostname"`
	Name      string   `json:"name"`
	NodeId    string   `json:"nodeId"`
}

type TSApi

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

func NewTSClient

func NewTSClient(tailnetName string) *TSApi

func (*TSApi) Devices

func (ts *TSApi) Devices() ([]Device, error)

Jump to

Keyboard shortcuts

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