api

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: MPL-2.0 Imports: 5 Imported by: 5 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

OpenTemplateRequest
OpenTemplateReply
RenderTemplateRequest
RenderTemplateReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDeviseServer

func RegisterDeviseServer(s *grpc.Server, srv DeviseServer)

Types

type DeviseClient

type DeviseClient interface {
	// Opens the template.
	OpenTemplate(ctx context.Context, in *OpenTemplateRequest, opts ...grpc.CallOption) (*OpenTemplateReply, error)
	// Renders a template.
	RenderTemplate(ctx context.Context, in *RenderTemplateRequest, opts ...grpc.CallOption) (*RenderTemplateReply, error)
}

func NewDeviseClient

func NewDeviseClient(cc *grpc.ClientConn) DeviseClient

type DeviseServer

type DeviseServer interface {
	// Opens the template.
	OpenTemplate(context.Context, *OpenTemplateRequest) (*OpenTemplateReply, error)
	// Renders a template.
	RenderTemplate(context.Context, *RenderTemplateRequest) (*RenderTemplateReply, error)
}

type OpenTemplateReply

type OpenTemplateReply struct {
	Template   []byte `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	VaultToken string `protobuf:"bytes,2,opt,name=vault_token,json=vaultToken" json:"vault_token,omitempty"`
}

The response message containing the rendered template.

func (*OpenTemplateReply) Descriptor

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

func (*OpenTemplateReply) GetTemplate

func (m *OpenTemplateReply) GetTemplate() []byte

func (*OpenTemplateReply) GetVaultToken

func (m *OpenTemplateReply) GetVaultToken() string

func (*OpenTemplateReply) ProtoMessage

func (*OpenTemplateReply) ProtoMessage()

func (*OpenTemplateReply) Reset

func (m *OpenTemplateReply) Reset()

func (*OpenTemplateReply) String

func (m *OpenTemplateReply) String() string

type OpenTemplateRequest

type OpenTemplateRequest struct {
}

The request message containing the templated template.

func (*OpenTemplateRequest) Descriptor

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

func (*OpenTemplateRequest) ProtoMessage

func (*OpenTemplateRequest) ProtoMessage()

func (*OpenTemplateRequest) Reset

func (m *OpenTemplateRequest) Reset()

func (*OpenTemplateRequest) String

func (m *OpenTemplateRequest) String() string

type RenderTemplateReply

type RenderTemplateReply struct {
	Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
}

The response message containing the rendered template.

func (*RenderTemplateReply) Descriptor

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

func (*RenderTemplateReply) GetSuccess

func (m *RenderTemplateReply) GetSuccess() bool

func (*RenderTemplateReply) ProtoMessage

func (*RenderTemplateReply) ProtoMessage()

func (*RenderTemplateReply) Reset

func (m *RenderTemplateReply) Reset()

func (*RenderTemplateReply) String

func (m *RenderTemplateReply) String() string

type RenderTemplateRequest

type RenderTemplateRequest struct {
	Rendered []byte `protobuf:"bytes,1,opt,name=rendered,proto3" json:"rendered,omitempty"`
}

The request message containing the templated template.

func (*RenderTemplateRequest) Descriptor

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

func (*RenderTemplateRequest) GetRendered

func (m *RenderTemplateRequest) GetRendered() []byte

func (*RenderTemplateRequest) ProtoMessage

func (*RenderTemplateRequest) ProtoMessage()

func (*RenderTemplateRequest) Reset

func (m *RenderTemplateRequest) Reset()

func (*RenderTemplateRequest) String

func (m *RenderTemplateRequest) String() string

Jump to

Keyboard shortcuts

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