Versions in this module Expand all Collapse all v0 v0.7.0 Dec 5, 2019 Changes in this version + var Flavor_name = map[int32]string + var Flavor_value = map[string]int32 + func VerifierFromToken(key crypto.PublicKey, token *Token) ([]byte, error) + func VerifyToken(key crypto.PublicKey, token *Token, sig []byte) error + type Credential struct + Origin string + Token *Token + Verifier *Token + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func AuthSysRequestFromCreds(ext UserExt, creds *security.DomainInfo, signing crypto.PrivateKey) (*Credential, error) + func (*Credential) Descriptor() ([]byte, []int) + func (*Credential) ProtoMessage() + func (dst *Credential) XXX_Merge(src proto.Message) + func (m *Credential) GetOrigin() string + func (m *Credential) GetToken() *Token + func (m *Credential) GetVerifier() *Token + func (m *Credential) Reset() + func (m *Credential) String() string + func (m *Credential) XXX_DiscardUnknown() + func (m *Credential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Credential) XXX_Size() int + func (m *Credential) XXX_Unmarshal(b []byte) error + type Flavor int32 + const Flavor_AUTH_NONE + const Flavor_AUTH_SYS + func (Flavor) EnumDescriptor() ([]byte, []int) + func (x Flavor) String() string + type Sys struct + Group string + Groups []string + Machinename string + Secctx string + Stamp uint64 + User string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func AuthSysFromAuthToken(authToken *Token) (*Sys, error) + func (*Sys) Descriptor() ([]byte, []int) + func (*Sys) ProtoMessage() + func (dst *Sys) XXX_Merge(src proto.Message) + func (m *Sys) GetGroup() string + func (m *Sys) GetGroups() []string + func (m *Sys) GetMachinename() string + func (m *Sys) GetSecctx() string + func (m *Sys) GetStamp() uint64 + func (m *Sys) GetUser() string + func (m *Sys) Reset() + func (m *Sys) String() string + func (m *Sys) XXX_DiscardUnknown() + func (m *Sys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Sys) XXX_Size() int + func (m *Sys) XXX_Unmarshal(b []byte) error + type SysVerifier struct + Signature []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SysVerifier) Descriptor() ([]byte, []int) + func (*SysVerifier) ProtoMessage() + func (dst *SysVerifier) XXX_Merge(src proto.Message) + func (m *SysVerifier) GetSignature() []byte + func (m *SysVerifier) Reset() + func (m *SysVerifier) String() string + func (m *SysVerifier) XXX_DiscardUnknown() + func (m *SysVerifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SysVerifier) XXX_Size() int + func (m *SysVerifier) XXX_Unmarshal(b []byte) error + type Token struct + Data []byte + Flavor Flavor + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (dst *Token) XXX_Merge(src proto.Message) + func (m *Token) GetData() []byte + func (m *Token) GetFlavor() Flavor + func (m *Token) Reset() + func (m *Token) String() string + func (m *Token) XXX_DiscardUnknown() + func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Token) XXX_Size() int + func (m *Token) XXX_Unmarshal(b []byte) error + type User interface + GroupIDs func() ([]uint32, error) + Username func() string + type UserExt interface + LookupGroupID func(gid uint32) (*user.Group, error) + LookupUserID func(uid uint32) (User, error)