mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
cmd/k8s-operator: remove unused structs. Cleanup missed in #6718.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
53a9cc76c7
commit
8dbb3b8bbe
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user