updated dependencies

This commit is contained in:
ston1th 2023-12-20 20:20:50 +01:00
commit 68d82bd961
450 changed files with 229907 additions and 32 deletions

View file

@ -3,11 +3,11 @@
package types
import (
"maps"
"sync"
"time"
"git.giftfish.de/ston1th/keyctl/pkg/key"
"golang.org/x/exp/maps"
)
const maxSize = 10

View file

@ -3,13 +3,14 @@
package schema
import (
"cmp"
"encoding/hex"
"errors"
"fmt"
"slices"
"git.giftfish.de/ston1th/keyctl/pkg/api/types"
"git.giftfish.de/ston1th/keyctl/pkg/core"
"golang.org/x/exp/slices"
)
const (
@ -98,9 +99,9 @@ func (k Key) Print(share string) (string, error) {
type Keys []Key
func (Keys) Less(a, b Key) bool { return a.Name < b.Name }
func (k Keys) Sort() { slices.SortStableFunc(k, k.Less) }
func (k Keys) Len() int { return len(k) }
func (Keys) Less(a, b Key) int { return cmp.Compare(a.Name, b.Name) }
func (k Keys) Sort() { slices.SortStableFunc(k, k.Less) }
func (k Keys) Len() int { return len(k) }
func (k Keys) Fields() string {
return "Key ID\t Name\t Size\t Encoding\t Type"
}
@ -136,9 +137,9 @@ type Approval struct {
type Approvals []Approval
func (Approvals) Less(a, b Approval) bool { return a.Name < b.Name }
func (a Approvals) Sort() { slices.SortStableFunc(a, a.Less) }
func (a Approvals) Len() int { return len(a) }
func (Approvals) Less(a, b Approval) int { return cmp.Compare(a.Name, b.Name) }
func (a Approvals) Sort() { slices.SortStableFunc(a, a.Less) }
func (a Approvals) Len() int { return len(a) }
func (a Approvals) Fields() string {
return "Key ID\t Approval ID\t Name\t Status\t IP"
}