package api

import "github.com/theupdateframework/notary/signer/api"

Index

Types

type KeyManagementServer

type KeyManagementServer struct {
	CryptoServices signer.CryptoServiceIndex
	HealthChecker  func() map[string]string
}

KeyManagementServer implements the KeyManagementServer grpc interface

func (*KeyManagementServer) CheckHealth

func (s *KeyManagementServer) CheckHealth(ctx context.Context, v *pb.Void) (*pb.HealthStatus, error)

CheckHealth returns the HealthStatus with the service

func (*KeyManagementServer) CreateKey

CreateKey returns a PublicKey created using KeyManagementServer's SigningService

func (*KeyManagementServer) DeleteKey

func (s *KeyManagementServer) DeleteKey(ctx context.Context, keyID *pb.KeyID) (*pb.Void, error)

DeleteKey deletes they key associated with a KeyID

func (*KeyManagementServer) GetKeyInfo

func (s *KeyManagementServer) GetKeyInfo(ctx context.Context, keyID *pb.KeyID) (*pb.GetKeyInfoResponse, error)

GetKeyInfo returns they PublicKey associated with a KeyID

type SignerServer

type SignerServer struct {
	CryptoServices signer.CryptoServiceIndex
	HealthChecker  func() map[string]string
}

SignerServer implements the SignerServer grpc interface

func (*SignerServer) CheckHealth

func (s *SignerServer) CheckHealth(ctx context.Context, v *pb.Void) (*pb.HealthStatus, error)

CheckHealth returns the HealthStatus with the service

func (*SignerServer) Sign

Sign signs a message and returns the signature using a private key associate with the KeyID from the SignatureRequest

Source Files

find_key.go rpc_api.go

Version
v0.4.3
Published
Jan 3, 2017
Platform
darwin/amd64
Imports
10 packages
Last checked
45 minutes ago

Tools for package owners.