Documentation
¶
Overview ¶
Package tailscale provides the Tailscale integration definition for integrations
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrClientIDMissing indicates the OAuth client ID is missing from the credential ErrClientIDMissing = errors.New("tailscale: oauth client id missing") // ErrClientSecretMissing indicates the OAuth client secret is missing from the credential ErrClientSecretMissing = errors.New("tailscale: oauth client secret missing") // ErrUsersFetchFailed indicates the Tailscale users list request failed ErrUsersFetchFailed = errors.New("tailscale: users fetch failed") // ErrTailnetUnresolved indicates no member user carried a tailnet name to identify the tailnet by ErrTailnetUnresolved = errors.New("tailscale: tailnet unresolved") // ErrDevicesFetchFailed indicates the Tailscale devices list request failed ErrDevicesFetchFailed = errors.New("tailscale: devices fetch failed") // ErrPayloadEncode indicates a collected Tailscale payload could not be serialized for ingest ErrPayloadEncode = errors.New("tailscale: ingest payload encode failed") )
Functions ¶
Types ¶
type AssetSync ¶
type AssetSync struct {
types.OperationSettings
}
AssetSync holds configuration for the Tailscale asset sync operation
type CredentialSchema ¶
type CredentialSchema struct {
// ClientID is the OAuth client ID generated in the Tailscale admin console
ClientID string `json:"clientId" jsonschema:"required,title=Client ID,description=OAuth client ID from the Tailscale admin console."`
// ClientSecret is the OAuth client secret paired with ClientID
ClientSecret string `` /* 139-byte string literal not displayed */
}
CredentialSchema holds the Tailscale OAuth credentials for one installation
type InstallationMetadata ¶
type InstallationMetadata struct {
// ClientID is the OAuth client ID used to connect this installation
ClientID string `json:"clientId,omitempty" jsonschema:"title=Client ID"`
// Tailnet is the name of the tailnet the OAuth client is scoped to
Tailnet string `json:"tailnet,omitempty" jsonschema:"title=Tailnet"`
}
InstallationMetadata holds the stable Tailscale identity for one installation
func (InstallationMetadata) InstallationIdentity ¶
func (m InstallationMetadata) InstallationIdentity() types.IntegrationInstallationIdentity
InstallationIdentity implements types.InstallationIdentifiable
Click to show internal directories.
Click to hide internal directories.