Documentation ¶
Index ¶
- type DecryptedKeyableBlob
- type DecryptedResponse
- type EnvMap
- type FetchResponse
- type InheritanceOverrides
- type InheritanceOverridesBlobs
- type KeyableBlob
- type KeyableBlobFields
- type KeyableBlobFieldsWithTrustChain
- type KeyableBlobWithTrustChains
- type KeyableEnv
- type KeyableEnvVal
- type ResponseWithKeys
- type ResponseWithTrustChains
- type RootKeys
- type RootPubkeyReplacement
- type V1EnvServiceResponse
- type V1ResponseWithKeys
- type V1ResponseWithTrustChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecryptedKeyableBlob ¶
type DecryptedKeyableBlob struct { Env KeyableEnv SubEnv KeyableEnv Locals KeyableEnv InheritanceOverrides InheritanceOverrides }
type DecryptedResponse ¶
type DecryptedResponse struct { *DecryptedKeyableBlob DecryptedBlocks []*DecryptedKeyableBlob }
type FetchResponse ¶
type FetchResponse struct { *KeyableBlob OrgId string `json:"orgId"` EncryptedPrivkey *crypto.EncryptedData `json:"encryptedPrivkey"` Pubkey *crypto.Pubkey `json:"pubkey"` SignedTrustedRoot *crypto.SignedData `json:"signedTrustedRoot"` Blocks []*KeyableBlob `json:"blocks,omitempty"` RootPubkeyReplacements []*RootPubkeyReplacement `json:"rootPubkeyReplacements,omitempty"` V1Payload *V1EnvServiceResponse `json:"v1Payload,omitempty"` }
type InheritanceOverrides ¶
type InheritanceOverrides map[string]KeyableEnv
type InheritanceOverridesBlobs ¶
type InheritanceOverridesBlobs map[string]KeyableBlobFields
type KeyableBlob ¶
type KeyableBlob struct { Env *KeyableBlobFields `json:"env,omitempty"` SubEnv *KeyableBlobFields `json:"subEnv,omitempty"` Locals *KeyableBlobFields `json:"locals,omitempty"` InheritanceOverrides InheritanceOverridesBlobs `json:"inheritanceOverrides,omitempty"` }
type KeyableBlobFields ¶
type KeyableBlobFields struct { EncryptedEnv *crypto.EncryptedData `json:"encryptedEnv"` EncryptedKey *crypto.EncryptedData `json:"encryptedKey"` EncryptedByPubkeyId string `json:"encryptedByPubkeyId"` EncryptedByPubkey *crypto.Pubkey `json:"encryptedByPubkey"` EncryptedByTrustChain *crypto.SignedData `json:"encryptedByTrustChain"` }
type KeyableBlobFieldsWithTrustChain ¶
type KeyableBlobFieldsWithTrustChain struct { *KeyableBlobFields DecryptedPrivkey *crypto.Privkey TrustedKeyablesChain *trust.TrustedKeyablesChain Signer *trust.Signer }
type KeyableBlobWithTrustChains ¶
type KeyableBlobWithTrustChains struct { Env *KeyableBlobFieldsWithTrustChain SubEnv *KeyableBlobFieldsWithTrustChain Locals *KeyableBlobFieldsWithTrustChain InheritanceOverrides map[string]*KeyableBlobFieldsWithTrustChain }
type KeyableEnv ¶
type KeyableEnv map[string]*KeyableEnvVal
type KeyableEnvVal ¶
type ResponseWithKeys ¶
type ResponseWithKeys struct { RootKeys Response *FetchResponse }
type ResponseWithTrustChains ¶
type ResponseWithTrustChains struct { *KeyableBlobWithTrustChains BlocksWithTrustChain []*KeyableBlobWithTrustChains ResponseWithKeys *ResponseWithKeys }
type RootPubkeyReplacement ¶
type V1EnvServiceResponse ¶
type V1EnvServiceResponse struct { EncryptedV2Key string `json:"encryptedV2Key"` EncryptedPrivkey string `json:"encryptedPrivkey"` PubkeyArmored string `json:"pubkey"` SignedTrustedPubkeys string `json:"signedTrustedPubkeys"` SignedById string `json:"signedById"` SignedByPubkeyArmored string `json:"signedByPubkey"` SignedByTrustedPubkeys string `json:"signedByTrustedPubkeys"` }
func (*V1EnvServiceResponse) LegacyV1Parse ¶
func (response *V1EnvServiceResponse) LegacyV1Parse(pw string) (EnvMap, error)
type V1ResponseWithKeys ¶
type V1ResponseWithKeys struct { RawResponse *V1EnvServiceResponse DecryptedPrivkey, VerifiedPubkey, SignerKeyring, SignedByPubkey openpgp.EntityList }
type V1ResponseWithTrustChain ¶
type V1ResponseWithTrustChain struct { ResponseWithKeys *V1ResponseWithKeys TrustedKeyablesChain *trust.V1TrustedKeyablesChain Signer *trust.V1Signer }
Click to show internal directories.
Click to hide internal directories.