Documentation
¶
Index ¶
- Constants
- func GetGoogleMetadata(ctx context.Context, path string, log logrus.FieldLogger) ([]byte, error)
- func GetGoogleMetadataString(ctx context.Context, path string, log logrus.FieldLogger) (string, error)
- type DeviceRequest
- type GatewayClient
- type GatewayRequest
- type Handler
- type Response
- type Worker
Constants ¶
View Source
const ( TypeEnrollRequest = "enroll-request" TypeEnrollResponse = "enroll-response" )
Variables ¶
This section is empty.
Functions ¶
func GetGoogleMetadata ¶
func GetGoogleMetadataString ¶
Types ¶
type DeviceRequest ¶
type GatewayClient ¶
type GatewayClient struct {
Name string `json:"name"`
EnrollProjectID string `json:"project_id"`
TopicName string `json:"topic_name"`
SubscriptionName string `json:"subscription_name"`
ExternalIP string `json:"external_ip"`
// contains filtered or unexported fields
}
func NewGatewayClient ¶
func NewGatewayClient(ctx context.Context, publicKey []byte, hashedPassword string, wireguardListenPort int, log logrus.FieldLogger) (*GatewayClient, error)
type GatewayRequest ¶
Click to show internal directories.
Click to hide internal directories.