Documentation ¶
Index ¶
- func ParseDatetime(datetimeStr string) *time.Time
- type AtKey
- type AtKeyBase
- func (a *AtKeyBase) GetFullyQualifiedKeyName() string
- func (a *AtKeyBase) GetMetadata() *Metadata
- func (a *AtKeyBase) GetName() string
- func (a *AtKeyBase) GetNamespace() string
- func (a *AtKeyBase) GetSharedBy() *AtSign
- func (a *AtKeyBase) GetSharedWith() *AtSign
- func (a *AtKeyBase) SetMetadata(m Metadata) AtKey
- func (a *AtKeyBase) SetName(name string) AtKey
- func (a *AtKeyBase) SetNamespace(namespace string) AtKey
- func (a *AtKeyBase) SetTimeToBirth(ttb int) AtKey
- func (a *AtKeyBase) SetTimeToLive(ttl int) AtKey
- func (a *AtKeyBase) String() string
- type AtSign
- type Keys
- type Metadata
- type PrivateHiddenKey
- type PublicKey
- type SelfKey
- type SharedKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDatetime ¶
Types ¶
type AtKey ¶
type AtKey interface { GetNamespace() string SetNamespace(namespace string) AtKey GetFullyQualifiedKeyName() string SetName(name string) AtKey GetName() string SetTimeToLive(ttl int) AtKey SetTimeToBirth(ttb int) AtKey String() string GetMetadata() *Metadata SetMetadata(m Metadata) AtKey }
func KeysFromString ¶
type AtKeyBase ¶
func (*AtKeyBase) GetFullyQualifiedKeyName ¶
func (*AtKeyBase) GetMetadata ¶
func (*AtKeyBase) GetNamespace ¶
func (*AtKeyBase) GetSharedBy ¶
func (*AtKeyBase) GetSharedWith ¶
func (*AtKeyBase) SetMetadata ¶
func (*AtKeyBase) SetNamespace ¶
func (*AtKeyBase) SetTimeToBirth ¶
func (*AtKeyBase) SetTimeToLive ¶
type Metadata ¶
type Metadata struct { TTL int `json:"ttl"` TTB int `json:"ttb"` TTR int `json:"ttr"` CCD bool `json:"ccd"` CreatedBy string `json:"createdBy"` UpdatedBy string `json:"updatedBy"` AvailableAt *time.Time `json:"availableAt,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` RefreshAt *time.Time `json:"refreshAt,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` Status string `json:"status,omitempty"` Version int `json:"version"` DataSignature string `json:"dataSignature,omitempty"` IsPublic bool `json:"isPublic"` IsEncrypted bool `json:"isEncrypted"` IsHidden bool `json:"isHidden"` NamespaceAware bool `json:"namespaceAware"` IsBinary bool `json:"isBinary"` IsCached bool `json:"isCached"` PubKeyCS string `json:"pubKeyCS,omitempty"` Encoding string `json:"encoding,omitempty"` IVNonce string `json:"ivNonce,omitempty"` }
type PrivateHiddenKey ¶
type PrivateHiddenKey struct {
AtKeyBase
}
func NewPrivateHiddenKey ¶
func NewPrivateHiddenKey(name string, sharedBy *AtSign) *PrivateHiddenKey
type SharedKey ¶
type SharedKey struct {}
func SharedKeyFromString ¶
func (*SharedKey) GetSharedSharedKeyName ¶
Click to show internal directories.
Click to hide internal directories.