Documentation ¶
Index ¶
- Constants
- func DefaultExpiration() (time.Time, error)
- type AuthNKey
- type AuthNKeySearchKey
- type AuthNKeySearchQuery
- type AuthNKeySearchRequest
- type AuthNKeySearchResponse
- type AuthNKeyState
- type AuthNKeyType
- type AuthNKeyView
- type Key
- type KeyPair
- type KeySearchKey
- type KeySearchQuery
- type KeySearchRequest
- type KeySearchResponse
- type KeyUsage
- type KeyView
- type ObjectType
- type PublicKey
- type SigningKey
Constants ¶
View Source
const ( AuthNKeyTypeNONE = iota AuthNKeyTypeJSON )
Variables ¶
This section is empty.
Functions ¶
func DefaultExpiration ¶
Types ¶
type AuthNKey ¶
type AuthNKey struct { models.ObjectRoot KeyID string ObjectType ObjectType Type AuthNKeyType ExpirationDate time.Time PrivateKey []byte }
type AuthNKeySearchKey ¶
type AuthNKeySearchKey int32
const ( AuthNKeyKeyUnspecified AuthNKeySearchKey = iota AuthNKeyKeyID AuthNKeyObjectID AuthNKeyObjectType )
type AuthNKeySearchQuery ¶
type AuthNKeySearchQuery struct { Key AuthNKeySearchKey Method domain.SearchMethod Value interface{} }
type AuthNKeySearchRequest ¶
type AuthNKeySearchRequest struct { Offset uint64 Limit uint64 SortingColumn AuthNKeySearchKey Asc bool Queries []*AuthNKeySearchQuery }
func (*AuthNKeySearchRequest) EnsureLimit ¶
func (r *AuthNKeySearchRequest) EnsureLimit(limit uint64) error
type AuthNKeySearchResponse ¶
type AuthNKeyState ¶
type AuthNKeyState int32
const ( AuthNKeyStateActive AuthNKeyState = iota AuthNKeyStateInactive AuthNKeyStateRemoved )
type AuthNKeyType ¶
type AuthNKeyType int32
type AuthNKeyView ¶
type AuthNKeyView struct { ID string ObjectID string ObjectType ObjectType AuthIdentifier string Type AuthNKeyType Sequence uint64 CreationDate time.Time ExpirationDate time.Time PublicKey []byte State AuthNKeyState }
type KeyPair ¶
type KeySearchKey ¶
type KeySearchKey int32
const ( KeySearchKeyUnspecified KeySearchKey = iota KeySearchKeyID KeySearchKeyPrivate KeySearchKeyExpiry KeySearchKeyUsage )
type KeySearchQuery ¶
type KeySearchQuery struct { Key KeySearchKey Method domain.SearchMethod Value interface{} }
type KeySearchRequest ¶
type KeySearchRequest struct { Offset uint64 Limit uint64 SortingColumn KeySearchKey Asc bool Queries []*KeySearchQuery }
func (*KeySearchRequest) EnsureLimit ¶
func (r *KeySearchRequest) EnsureLimit(limit uint64) error
type KeySearchResponse ¶
type ObjectType ¶
type ObjectType int32
const ( AuthNKeyObjectTypeUnspecified ObjectType = iota AuthNKeyObjectTypeUser AuthNKeyObjectTypeApplication )
type PublicKey ¶
func PublicKeyFromKeyView ¶
func PublicKeyFromKeyView(key *KeyView, alg crypto.EncryptionAlgorithm) (*PublicKey, error)
func PublicKeysFromKeyView ¶
func PublicKeysFromKeyView(keys []*KeyView, alg crypto.EncryptionAlgorithm) ([]*PublicKey, error)
type SigningKey ¶
func SigningKeyFromKeyView ¶
func SigningKeyFromKeyView(key *KeyView, alg crypto.EncryptionAlgorithm) (*SigningKey, error)
Click to show internal directories.
Click to hide internal directories.