stack

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 19 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
ServicesRequest
StackService
ServicesReply

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 {
	Id       string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName" json:"full_name,omitempty"`
	Answer   string `protobuf:"bytes,3,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) GetId added in v0.12.0

func (m *DeployReply) GetId() 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"`
	EnvVar  map[string]string `` /* 146-byte string literal not displayed */
	Config  []byte            `protobuf:"bytes,4,opt,name=config,proto3" json:"config,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) GetConfig added in v0.12.0

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

func (*DeployRequest) GetEnvVar added in v0.12.0

func (m *DeployRequest) GetEnvVar() map[string]string

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

func (*Server) Services added in v0.11.0

func (s *Server) Services(ctx context.Context, in *ServicesRequest) (*ServicesReply, error)

Services Ctx implements stack.Server

type ServicesReply added in v0.11.0

type ServicesReply struct {
	Services []*StackService `protobuf:"bytes,1,rep,name=services" json:"services,omitempty"`
}

func (*ServicesReply) Descriptor added in v0.11.0

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

func (*ServicesReply) GetServices added in v0.11.0

func (m *ServicesReply) GetServices() []*StackService

func (*ServicesReply) ProtoMessage added in v0.11.0

func (*ServicesReply) ProtoMessage()

func (*ServicesReply) Reset added in v0.11.0

func (m *ServicesReply) Reset()

func (*ServicesReply) String added in v0.11.0

func (m *ServicesReply) String() string

type ServicesRequest added in v0.11.0

type ServicesRequest struct {
	StackName string `protobuf:"bytes,1,opt,name=stack_name,json=stackName" json:"stack_name,omitempty"`
}

func (*ServicesRequest) Descriptor added in v0.11.0

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

func (*ServicesRequest) GetStackName added in v0.11.0

func (m *ServicesRequest) GetStackName() string

func (*ServicesRequest) ProtoMessage added in v0.11.0

func (*ServicesRequest) ProtoMessage()

func (*ServicesRequest) Reset added in v0.11.0

func (m *ServicesRequest) Reset()

func (*ServicesRequest) String added in v0.11.0

func (m *ServicesRequest) String() string

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)
	Services(ctx context.Context, in *ServicesRequest, opts ...grpc.CallOption) (*ServicesReply, 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"`
	FailedServices  int32         `protobuf:"varint,2,opt,name=failed_services,json=failedServices" json:"failed_services,omitempty"`
	RunningServices int32         `protobuf:"varint,3,opt,name=running_services,json=runningServices" json:"running_services,omitempty"`
	TotalServices   int32         `protobuf:"varint,4,opt,name=total_services,json=totalServices" json:"total_services,omitempty"`
	Status          string        `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"`
}

func (*StackListEntry) Descriptor added in v0.9.1

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

func (*StackListEntry) GetFailedServices added in v0.12.0

func (m *StackListEntry) GetFailedServices() int32

func (*StackListEntry) GetRunningServices added in v0.12.0

func (m *StackListEntry) GetRunningServices() int32

func (*StackListEntry) GetStack added in v0.9.1

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

func (*StackListEntry) GetStatus added in v0.12.0

func (m *StackListEntry) GetStatus() string

func (*StackListEntry) GetTotalServices added in v0.12.0

func (m *StackListEntry) GetTotalServices() int32

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 StackService added in v0.11.0

type StackService struct {
	Id       string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Mode     string `protobuf:"bytes,3,opt,name=mode" json:"mode,omitempty"`
	Replicas string `protobuf:"bytes,4,opt,name=replicas" json:"replicas,omitempty"`
	Image    string `protobuf:"bytes,5,opt,name=image" json:"image,omitempty"`
}

func (*StackService) Descriptor added in v0.11.0

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

func (*StackService) GetId added in v0.11.0

func (m *StackService) GetId() string

func (*StackService) GetImage added in v0.11.0

func (m *StackService) GetImage() string

func (*StackService) GetMode added in v0.11.0

func (m *StackService) GetMode() string

func (*StackService) GetName added in v0.11.0

func (m *StackService) GetName() string

func (*StackService) GetReplicas added in v0.11.0

func (m *StackService) GetReplicas() string

func (*StackService) ProtoMessage added in v0.11.0

func (*StackService) ProtoMessage()

func (*StackService) Reset added in v0.11.0

func (m *StackService) Reset()

func (*StackService) String added in v0.11.0

func (m *StackService) String() string

Jump to

Keyboard shortcuts

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