keymaster

package
v0.0.0-...-02c3ccb Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package keymaster is a generated protocol buffer package.

It is generated from these files:

keymaster.proto

It has these top-level messages:

Metadata
SigningKey
VerifyingKey
KeySet

Index

Constants

This section is empty.

Variables

View Source
var SigningKey_KeyStatus_name = map[int32]string{
	0: "ACTIVE",
	1: "INACTIVE",
	2: "DEPRECATED",
}
View Source
var SigningKey_KeyStatus_value = map[string]int32{
	"ACTIVE":     0,
	"INACTIVE":   1,
	"DEPRECATED": 2,
}
View Source
var VerifyingKey_KeyStatus_name = map[int32]string{
	0: "ACTIVE",
	1: "DEPRECATED",
}
View Source
var VerifyingKey_KeyStatus_value = map[string]int32{
	"ACTIVE":     0,
	"DEPRECATED": 1,
}

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

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

func (*Metadata) GetAddedAt

func (m *Metadata) GetAddedAt() *google_protobuf.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

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=keymaster.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_ACTIVE     SigningKey_KeyStatus = 0
	SigningKey_INACTIVE   SigningKey_KeyStatus = 1
	SigningKey_DEPRECATED SigningKey_KeyStatus = 2
)

func (SigningKey_KeyStatus) EnumDescriptor

func (SigningKey_KeyStatus) EnumDescriptor() ([]byte, []int)

func (SigningKey_KeyStatus) String

func (x SigningKey_KeyStatus) String() string

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=keymaster.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_ACTIVE     VerifyingKey_KeyStatus = 0
	VerifyingKey_DEPRECATED VerifyingKey_KeyStatus = 1
)

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