type_go_proto

package
v0.1.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

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) Reset

func (m *KeySet) Reset()

func (*KeySet) String

func (m *KeySet) String() string

func (*KeySet) XXX_DiscardUnknown

func (m *KeySet) XXX_DiscardUnknown()

func (*KeySet) XXX_Marshal

func (m *KeySet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeySet) XXX_Merge

func (dst *KeySet) XXX_Merge(src proto.Message)

func (*KeySet) XXX_Size

func (m *KeySet) XXX_Size() int

func (*KeySet) XXX_Unmarshal

func (m *KeySet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Metadata) GetAddedAt

func (m *Metadata) GetAddedAt() *timestamp.Timestamp

func (*Metadata) GetDescription

func (m *Metadata) GetDescription() string

func (*Metadata) GetKeyId

func (m *Metadata) GetKeyId() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge

func (dst *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

func (m *Metadata) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*User) GetAuthorizedKeys

func (m *User) GetAuthorizedKeys() *tink_go_proto.Keyset

func (*User) GetDirectoryId

func (m *User) GetDirectoryId() string

func (*User) GetPublicKeyData

func (m *User) GetPublicKeyData() []byte

func (*User) GetStatus

func (m *User) GetStatus() *status.Status

func (*User) GetUserId

func (m *User) GetUserId() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (dst *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL