core

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the type to aggregate all the APIs.

func NewServer

func NewServer(sdk *sdk.SDK) *Server

NewServer creates a new Server.

func (*Server) DeleteService

func (s *Server) DeleteService(ctx context.Context, request *coreapi.DeleteServiceRequest) (*coreapi.DeleteServiceReply, error)

DeleteService stops and deletes service serviceID.

func (*Server) DeployService

func (s *Server) DeployService(stream coreapi.Core_DeployServiceServer) error

DeployService deploys a service from Git URL or service.tar.gz file. It'll send status events during the process and finish with sending service id or validation error.

func (*Server) ExecuteTask

func (s *Server) ExecuteTask(ctx context.Context, request *coreapi.ExecuteTaskRequest) (*coreapi.ExecuteTaskReply, error)

ExecuteTask executes a task for a given service.

func (*Server) GetService

func (s *Server) GetService(ctx context.Context, request *coreapi.GetServiceRequest) (*coreapi.GetServiceReply, error)

GetService returns service serviceID.

func (*Server) Info

func (s *Server) Info(ctx context.Context, request *coreapi.InfoRequest) (*coreapi.InfoReply, error)

Info returns all necessary information from the core.

func (*Server) ListServices

func (s *Server) ListServices(ctx context.Context, request *coreapi.ListServicesRequest) (*coreapi.ListServicesReply, error)

ListServices lists services.

func (*Server) ListenEvent

func (s *Server) ListenEvent(request *coreapi.ListenEventRequest, stream coreapi.Core_ListenEventServer) error

ListenEvent listens events matches with eventFilter on serviceID.

func (*Server) ListenResult

func (s *Server) ListenResult(request *coreapi.ListenResultRequest, stream coreapi.Core_ListenResultServer) error

ListenResult listens for results from a services.

func (*Server) ServiceLogs

func (s *Server) ServiceLogs(request *coreapi.ServiceLogsRequest, stream coreapi.Core_ServiceLogsServer) error

ServiceLogs gives logs of service with the applied dependency filters.

func (*Server) StartService

func (s *Server) StartService(ctx context.Context, request *coreapi.StartServiceRequest) (*coreapi.StartServiceReply, error)

StartService starts a service.

func (*Server) StopService

func (s *Server) StopService(ctx context.Context, request *coreapi.StopServiceRequest) (*coreapi.StopServiceReply, error)

StopService stops a service.

Jump to

Keyboard shortcuts

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