runtime

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OwncloudNamespace is the base path for micro' services to use
	OwncloudNamespace = "com.owncloud."

	// MicroServices to start as part of the fullstack option
	MicroServices = []string{
		"api",

		"web",
		"registry",
	}

	// Extensions are ocis extension services
	Extensions = []string{

		"phoenix",
		"graph",
		"graph-explorer",
		"ocs",
		"webdav",
		"reva-frontend",
		"reva-gateway",
		"reva-users",
		"reva-auth-basic",
		"reva-auth-bearer",
		"reva-sharing",

		"reva-storage-home",
		"reva-storage-home-data",
		"reva-storage-oc",
		"reva-storage-oc-data",
		"glauth",
		"konnectd",
		"proxy",
		"thumbnails",
	}
)

Functions

func AddMicroPlatform

func AddMicroPlatform(app *cli.App)

AddMicroPlatform adds the micro subcommands to the cli app

func Command

func Command(app *cli.App) *cli.Command

Command adds micro runtime commands to the cli app

Types

type Option

type Option func(o *Options)

Option undocummented

func Context

func Context(c *cli.Context) Option

Context option

func Logger

func Logger(l log.Logger) Option

Logger option

func MicroRuntime

func MicroRuntime(rt *gorun.Runtime) Option

MicroRuntime option

func Services

func Services(s []string) Option

Services option

type Options

type Options struct {
	Services     []string
	Logger       log.Logger
	MicroRuntime *gorun.Runtime
	Context      *cli.Context
}

Options is a runtime option

type Runtime

type Runtime struct {
	Logger log.Logger
	R      *gorun.Runtime
	Ctx    *cli.Context
	// contains filtered or unexported fields
}

Runtime is a wrapper around micro's own runtime

func New

func New(opts ...Option) Runtime

New creates a new ocis + micro runtime

func (*Runtime) Start

func (r *Runtime) Start()

Start starts preconfigured services

func (Runtime) Trap

func (r Runtime) Trap()

Trap listen and blocks for termination signals

Jump to

Keyboard shortcuts

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