notary: github.com/docker/notary/proto Index | Files

package proto

import "github.com/docker/notary/proto"

Package proto is a generated protocol buffer package.

It is generated from these files:

signer.proto

It has these top-level messages:

CreateKeyRequest
KeyInfo
KeyID
Algorithm
GetKeyInfoResponse
PublicKey
Signature
SignatureRequest
Void

Index

Package Files

generator.go signer.pb.go

func RegisterKeyManagementServer Uses

func RegisterKeyManagementServer(s *grpc.Server, srv KeyManagementServer)

func RegisterSignerServer Uses

func RegisterSignerServer(s *grpc.Server, srv SignerServer)

type Algorithm Uses

type Algorithm struct {
    Algorithm string `protobuf:"bytes,1,opt,name=algorithm" json:"algorithm,omitempty"`
}

Type holds the type of crypto algorithm used

func (*Algorithm) Descriptor Uses

func (*Algorithm) Descriptor() ([]byte, []int)

func (*Algorithm) GetAlgorithm Uses

func (m *Algorithm) GetAlgorithm() string

func (*Algorithm) ProtoMessage Uses

func (*Algorithm) ProtoMessage()

func (*Algorithm) Reset Uses

func (m *Algorithm) Reset()

func (*Algorithm) String Uses

func (m *Algorithm) String() string

type CreateKeyRequest Uses

type CreateKeyRequest struct {
    Algorithm string `protobuf:"bytes,1,opt,name=algorithm" json:"algorithm,omitempty"`
    Gun       string `protobuf:"bytes,2,opt,name=gun" json:"gun,omitempty"`
    Role      string `protobuf:"bytes,3,opt,name=role" json:"role,omitempty"`
}

func (*CreateKeyRequest) Descriptor Uses

func (*CreateKeyRequest) Descriptor() ([]byte, []int)

func (*CreateKeyRequest) GetAlgorithm Uses

func (m *CreateKeyRequest) GetAlgorithm() string

func (*CreateKeyRequest) GetGun Uses

func (m *CreateKeyRequest) GetGun() string

func (*CreateKeyRequest) GetRole Uses

func (m *CreateKeyRequest) GetRole() string

func (*CreateKeyRequest) ProtoMessage Uses

func (*CreateKeyRequest) ProtoMessage()

func (*CreateKeyRequest) Reset Uses

func (m *CreateKeyRequest) Reset()

func (*CreateKeyRequest) String Uses

func (m *CreateKeyRequest) String() string

type GetKeyInfoResponse Uses

type GetKeyInfoResponse struct {
    KeyInfo   *KeyInfo `protobuf:"bytes,1,opt,name=keyInfo" json:"keyInfo,omitempty"`
    PublicKey []byte   `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
    Role      string   `protobuf:"bytes,3,opt,name=role" json:"role,omitempty"`
}

GetKeyInfoResponse returns the public key, the role, and the algorithm and key ID. For backwards compatibility, it doesn't embed a PublicKey object

func (*GetKeyInfoResponse) Descriptor Uses

func (*GetKeyInfoResponse) Descriptor() ([]byte, []int)

func (*GetKeyInfoResponse) GetKeyInfo Uses

func (m *GetKeyInfoResponse) GetKeyInfo() *KeyInfo

func (*GetKeyInfoResponse) GetPublicKey Uses

func (m *GetKeyInfoResponse) GetPublicKey() []byte

func (*GetKeyInfoResponse) GetRole Uses

func (m *GetKeyInfoResponse) GetRole() string

func (*GetKeyInfoResponse) ProtoMessage Uses

func (*GetKeyInfoResponse) ProtoMessage()

func (*GetKeyInfoResponse) Reset Uses

func (m *GetKeyInfoResponse) Reset()

func (*GetKeyInfoResponse) String Uses

func (m *GetKeyInfoResponse) String() string

type KeyID Uses

type KeyID struct {
    ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
}

KeyID holds an ID that is used to reference the key

func (*KeyID) Descriptor Uses

func (*KeyID) Descriptor() ([]byte, []int)

func (*KeyID) GetID Uses

func (m *KeyID) GetID() string

func (*KeyID) ProtoMessage Uses

func (*KeyID) ProtoMessage()

func (*KeyID) Reset Uses

func (m *KeyID) Reset()

func (*KeyID) String Uses

func (m *KeyID) String() string

type KeyInfo Uses

type KeyInfo struct {
    KeyID     *KeyID     `protobuf:"bytes,1,opt,name=keyID" json:"keyID,omitempty"`
    Algorithm *Algorithm `protobuf:"bytes,2,opt,name=algorithm" json:"algorithm,omitempty"`
}

KeyInfo holds a KeyID that is used to reference the key and it's algorithm

func (*KeyInfo) Descriptor Uses

func (*KeyInfo) Descriptor() ([]byte, []int)

func (*KeyInfo) GetAlgorithm Uses

func (m *KeyInfo) GetAlgorithm() *Algorithm

func (*KeyInfo) GetKeyID Uses

func (m *KeyInfo) GetKeyID() *KeyID

func (*KeyInfo) ProtoMessage Uses

func (*KeyInfo) ProtoMessage()

func (*KeyInfo) Reset Uses

func (m *KeyInfo) Reset()

func (*KeyInfo) String Uses

func (m *KeyInfo) String() string

type KeyManagementClient Uses

type KeyManagementClient interface {
    // CreateKey creates as asymmetric key pair and returns the PublicKey
    CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*PublicKey, error)
    // DeleteKey deletes the key associated with a KeyID
    DeleteKey(ctx context.Context, in *KeyID, opts ...grpc.CallOption) (*Void, error)
    // GetKeyInfo returns the PublicKey associated with a KeyID
    GetKeyInfo(ctx context.Context, in *KeyID, opts ...grpc.CallOption) (*GetKeyInfoResponse, error)
}

func NewKeyManagementClient Uses

func NewKeyManagementClient(cc *grpc.ClientConn) KeyManagementClient

type KeyManagementServer Uses

type KeyManagementServer interface {
    // CreateKey creates as asymmetric key pair and returns the PublicKey
    CreateKey(context.Context, *CreateKeyRequest) (*PublicKey, error)
    // DeleteKey deletes the key associated with a KeyID
    DeleteKey(context.Context, *KeyID) (*Void, error)
    // GetKeyInfo returns the PublicKey associated with a KeyID
    GetKeyInfo(context.Context, *KeyID) (*GetKeyInfoResponse, error)
}

type PublicKey Uses

type PublicKey struct {
    KeyInfo   *KeyInfo `protobuf:"bytes,1,opt,name=keyInfo" json:"keyInfo,omitempty"`
    PublicKey []byte   `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
}

