Documentation ¶
Overview ¶
Package type_proto is a generated protocol buffer package.
It is generated from these files:
type/type_proto/type.proto type/type_proto/keymaster.proto type/type_proto/authz.proto
It has these top-level messages:
User Metadata SigningKey VerifyingKey KeySet
Index ¶
- Variables
- type KeySet
- type Metadata
- type Permission
- type SigningKey
- type SigningKey_KeyStatus
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAppId() string
- func (m *User) GetAuthorizedKeys() []*keyspb.PublicKey
- func (m *User) GetDomainId() string
- func (m *User) GetPublicKeyData() []byte
- func (m *User) GetStatus() *google_rpc.Status
- func (m *User) GetUserId() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- 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
- type VerifyingKey_KeyStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var Permission_name = map[int32]string{
0: "UNKNOWN",
1: "LOG",
2: "READ",
3: "WRITE",
}
View Source
var Permission_value = map[string]int32{
"UNKNOWN": 0,
"LOG": 1,
"READ": 2,
"WRITE": 3,
}
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 */ }
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()
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 *google_protobuf1.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"` }
func (*Metadata) Descriptor ¶
func (*Metadata) GetAddedAt ¶
func (m *Metadata) GetAddedAt() *google_protobuf1.Timestamp
func (*Metadata) GetDescription ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
type Permission ¶
type Permission int32
Permission specifies the permission a role can take.
const ( Permission_UNKNOWN Permission = 0 // LOG indicates whether access to resources will be logged. Permission_LOG Permission = 1 Permission_READ Permission = 2 Permission_WRITE Permission = 3 )
func (Permission) EnumDescriptor ¶
func (Permission) EnumDescriptor() ([]byte, []int)
func (Permission) String ¶
func (x Permission) String() string
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"` }
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
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 { // domain_id specifies the domain. DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"` // app_id specifies that application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId" json:"app_id,omitempty"` // user_id specifies the user. UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" 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 []*keyspb.PublicKey `protobuf:"bytes,5,rep,name=authorized_keys,json=authorizedKeys" json:"authorized_keys,omitempty"` // status is set when account is part of a batch operation. Status *google_rpc.Status `protobuf:"bytes,6,opt,name=status" json:"status,omitempty"` }
User represents plain account information that gets committed to and obfuscated in Entry.
func (*User) Descriptor ¶
func (*User) GetAuthorizedKeys ¶
func (*User) GetDomainId ¶
func (*User) GetPublicKeyData ¶
func (*User) GetStatus ¶
func (m *User) GetStatus() *google_rpc.Status
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
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"` }
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
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.