This repository has been archived on 2026-11-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
golib/keyring/keyring_other.go
unkin-agent b636617f1b
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Link keyring keys exclusively so concurrent first users share one key
2026-10-23 22:24:38 +11:00

26 lines
732 B
Go

//go:build !linux
package keyring
import (
"errors"
"fmt"
)
var errUnsupported = fmt.Errorf("keyring: kernel keyring requires linux: %w", errors.ErrUnsupported)
// Keyring is a stub: the kernel key retention service is Linux-only.
type Keyring struct{}
// Open always fails: the kernel key retention service is Linux-only.
func Open(string) (*Keyring, error) { return nil, errUnsupported }
// Seal always fails on this platform.
func (*Keyring) Seal([]byte) ([]byte, error) { return nil, errUnsupported }
// Unseal always fails on this platform.
func (*Keyring) Unseal([]byte) ([]byte, error) { return nil, errUnsupported }
// Forget always fails on this platform.
func (*Keyring) Forget() error { return errUnsupported }