From 8dbb3b8bbe09815859ff19aef32238a3c3d64457 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 12 Dec 2022 21:19:17 -0800 Subject: [PATCH] cmd/k8s-operator: remove unused structs. Cleanup missed in #6718. Signed-off-by: David Anderson --- cmd/k8s-operator/operator.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/cmd/k8s-operator/operator.go b/cmd/k8s-operator/operator.go index 31050e2c6..20bbf73dd 100644 --- a/cmd/k8s-operator/operator.go +++ b/cmd/k8s-operator/operator.go @@ -445,29 +445,6 @@ func (a *ServiceReconciler) getDeviceInfo(ctx context.Context, svc *corev1.Servi return id, hostname, nil } -type authKey struct { - ID string `json:"id"` - Key string `json:"key"` - Created time.Time `json:"created"` - Expires time.Time `json:"expires"` - Capabilities capability `json:"capabilities"` -} - -type newKeyRequest struct { - Capabilities capability `json:"capabilities"` -} - -type capability struct { - Devices struct { - Create struct { - Reusable bool - Ephemeral bool - Preauthorized bool - Tags []string - } `json:"create"` - } `json:"devices"` -} - func (a *ServiceReconciler) newAuthKey(ctx context.Context, tags []string) (string, error) { caps := tailscale.KeyCapabilities{ Devices: tailscale.KeyDeviceCapabilities{