keymanager

package
v0.0.0-...-8f69376 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handshake = go_plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "KeyManager",
	MagicCookieValue: "KeyManager",
}

Functions

func RegisterKeyManagerServer

func RegisterKeyManagerServer(s *grpc.Server, srv KeyManagerServer)

Types

type BuiltIn

type BuiltIn struct {
	// contains filtered or unexported fields
}

func NewBuiltIn

func NewBuiltIn(plugin Plugin) *BuiltIn

func (BuiltIn) Configure

func (BuiltIn) FetchPrivateKey

func (BuiltIn) GenerateKeyPair

func (BuiltIn) GetPluginInfo

type ConfigureRequest

type ConfigureRequest = plugin.ConfigureRequest

ConfigureRequest from public import github.com/spiffe/spire/proto/common/plugin/plugin.proto

type ConfigureRequest_GlobalConfig

type ConfigureRequest_GlobalConfig = plugin.ConfigureRequest_GlobalConfig

GlobalConfig from public import github.com/spiffe/spire/proto/common/plugin/plugin.proto

type ConfigureResponse

type ConfigureResponse = plugin.ConfigureResponse

ConfigureResponse from public import github.com/spiffe/spire/proto/common/plugin/plugin.proto

type FetchPrivateKeyRequest

type FetchPrivateKeyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Represents an empty request

func (*FetchPrivateKeyRequest) Descriptor

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

func (*FetchPrivateKeyRequest) ProtoMessage

func (*FetchPrivateKeyRequest) ProtoMessage()

func (*FetchPrivateKeyRequest) Reset

func (m *FetchPrivateKeyRequest) Reset()

func (*FetchPrivateKeyRequest) String

func (m *FetchPrivateKeyRequest) String() string

func (*FetchPrivateKeyRequest) XXX_DiscardUnknown

func (m *FetchPrivateKeyRequest) XXX_DiscardUnknown()

func (*FetchPrivateKeyRequest) XXX_Marshal

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

func (*FetchPrivateKeyRequest) XXX_Merge

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

func (*FetchPrivateKeyRequest) XXX_Size

func (m *FetchPrivateKeyRequest) XXX_Size() int

func (*FetchPrivateKeyRequest) XXX_Unmarshal

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

type FetchPrivateKeyResponse

type FetchPrivateKeyResponse struct {
	// * Priavte key
	PrivateKey           []byte   `protobuf:"bytes,1,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Represents a private key

func (*FetchPrivateKeyResponse) Descriptor

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

func (*FetchPrivateKeyResponse) GetPrivateKey

func (m *FetchPrivateKeyResponse) GetPrivateKey() []byte

func (*FetchPrivateKeyResponse) ProtoMessage

func (*FetchPrivateKeyResponse) ProtoMessage()

func (*FetchPrivateKeyResponse) Reset

func (m *FetchPrivateKeyResponse) Reset()

func (*FetchPrivateKeyResponse) String

func (m *FetchPrivateKeyResponse) String() string

func (*FetchPrivateKeyResponse) XXX_DiscardUnknown

func (m *FetchPrivateKeyResponse) XXX_DiscardUnknown()

func (*FetchPrivateKeyResponse) XXX_Marshal

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

func (*FetchPrivateKeyResponse) XXX_Merge

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

func (*FetchPrivateKeyResponse) XXX_Size

func (m *FetchPrivateKeyResponse) XXX_Size() int

func (*FetchPrivateKeyResponse) XXX_Unmarshal

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

type GRPCClient

type GRPCClient struct {
	// contains filtered or unexported fields
}

func (*GRPCClient) Configure

func (*GRPCClient) FetchPrivateKey

func (*GRPCClient) GenerateKeyPair

func (*GRPCClient) GetPluginInfo

type GRPCPlugin

type GRPCPlugin struct {
	ServerImpl KeyManagerServer
}

func (GRPCPlugin) Client

func (p GRPCPlugin) Client(b *go_plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (GRPCPlugin) GRPCClient

func (p GRPCPlugin) GRPCClient(c *grpc.ClientConn) (interface{}, error)

func (GRPCPlugin) GRPCServer

func (p GRPCPlugin) GRPCServer(s *grpc.Server) error

func (GRPCPlugin) Server

func (p GRPCPlugin) Server(*go_plugin.MuxBroker) (interface{}, error)

type GRPCServer

type GRPCServer struct {
	Plugin Plugin
}

func (*GRPCServer) Configure

func (*GRPCServer) FetchPrivateKey

func (*GRPCServer) GenerateKeyPair

func (*GRPCServer) GetPluginInfo

type GenerateKeyPairRequest

type GenerateKeyPairRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Represents an empty request

func (*GenerateKeyPairRequest) Descriptor

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

func (*GenerateKeyPairRequest) ProtoMessage

func (*GenerateKeyPairRequest) ProtoMessage()

func (*GenerateKeyPairRequest) Reset

func (m *GenerateKeyPairRequest) Reset()

func (*GenerateKeyPairRequest) String

func (m *GenerateKeyPairRequest) String() string

func (*GenerateKeyPairRequest) XXX_DiscardUnknown

func (m *GenerateKeyPairRequest) XXX_DiscardUnknown()

func (*GenerateKeyPairRequest) XXX_Marshal

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

func (*GenerateKeyPairRequest) XXX_Merge

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

func (*GenerateKeyPairRequest) XXX_Size

func (m *GenerateKeyPairRequest) XXX_Size() int

func (*GenerateKeyPairRequest) XXX_Unmarshal

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

type GenerateKeyPairResponse

type GenerateKeyPairResponse struct {
	// * Public key
	PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	// * Private key
	PrivateKey           []byte   `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Represents a public and private key pair

func (*GenerateKeyPairResponse) Descriptor

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

func (*GenerateKeyPairResponse) GetPrivateKey

func (m *GenerateKeyPairResponse) GetPrivateKey() []byte

func (*GenerateKeyPairResponse) GetPublicKey

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

func (*GenerateKeyPairResponse) ProtoMessage

func (*GenerateKeyPairResponse) ProtoMessage()

func (*GenerateKeyPairResponse) Reset

func (m *GenerateKeyPairResponse) Reset()

func (*GenerateKeyPairResponse) String

func (m *GenerateKeyPairResponse) String() string

func (*GenerateKeyPairResponse) XXX_DiscardUnknown

func (m *GenerateKeyPairResponse) XXX_DiscardUnknown()

func (*GenerateKeyPairResponse) XXX_Marshal

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

func (*GenerateKeyPairResponse) XXX_Merge

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

func (*GenerateKeyPairResponse) XXX_Size

func (m *GenerateKeyPairResponse) XXX_Size() int

func (*GenerateKeyPairResponse) XXX_Unmarshal

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

type GetPluginInfoRequest

type GetPluginInfoRequest = plugin.GetPluginInfoRequest

GetPluginInfoRequest from public import github.com/spiffe/spire/proto/common/plugin/plugin.proto

type GetPluginInfoResponse

type GetPluginInfoResponse = plugin.GetPluginInfoResponse

GetPluginInfoResponse from public import github.com/spiffe/spire/proto/common/plugin/plugin.proto

type KeyManager

type KeyManager interface {
	GenerateKeyPair(context.Context, *GenerateKeyPairRequest) (*GenerateKeyPairResponse, error)
	FetchPrivateKey(context.Context, *FetchPrivateKeyRequest) (*FetchPrivateKeyResponse, error)
}

KeyManager is the interface used by all non-catalog components.

type KeyManagerClient

type KeyManagerClient interface {
	// * Creates a key pair that is bound to hardware.
	GenerateKeyPair(ctx context.Context, in *GenerateKeyPairRequest, opts ...grpc.CallOption) (*GenerateKeyPairResponse, error)
	// * Returns previously generated private key. For use after node restarts.
	FetchPrivateKey(ctx context.Context, in *FetchPrivateKeyRequest, opts ...grpc.CallOption) (*FetchPrivateKeyResponse, error)
	// * Applies the plugin configuration and returns configuration errors.
	Configure(ctx context.Context, in *plugin.ConfigureRequest, opts ...grpc.CallOption) (*plugin.ConfigureResponse, error)
	// * Returns the version and related metadata of the plugin.
	GetPluginInfo(ctx context.Context, in *plugin.GetPluginInfoRequest, opts ...grpc.CallOption) (*plugin.GetPluginInfoResponse, error)
}

KeyManagerClient is the client API for KeyManager service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewKeyManagerClient

func NewKeyManagerClient(cc *grpc.ClientConn) KeyManagerClient

type KeyManagerServer

type KeyManagerServer interface {
	// * Creates a key pair that is bound to hardware.
	GenerateKeyPair(context.Context, *GenerateKeyPairRequest) (*GenerateKeyPairResponse, error)
	// * Returns previously generated private key. For use after node restarts.
	FetchPrivateKey(context.Context, *FetchPrivateKeyRequest) (*FetchPrivateKeyResponse, error)
	// * Applies the plugin configuration and returns configuration errors.
	Configure(context.Context, *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
	// * Returns the version and related metadata of the plugin.
	GetPluginInfo(context.Context, *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
}

KeyManagerServer is the server API for KeyManager service.

type Plugin

Plugin is the interface implemented by plugin implementations

Jump to

Keyboard shortcuts

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