Adds grpc/cli support for preauthkey tags
This commit is contained in:
parent
e27a4db281
commit
791272e408
4 changed files with 81 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
//nolint
|
||||
// nolint
|
||||
package headscale
|
||||
|
||||
import (
|
||||
|
|
@ -111,6 +111,7 @@ func (api headscaleV1APIServer) CreatePreAuthKey(
|
|||
request.GetReusable(),
|
||||
request.GetEphemeral(),
|
||||
&expiration,
|
||||
request.AclTags,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -141,6 +142,7 @@ func (api headscaleV1APIServer) ListPreAuthKeys(
|
|||
request *v1.ListPreAuthKeysRequest,
|
||||
) (*v1.ListPreAuthKeysResponse, error) {
|
||||
preAuthKeys, err := api.h.ListPreAuthKeys(request.GetNamespace())
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue