api

package
v0.0.0-...-a69446e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2017 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

pubkeystore.proto

It has these top-level messages:

SSHKey
GetKeysRequest
GetKeysReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPubkeyStoreServer

func RegisterPubkeyStoreServer(s *grpc.Server, srv PubkeyStoreServer)

Types

type GetKeysReply

type GetKeysReply struct {
	Keys []*SSHKey `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
}

func (*GetKeysReply) Descriptor

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

func (*GetKeysReply) GetKeys

func (m *GetKeysReply) GetKeys() []*SSHKey

func (*GetKeysReply) ProtoMessage

func (*GetKeysReply) ProtoMessage()

func (*GetKeysReply) Reset

func (m *GetKeysReply) Reset()

func (*GetKeysReply) String

func (m *GetKeysReply) String() string

type GetKeysRequest

type GetKeysRequest struct {
	VmName string `protobuf:"bytes,1,opt,name=vm_name,json=vmName" json:"vm_name,omitempty"`
}

func (*GetKeysRequest) Descriptor

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

func (*GetKeysRequest) GetVmName

func (m *GetKeysRequest) GetVmName() string

func (*GetKeysRequest) ProtoMessage

func (*GetKeysRequest) ProtoMessage()

func (*GetKeysRequest) Reset

func (m *GetKeysRequest) Reset()

func (*GetKeysRequest) String

func (m *GetKeysRequest) String() string

type PubkeyStoreClient

type PubkeyStoreClient interface {
	GetKeys(ctx context.Context, in *GetKeysRequest, opts ...grpc.CallOption) (*GetKeysReply, error)
}

func NewPubkeyStoreClient

func NewPubkeyStoreClient(cc *grpc.ClientConn) PubkeyStoreClient

type PubkeyStoreServer

type PubkeyStoreServer interface {
	GetKeys(context.Context, *GetKeysRequest) (*GetKeysReply, error)
}

type SSHKey

type SSHKey struct {
	Name    string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Algo    string `protobuf:"bytes,2,opt,name=algo" json:"algo,omitempty"`
	Pubkey  string `protobuf:"bytes,3,opt,name=pubkey" json:"pubkey,omitempty"`
	Comment string `protobuf:"bytes,4,opt,name=comment" json:"comment,omitempty"`
}

func (*SSHKey) Descriptor

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

func (*SSHKey) GetAlgo

func (m *SSHKey) GetAlgo() string

func (*SSHKey) GetComment

func (m *SSHKey) GetComment() string

func (*SSHKey) GetName

func (m *SSHKey) GetName() string

func (*SSHKey) GetPubkey

func (m *SSHKey) GetPubkey() string

func (*SSHKey) ProtoMessage

func (*SSHKey) ProtoMessage()

func (*SSHKey) Reset

func (m *SSHKey) Reset()

func (*SSHKey) String

func (m *SSHKey) String() string

Jump to

Keyboard shortcuts

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