Documentation ¶
Index ¶
- Variables
- type KeySet
- func (*KeySet) Descriptor() ([]byte, []int)
- func (m *KeySet) GetSigningKeys() map[string]*SigningKey
- func (m *KeySet) GetVerifyingKeys() map[string]*VerifyingKey
- func (*KeySet) ProtoMessage()
- func (m *KeySet) Reset()
- func (m *KeySet) String() string
- func (m *KeySet) XXX_DiscardUnknown()
- func (m *KeySet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *KeySet) XXX_Merge(src proto.Message)
- func (m *KeySet) XXX_Size() int
- func (m *KeySet) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetAddedAt() *timestamp.Timestamp
- func (m *Metadata) GetDescription() string
- func (m *Metadata) GetKeyId() string
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) String() string
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type SigningKey
- func (*SigningKey) Descriptor() ([]byte, []int)
- func (m *SigningKey) GetKeyMaterial() []byte
- func (m *SigningKey) GetMetadata() *Metadata
- func (m *SigningKey) GetStatus() SigningKey_KeyStatus
- func (*SigningKey) ProtoMessage()
- func (m *SigningKey) Reset()
- func (m *SigningKey) String() string
- func (m *SigningKey) XXX_DiscardUnknown()
- func (m *SigningKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SigningKey) XXX_Merge(src proto.Message)
- func (m *SigningKey) XXX_Size() int
- func (m *SigningKey) XXX_Unmarshal(b []byte) error
- type SigningKey_KeyStatus
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAuthorizedKeys() *tink_go_proto.Keyset
- func (m *User) GetDirectoryId() string
- func (m *User) GetPublicKeyData() []byte
- func (m *User) GetStatus() *status.Status
- func (m *User) GetUserId() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type VerifyingKey
- func (*VerifyingKey) Descriptor() ([]byte, []int)
- func (m *VerifyingKey) GetKeyMaterial() []byte
- func (m *VerifyingKey) GetMetadata() *Metadata
- func (m *VerifyingKey) GetStatus() VerifyingKey_KeyStatus
- func (*VerifyingKey) ProtoMessage()
- func (m *VerifyingKey) Reset()
- func (m *VerifyingKey) String() string
- func (m *VerifyingKey) XXX_DiscardUnknown()
- func (m *VerifyingKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VerifyingKey) XXX_Merge(src proto.Message)
- func (m *VerifyingKey) XXX_Size() int
- func (m *VerifyingKey) XXX_Unmarshal(b []byte) error
- type VerifyingKey_KeyStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var SigningKey_KeyStatus_name = map[int32]string{
0: "UNKNOWN",
1: "ACTIVE",
2: "INACTIVE",
3: "DEPRECATED",
}
View Source
var SigningKey_KeyStatus_value = map[string]int32{
"UNKNOWN": 0,
"ACTIVE": 1,
"INACTIVE": 2,
"DEPRECATED": 3,
}
View Source
var VerifyingKey_KeyStatus_name = map[int32]string{
0: "UNKNOWN",
1: "ACTIVE",
2: "DEPRECATED",
}
View Source
var VerifyingKey_KeyStatus_value = map[string]int32{
"UNKNOWN": 0,
"ACTIVE": 1,
"DEPRECATED": 2,
}
Functions ¶
This section is empty.
Types ¶
type KeySet ¶
type KeySet struct { // signing_keys holds a map of private keys keyed by the ID of their // corresponding public keys. SigningKeys map[string]*SigningKey `` /* 161-byte string literal not displayed */ // verifying_keys holds a map of public keys keyed by their IDs. VerifyingKeys map[string]*VerifyingKey `` /* 167-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
KeySet contains a set of public and private keys.
func (*KeySet) Descriptor ¶
func (*KeySet) GetSigningKeys ¶
func (m *KeySet) GetSigningKeys() map[string]*SigningKey
func (*KeySet) GetVerifyingKeys ¶
func (m *KeySet) GetVerifyingKeys() map[string]*VerifyingKey
func (*KeySet) ProtoMessage ¶
func (*KeySet) ProtoMessage()
func (*KeySet) XXX_DiscardUnknown ¶
func (m *KeySet) XXX_DiscardUnknown()
func (*KeySet) XXX_Marshal ¶
func (*KeySet) XXX_Unmarshal ¶
type Metadata ¶
type Metadata struct { // key_id represents a key identifier. KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId" json:"key_id,omitempty"` // added_at determines the time this key has been added to the key set. AddedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=added_at,json=addedAt" json:"added_at,omitempty"` // description contains an arbitrary text describing the key. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Metadata) Descriptor ¶
func (*Metadata) GetAddedAt ¶
func (*Metadata) GetDescription ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_Unmarshal ¶
type SigningKey ¶
type SigningKey struct { // metadata contains information about this key.. Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // key_material contains the key material in PEM format. KeyMaterial []byte `protobuf:"bytes,2,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // status determines the status of this key, e.g., active, deprecated, etc. Status SigningKey_KeyStatus `protobuf:"varint,3,opt,name=status,enum=google.keytransparency.type.SigningKey_KeyStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SigningKey represents a private key.
func (*SigningKey) Descriptor ¶
func (*SigningKey) Descriptor() ([]byte, []int)
func (*SigningKey) GetKeyMaterial ¶
func (m *SigningKey) GetKeyMaterial() []byte
func (*SigningKey) GetMetadata ¶
func (m *SigningKey) GetMetadata() *Metadata
func (*SigningKey) GetStatus ¶
func (m *SigningKey) GetStatus() SigningKey_KeyStatus
func (*SigningKey) ProtoMessage ¶
func (*SigningKey) ProtoMessage()
func (*SigningKey) Reset ¶
func (m *SigningKey) Reset()
func (*SigningKey) String ¶
func (m *SigningKey) String() string
func (*SigningKey) XXX_DiscardUnknown ¶
func (m *SigningKey) XXX_DiscardUnknown()
func (*SigningKey) XXX_Marshal ¶
func (m *SigningKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SigningKey) XXX_Merge ¶
func (dst *SigningKey) XXX_Merge(src proto.Message)
func (*SigningKey) XXX_Size ¶
func (m *SigningKey) XXX_Size() int
func (*SigningKey) XXX_Unmarshal ¶
func (m *SigningKey) XXX_Unmarshal(b []byte) error
type SigningKey_KeyStatus ¶
type SigningKey_KeyStatus int32
KeyStatus defines a key status.
const ( SigningKey_UNKNOWN SigningKey_KeyStatus = 0 SigningKey_ACTIVE SigningKey_KeyStatus = 1 SigningKey_INACTIVE SigningKey_KeyStatus = 2 SigningKey_DEPRECATED SigningKey_KeyStatus = 3 )
func (SigningKey_KeyStatus) EnumDescriptor ¶
func (SigningKey_KeyStatus) EnumDescriptor() ([]byte, []int)
func (SigningKey_KeyStatus) String ¶
func (x SigningKey_KeyStatus) String() string
type User ¶
type User struct { // directory_id specifies the directory. DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"` // user_id specifies the user. UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // public_key_data is the public key material for this account. PublicKeyData []byte `protobuf:"bytes,4,opt,name=public_key_data,json=publicKeyData,proto3" json:"public_key_data,omitempty"` // authorized_keys is the set of keys allowed to sign updates for this entry. AuthorizedKeys *tink_go_proto.Keyset `protobuf:"bytes,5,opt,name=authorized_keys,json=authorizedKeys,proto3" json:"authorized_keys,omitempty"` // status is set when account is part of a batch operation. Status *status.Status `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
User represents plain account information that gets committed to and obfuscated in Entry.
func (*User) Descriptor ¶
func (*User) GetAuthorizedKeys ¶
func (m *User) GetAuthorizedKeys() *tink_go_proto.Keyset
func (*User) GetDirectoryId ¶
func (*User) GetPublicKeyData ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type VerifyingKey ¶
type VerifyingKey struct { // metadata contains information about this key.. Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // key_material contains the key material in PEM format. KeyMaterial []byte `protobuf:"bytes,2,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` // status determines the status of this key, e.g., active, deprecated, etc. Status VerifyingKey_KeyStatus `protobuf:"varint,3,opt,name=status,enum=google.keytransparency.type.VerifyingKey_KeyStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
VerifyingKey represents a public key.
func (*VerifyingKey) Descriptor ¶
func (*VerifyingKey) Descriptor() ([]byte, []int)
func (*VerifyingKey) GetKeyMaterial ¶
func (m *VerifyingKey) GetKeyMaterial() []byte
func (*VerifyingKey) GetMetadata ¶
func (m *VerifyingKey) GetMetadata() *Metadata
func (*VerifyingKey) GetStatus ¶
func (m *VerifyingKey) GetStatus() VerifyingKey_KeyStatus
func (*VerifyingKey) ProtoMessage ¶
func (*VerifyingKey) ProtoMessage()
func (*VerifyingKey) Reset ¶
func (m *VerifyingKey) Reset()
func (*VerifyingKey) String ¶
func (m *VerifyingKey) String() string
func (*VerifyingKey) XXX_DiscardUnknown ¶
func (m *VerifyingKey) XXX_DiscardUnknown()
func (*VerifyingKey) XXX_Marshal ¶
func (m *VerifyingKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyingKey) XXX_Merge ¶
func (dst *VerifyingKey) XXX_Merge(src proto.Message)
func (*VerifyingKey) XXX_Size ¶
func (m *VerifyingKey) XXX_Size() int
func (*VerifyingKey) XXX_Unmarshal ¶
func (m *VerifyingKey) XXX_Unmarshal(b []byte) error
type VerifyingKey_KeyStatus ¶
type VerifyingKey_KeyStatus int32
KeyStatus defines a key status.
const ( VerifyingKey_UNKNOWN VerifyingKey_KeyStatus = 0 VerifyingKey_ACTIVE VerifyingKey_KeyStatus = 1 VerifyingKey_DEPRECATED VerifyingKey_KeyStatus = 2 )
func (VerifyingKey_KeyStatus) EnumDescriptor ¶
func (VerifyingKey_KeyStatus) EnumDescriptor() ([]byte, []int)
func (VerifyingKey_KeyStatus) String ¶
func (x VerifyingKey_KeyStatus) String() string
Click to show internal directories.
Click to hide internal directories.