PublicKey has a KeyInfo that is used to reference the key, and opaque bytes of a publicKey

func (*PublicKey) Descriptor Uses

func (*PublicKey) Descriptor() ([]byte, []int)

func (*PublicKey) GetKeyInfo Uses

func (m *PublicKey) GetKeyInfo() *KeyInfo

func (*PublicKey) GetPublicKey Uses

func (m *PublicKey) GetPublicKey() []byte

func (*PublicKey) ProtoMessage Uses

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset Uses

func (m *PublicKey) Reset()

func (*PublicKey) String Uses

func (m *PublicKey) String() string

type Signature Uses

type Signature struct {
    KeyInfo   *KeyInfo   `protobuf:"bytes,1,opt,name=keyInfo" json:"keyInfo,omitempty"`
    Algorithm *Algorithm `protobuf:"bytes,2,opt,name=algorithm" json:"algorithm,omitempty"`
    Content   []byte     `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
}

Signature specifies a KeyInfo that was used for signing and signed content

func (*Signature) Descriptor Uses

func (*Signature) Descriptor() ([]byte, []int)

func (*Signature) GetAlgorithm Uses

func (m *Signature) GetAlgorithm() *Algorithm

func (*Signature) GetContent Uses

func (m *Signature) GetContent() []byte

func (*Signature) GetKeyInfo Uses

func (m *Signature) GetKeyInfo() *KeyInfo

func (*Signature) ProtoMessage Uses

func (*Signature) ProtoMessage()

func (*Signature) Reset Uses

func (m *Signature) Reset()

func (*Signature) String Uses

func (m *Signature) String() string

type SignatureRequest Uses

type SignatureRequest struct {
    KeyID   *KeyID `protobuf:"bytes,1,opt,name=keyID" json:"keyID,omitempty"`
    Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
}

SignatureRequests specifies a KeyInfo, and content to be signed

func (*SignatureRequest) Descriptor Uses

func (*SignatureRequest) Descriptor() ([]byte, []int)

func (*SignatureRequest) GetContent Uses

func (m *SignatureRequest) GetContent() []byte

func (*SignatureRequest) GetKeyID Uses

func (m *SignatureRequest) GetKeyID() *KeyID

func (*SignatureRequest) ProtoMessage Uses

func (*SignatureRequest) ProtoMessage()

func (*SignatureRequest) Reset Uses

func (m *SignatureRequest) Reset()

func (*SignatureRequest) String Uses

func (m *SignatureRequest) String() string

type SignerClient Uses

type SignerClient interface {
    // Sign calculates a cryptographic signature using the Key associated with a KeyID and returns the signature
    Sign(ctx context.Context, in *SignatureRequest, opts ...grpc.CallOption) (*Signature, error)
}

func NewSignerClient Uses

func NewSignerClient(cc *grpc.ClientConn) SignerClient

type SignerServer Uses

type SignerServer interface {
    // Sign calculates a cryptographic signature using the Key associated with a KeyID and returns the signature
    Sign(context.Context, *SignatureRequest) (*Signature, error)
}

type Void Uses

type Void struct {
}

Void represents an empty message type

func (*Void) Descriptor Uses

func (*Void) Descriptor() ([]byte, []int)

func (*Void) ProtoMessage Uses

func (*Void) ProtoMessage()

func (*Void) Reset Uses

func (m *Void) Reset()

func (*Void) String Uses

func (m *Void) String() string

Package proto imports 5 packages (graph) and is imported by 23 packages. Updated 2017-03-07. Refresh now. Tools for package owners.