server

package
v0.0.0-...-5973960 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToGRPCError

func ToGRPCError(err error) error

Types

type Server

type Server struct {
	api.UnimplementedDataServer

	InstanceName         string
	InstanceDescription  string
	Backend              backend.Backend
	IPStack              util.IPStack
	Address              string
	Port                 int
	DefaultPackageFormat string
	Log                  commonlog.Logger
	// contains filtered or unexported fields
}

func NewServer

func NewServer(backend backend.Backend, ipStack util.IPStack, address string, port int, defaultPackageFormat string, log commonlog.Logger) *Server

func (*Server) About

func (self *Server) About(context contextpkg.Context, _ *emptypb.Empty) (*api.AboutResponse, error)

(api.DataServer interface)

func (*Server) CancelDeploymentModification

func (self *Server) CancelDeploymentModification(context contextpkg.Context, cancelDeploymentModification *api.CancelDeploymentModification) (*api.CancelDeploymentModificationResponse, error)

(api.DataServer interface)

func (*Server) CreateDeployment

func (self *Server) CreateDeployment(context contextpkg.Context, createDeployment *api.CreateDeployment) (*api.CreateDeploymentResponse, error)

(api.DataServer interface)

func (*Server) DeleteDeployment

func (self *Server) DeleteDeployment(context contextpkg.Context, deploymentId *api.DeploymentID) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) DeletePlugin

func (self *Server) DeletePlugin(context contextpkg.Context, pluginId *api.PluginID) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) DeleteSite

func (self *Server) DeleteSite(context contextpkg.Context, siteId *api.SiteID) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) DeleteTemplate

func (self *Server) DeleteTemplate(context contextpkg.Context, templateId *api.TemplateID) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) EndDeploymentModification

func (self *Server) EndDeploymentModification(context contextpkg.Context, endDeploymentModification *api.EndDeploymentModification) (*api.EndDeploymentModificationResponse, error)

(api.DataServer interface)

func (*Server) GetDeployment

func (self *Server) GetDeployment(context contextpkg.Context, getDeployment *api.GetDeployment) (*api.Deployment, error)

(api.DataServer interface)

func (*Server) GetPlugin

func (self *Server) GetPlugin(context contextpkg.Context, pluginId *api.PluginID) (*api.Plugin, error)

(api.DataServer interface)

func (*Server) GetSite

func (self *Server) GetSite(context contextpkg.Context, getSite *api.GetSite) (*api.Site, error)

(api.DataServer interface)

func (*Server) GetTemplate

func (self *Server) GetTemplate(context contextpkg.Context, getTemplate *api.GetTemplate) (*api.Template, error)

(api.DataServer interface)

func (*Server) ListDeployments

func (self *Server) ListDeployments(listDeployments *api.ListDeployments, server api.Data_ListDeploymentsServer) error

(api.DataServer interface)

func (*Server) ListPlugins

func (self *Server) ListPlugins(listPlugins *api.ListPlugins, server api.Data_ListPluginsServer) error

(api.DataServer interface)

func (*Server) ListSites

func (self *Server) ListSites(listSites *api.ListSites, server api.Data_ListSitesServer) error

(api.DataServer interface)

func (*Server) ListTemplates

func (self *Server) ListTemplates(listTemplates *api.ListTemplates, server api.Data_ListTemplatesServer) error

(api.DataServer interface)

func (*Server) PurgeDeployments

func (self *Server) PurgeDeployments(context contextpkg.Context, selectDeployments *api.SelectDeployments) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) PurgePlugins

func (self *Server) PurgePlugins(context contextpkg.Context, selectPlugins *api.SelectPlugins) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) PurgeSites

func (self *Server) PurgeSites(context contextpkg.Context, selectSites *api.SelectSites) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) PurgeTemplates

func (self *Server) PurgeTemplates(context contextpkg.Context, selectTemplates *api.SelectTemplates) (*api.DeleteResponse, error)

(api.DataServer interface)

func (*Server) RegisterPlugin

func (self *Server) RegisterPlugin(context contextpkg.Context, plugin *api.Plugin) (*api.RegisterResponse, error)

(api.DataServer interface)

func (*Server) RegisterSite

func (self *Server) RegisterSite(context contextpkg.Context, site *api.Site) (*api.RegisterResponse, error)

(api.DataServer interface)

func (*Server) RegisterTemplate

func (self *Server) RegisterTemplate(context contextpkg.Context, template *api.Template) (*api.RegisterResponse, error)

(api.DataServer interface)

func (*Server) Start

func (self *Server) Start() error

func (*Server) StartDeploymentModification

func (self *Server) StartDeploymentModification(context contextpkg.Context, startDeploymentModification *api.StartDeploymentModification) (*api.StartDeploymentModificationResponse, error)

(api.DataServer interface)

func (*Server) Stop

func (self *Server) Stop()

Jump to

Keyboard shortcuts

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