Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities struct {
Devices Devices `json:"devices"`
}
type Req ¶
type Req struct { Capabilities Capabilities `json:"capabilities"` ExpirySeconds int `json:"expirySeconds"` Description string `json:"description"` }
type TSResponse ¶
type TSResponse struct { Id string `json:"id"` Key string `json:"key"` Created time.Time `json:"created"` Expires time.Time `json:"expires"` Revoked time.Time `json:"revoked"` Capabilities Capabilities `json:"capabilities"` Description string `json:"description"` }
func CreateAuthKey ¶
func CreateAuthKey(expirySeconds int, description string, tags []string) (*TSResponse, error)
This function will create the API Key for use in joining new machines to the tailnet.
Click to show internal directories.
Click to hide internal directories.