tfgrpc

package
v0.0.0-...-41cf51b Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tfgrpc is a generated protocol buffer package.

It is generated from these files:

tfgrpc/terraform.proto

It has these top-level messages:

Body
Id
Arg
Output

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTerraformServer

func RegisterTerraformServer(s *grpc.Server, srv TerraformServer)

Types

type Arg

type Arg struct {
	WorkingDir string   `protobuf:"bytes,1,opt,name=workingDir" json:"workingDir,omitempty"`
	Args       []string `protobuf:"bytes,2,rep,name=args" json:"args,omitempty"`
}

The request message containing the user's name.

func (*Arg) Descriptor

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

func (*Arg) GetArgs

func (m *Arg) GetArgs() []string

func (*Arg) GetWorkingDir

func (m *Arg) GetWorkingDir() string

func (*Arg) ProtoMessage

func (*Arg) ProtoMessage()

func (*Arg) Reset

func (m *Arg) Reset()

func (*Arg) String

func (m *Arg) String() string

type Body

type Body struct {
	Zipfile []byte `protobuf:"bytes,1,opt,name=zipfile,proto3" json:"zipfile,omitempty"`
}

func (*Body) Descriptor

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

func (*Body) GetZipfile

func (m *Body) GetZipfile() []byte

func (*Body) ProtoMessage

func (*Body) ProtoMessage()

func (*Body) Reset

func (m *Body) Reset()

func (*Body) String

func (m *Body) String() string

type Id

type Id struct {
	Tmpdir string `protobuf:"bytes,1,opt,name=tmpdir" json:"tmpdir,omitempty"`
}

func (*Id) Descriptor

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

func (*Id) GetTmpdir

func (m *Id) GetTmpdir() string

func (*Id) ProtoMessage

func (*Id) ProtoMessage()

func (*Id) Reset

func (m *Id) Reset()

func (*Id) String

func (m *Id) String() string

type Output

type Output struct {
	Retcode int32  `protobuf:"varint,1,opt,name=retcode" json:"retcode,omitempty"`
	Stdout  []byte `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Stderr  []byte `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"`
}

The response message containing the greetings

func (*Output) Descriptor

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

func (*Output) GetRetcode

func (m *Output) GetRetcode() int32

func (*Output) GetStderr

func (m *Output) GetStderr() []byte

func (*Output) GetStdout

func (m *Output) GetStdout() []byte

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) Reset

func (m *Output) Reset()

func (*Output) String

func (m *Output) String() string

type TerraformClient

type TerraformClient interface {
	Init(ctx context.Context, in *Arg, opts ...grpc.CallOption) (*Output, error)
	Plan(ctx context.Context, in *Arg, opts ...grpc.CallOption) (*Output, error)
	Apply(ctx context.Context, in *Arg, opts ...grpc.CallOption) (*Output, error)
	Push(ctx context.Context, opts ...grpc.CallOption) (Terraform_PushClient, error)
}

func NewTerraformClient

func NewTerraformClient(cc *grpc.ClientConn) TerraformClient

type TerraformServer

type TerraformServer interface {
	Init(context.Context, *Arg) (*Output, error)
	Plan(context.Context, *Arg) (*Output, error)
	Apply(context.Context, *Arg) (*Output, error)
	Push(Terraform_PushServer) error
}

type Terraform_PushClient

type Terraform_PushClient interface {
	Send(*Body) error
	CloseAndRecv() (*Id, error)
	grpc.ClientStream
}

type Terraform_PushServer

type Terraform_PushServer interface {
	SendAndClose(*Id) error
	Recv() (*Body, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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