Versions in this module Expand all Collapse all v1 v1.0.3 Oct 18, 2021 v1.0.2 Oct 11, 2021 Changes in this version + func Link(parent Keyring, child Id) error — linux/amd64 v1.0.0 Jul 23, 2019 Changes in this version + var ErrInvalidReference = errors.New("invalid keyctl reference") + var ErrStreamClosed = errors.New("keyctl write stream closed") + var ErrUnsupportedKeyType = errors.New("unsupported keyctl key type") + func Chgrp(k Id, group int) error + func Chown(k Id, user int) error + func NewReader(key *Key) io.Reader + func OpenReader(name string, ring Keyring) (io.Reader, error) + func SetKeyringTTL(kr NamedKeyring, nsecs uint) error — linux/amd64 + func SetPerm(k Id, p KeyPerm) error + func Unlink(parent Keyring, child Id) error — linux/amd64 + func UnlinkKeyring(kr NamedKeyring) error — linux/amd64 + type Flusher interface + Flush func() error + func CreateWriter(name string, ring Keyring) (Flusher, error) + func NewWriter(key *Key) Flusher + type Id interface — linux/amd64 + Id func() int32 + Info func() (Info, error) + type Info struct + Gid int + Name string + Perm KeyPerm + Type string + Uid int + func (i Info) Permissions() string + func (i Info) Valid() bool + type Key struct + Name string + func (k *Key) ExpireAfter(nsecs uint) error + func (k *Key) Get() ([]byte, error) + func (k *Key) Id() int32 + func (k *Key) Info() (Info, error) + func (k *Key) Set(b []byte) error + func (k *Key) Unlink() error + type KeyPerm uint32 + const PermGroupAll + const PermGroupLink + const PermGroupRead + const PermGroupSearch + const PermGroupSetattr + const PermGroupView + const PermGroupWrite + const PermOtherAll + const PermOtherLink + const PermOtherRead + const PermOtherSearch + const PermOtherSetattr + const PermOtherView + const PermOtherWrite + const PermProcessAll + const PermProcessLink + const PermProcessRead + const PermProcessSearch + const PermProcessSetattr + const PermProcessView + const PermProcessWrite + const PermUserAll + const PermUserLink + const PermUserRead + const PermUserSearch + const PermUserSetattr + const PermUserView + const PermUserWrite + func (p KeyPerm) Group() string + func (p KeyPerm) Other() string + func (p KeyPerm) Process() string + func (p KeyPerm) String() string + func (p KeyPerm) User() string + type Keyring interface — linux/amd64 + Add func(string, []byte) (*Key, error) + Search func(string) (*Key, error) + SetDefaultTimeout func(uint) + func GroupKeyring() (Keyring, error) + func ProcessKeyring() (Keyring, error) + func SessionKeyring() (Keyring, error) + func ThreadKeyring() (Keyring, error) + func UserSessionKeyring() (Keyring, error) + type NamedKeyring interface — linux/amd64 + Name func() string + func CreateKeyring(parent Keyring, name string) (NamedKeyring, error) + func OpenKeyring(parent Keyring, name string) (NamedKeyring, error) + type Reference struct + Id int32 + func ListKeyring(kr Keyring) ([]Reference, error) + func (r *Reference) Get() (Id, error) + func (r *Reference) Info() (i Info, err error) + func (r *Reference) Valid() bool