stack

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 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
StackEntry
RemoveRequest
RemoveReply
ServicesRequest
ServiceEntry
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 RegisterStackHandlerClient added in v0.16.0

func RegisterStackHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StackClient) error

RegisterStackHandler registers the http handlers for service Stack to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StackClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StackClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StackClient" to call the correct interceptors.

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"`
	Environment []string `protobuf:"bytes,3,rep,name=environment" json:"environment,omitempty"`
	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) GetEnvironment added in v0.16.0

func (m *DeployRequest) GetEnvironment() []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 []*StackEntry `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() []*StackEntry

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) StackDeploy added in v0.17.0

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

Deploy implements stack.Server

func (*Server) StackList added in v0.17.0

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

List implements stack.Server

func (*Server) StackRemove added in v0.17.0

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

Remove implements stack.Server

func (*Server) StackServices added in v0.17.0

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

Services Ctx implements stack.Server

type ServiceEntry added in v0.16.0

type ServiceEntry 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 (*ServiceEntry) Descriptor added in v0.16.0

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

func (*ServiceEntry) GetId added in v0.16.0

func (m *ServiceEntry) GetId() string

func (*ServiceEntry) GetImage added in v0.16.0

func (m *ServiceEntry) GetImage() string

func (*ServiceEntry) GetMode added in v0.16.0

func (m *ServiceEntry) GetMode() string

func (*ServiceEntry) GetName added in v0.16.0

func (m *ServiceEntry) GetName() string

func (*ServiceEntry) GetReplicas added in v0.16.0

func (m *ServiceEntry) GetReplicas() string

func (*ServiceEntry) ProtoMessage added in v0.16.0

func (*ServiceEntry) ProtoMessage()

func (*ServiceEntry) Reset added in v0.16.0

func (m *ServiceEntry) Reset()

func (*ServiceEntry) String added in v0.16.0

func (m *ServiceEntry) String() string

type ServicesReply added in v0.11.0

type ServicesReply struct {
	Services []*ServiceEntry `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() []*ServiceEntry

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 {
	Stack string `protobuf:"bytes,1,opt,name=stack" json:"stack,omitempty"`
}

func (*ServicesRequest) Descriptor added in v0.11.0

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

func (*ServicesRequest) GetStack added in v0.16.0

func (m *ServicesRequest) GetStack() 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 {
	StackDeploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*DeployReply, error)
	StackList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
	StackRemove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error)
	StackServices(ctx context.Context, in *ServicesRequest, opts ...grpc.CallOption) (*ServicesReply, error)
}

func NewStackClient added in v0.9.0

func NewStackClient(cc *grpc.ClientConn) StackClient

type StackEntry added in v0.16.0

type StackEntry struct {
	Stack             *stacks.Stack `protobuf:"bytes,1,opt,name=stack" json:"stack,omitempty"`
	RunningServices   int32         `protobuf:"varint,2,opt,name=running_services,json=runningServices" json:"running_services,omitempty"`
	TotalServices     int32         `protobuf:"varint,3,opt,name=total_services,json=totalServices" json:"total_services,omitempty"`
	Status            string        `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"`
	CompleteServices  int32         `protobuf:"varint,5,opt,name=complete_services,json=completeServices" json:"complete_services,omitempty"`
	PreparingServices int32         `protobuf:"varint,6,opt,name=preparing_services,json=preparingServices" json:"preparing_services,omitempty"`
}

func (*StackEntry) Descriptor added in v0.16.0

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

func (*StackEntry) GetCompleteServices added in v0.16.0

func (m *StackEntry) GetCompleteServices() int32

func (*StackEntry) GetPreparingServices added in v0.16.0

func (m *StackEntry) GetPreparingServices() int32

func (*StackEntry) GetRunningServices added in v0.16.0

func (m *StackEntry) GetRunningServices() int32

func (*StackEntry) GetStack added in v0.16.0

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

func (*StackEntry) GetStatus added in v0.16.0

func (m *StackEntry) GetStatus() string

func (*StackEntry) GetTotalServices added in v0.16.0

func (m *StackEntry) GetTotalServices() int32

func (*StackEntry) ProtoMessage added in v0.16.0

func (*StackEntry) ProtoMessage()

func (*StackEntry) Reset added in v0.16.0

func (m *StackEntry) Reset()

func (*StackEntry) String added in v0.16.0

func (m *StackEntry) String() string

type StackServer added in v0.9.0

type StackServer interface {
	StackDeploy(context.Context, *DeployRequest) (*DeployReply, error)
	StackList(context.Context, *ListRequest) (*ListReply, error)
	StackRemove(context.Context, *RemoveRequest) (*RemoveReply, error)
	StackServices(context.Context, *ServicesRequest) (*ServicesReply, error)
}

Jump to

Keyboard shortcuts

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