stack

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package stack is a generated protocol buffer package.

It is generated from these files:

github.com/appcelerator/amp/api/rpc/stack/stack.proto

It has these top-level messages:

DeployRequest
DeployReply
ListRequest
ListReply
StackListEntry
RemoveRequest
RemoveReply

Package stack is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStackHandler added in v0.9.1

func RegisterStackHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterStackHandler registers the http handlers for service Stack to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterStackHandlerFromEndpoint added in v0.9.1

func RegisterStackHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterStackHandlerFromEndpoint is same as RegisterStackHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterStackServer added in v0.9.0

func RegisterStackServer(s *grpc.Server, srv StackServer)

Types

type DeployReply added in v0.9.0

type DeployReply struct {
	FullName string `protobuf:"bytes,1,opt,name=full_name,json=fullName" json:"full_name,omitempty"`
	Answer   string `protobuf:"bytes,2,opt,name=answer" json:"answer,omitempty"`
}

func (*DeployReply) Descriptor added in v0.9.0

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

func (*DeployReply) GetAnswer added in v0.9.0

func (m *DeployReply) GetAnswer() string

func (*DeployReply) GetFullName added in v0.9.0

func (m *DeployReply) GetFullName() string

func (*DeployReply) ProtoMessage added in v0.9.0

func (*DeployReply) ProtoMessage()

func (*DeployReply) Reset added in v0.9.0

func (m *DeployReply) Reset()

func (*DeployReply) String added in v0.9.0

func (m *DeployReply) String() string

type DeployRequest added in v0.9.0

type DeployRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Compose []byte `protobuf:"bytes,2,opt,name=compose,proto3" json:"compose,omitempty"`
}

func (*DeployRequest) Descriptor added in v0.9.0

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

func (*DeployRequest) GetCompose added in v0.9.0

func (m *DeployRequest) GetCompose() []byte

func (*DeployRequest) GetName added in v0.9.0

func (m *DeployRequest) GetName() string

func (*DeployRequest) ProtoMessage added in v0.9.0

func (*DeployRequest) ProtoMessage()

func (*DeployRequest) Reset added in v0.9.0

func (m *DeployRequest) Reset()

func (*DeployRequest) String added in v0.9.0

func (m *DeployRequest) String() string

type ListReply

type ListReply struct {
	Entries []*StackListEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
}

func (*ListReply) Descriptor

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

func (*ListReply) GetEntries added in v0.9.1

func (m *ListReply) GetEntries() []*StackListEntry

func (*ListReply) ProtoMessage

func (*ListReply) ProtoMessage()

func (*ListReply) Reset

func (m *ListReply) Reset()

func (*ListReply) String

func (m *ListReply) String() string

type ListRequest

type ListRequest struct {
}

func (*ListRequest) Descriptor

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

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) String

func (m *ListRequest) String() string

type RemoveReply added in v0.9.0

type RemoveReply struct {
	Answer string `protobuf:"bytes,1,opt,name=answer" json:"answer,omitempty"`
}

func (*RemoveReply) Descriptor added in v0.9.0

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

func (*RemoveReply) GetAnswer added in v0.9.0

func (m *RemoveReply) GetAnswer() string

func (*RemoveReply) ProtoMessage added in v0.9.0

func (*RemoveReply) ProtoMessage()

func (*RemoveReply) Reset added in v0.9.0

func (m *RemoveReply) Reset()

func (*RemoveReply) String added in v0.9.0

func (m *RemoveReply) String() string

type RemoveRequest

type RemoveRequest struct {
	Stack string `protobuf:"bytes,1,opt,name=stack" json:"stack,omitempty"`
}

func (*RemoveRequest) Descriptor

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

func (*RemoveRequest) GetStack added in v0.9.1

func (m *RemoveRequest) GetStack() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) Reset

func (m *RemoveRequest) Reset()

func (*RemoveRequest) String

func (m *RemoveRequest) String() string

type Server

type Server struct {
	Accounts accounts.Interface
	Docker   *docker.Docker
	Stacks   stacks.Interface
}

Server is used to implement stack.Server

func (*Server) Deploy added in v0.9.0

func (s *Server) Deploy(ctx context.Context, in *DeployRequest) (*DeployReply, error)

Deploy implements stack.Server

func (*Server) List

func (s *Server) List(ctx context.Context, in *ListRequest) (*ListReply, error)

List implements stack.Server

func (*Server) Remove

func (s *Server) Remove(ctx context.Context, in *RemoveRequest) (*RemoveReply, error)

Remove implements stack.Server

type StackClient added in v0.9.0

type StackClient interface {
	Deploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*DeployReply, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error)
}

func NewStackClient added in v0.9.0

func NewStackClient(cc *grpc.ClientConn) StackClient

type StackListEntry added in v0.9.1

type StackListEntry struct {
	Stack    *stacks.Stack `protobuf:"bytes,1,opt,name=stack" json:"stack,omitempty"`
	Services string        `protobuf:"bytes,2,opt,name=services" json:"services,omitempty"`
}

func (*StackListEntry) Descriptor added in v0.9.1

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

func (*StackListEntry) GetServices added in v0.9.1

func (m *StackListEntry) GetServices() string

func (*StackListEntry) GetStack added in v0.9.1

func (m *StackListEntry) GetStack() *stacks.Stack

func (*StackListEntry) ProtoMessage added in v0.9.1

func (*StackListEntry) ProtoMessage()

func (*StackListEntry) Reset added in v0.9.1

func (m *StackListEntry) Reset()

func (*StackListEntry) String added in v0.9.1

func (m *StackListEntry) String() string

type StackServer added in v0.9.0

type StackServer interface {
	Deploy(context.Context, *DeployRequest) (*DeployReply, error)
	List(context.Context, *ListRequest) (*ListReply, error)
	Remove(context.Context, *RemoveRequest) (*RemoveReply, error)
}

Jump to

Keyboard shortcuts

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