standalone

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paths added in v1.2.0

type Paths struct {
	ScriptDir  string
	StorjDir   string
	GatewayDir string
	CleanDir   bool
}

Paths contains directories required for storj-up standalone instances.

type Standalone

type Standalone struct {
	Intellij   bool
	ProjectDir string
	// contains filtered or unexported fields
}

Standalone is a runtime.Runtime implementation for shell based execution.

func NewStandalone

func NewStandalone(paths Paths) (*Standalone, error)

NewStandalone returns with a new runtime, starting services without any container isolation (like storj-sim).

func (*Standalone) AddService

func (c *Standalone) AddService(recipe recipe.Service) (runtime.Service, error)

AddService implements runtime.Runtime.

func (*Standalone) Get

func (c *Standalone) Get(service runtime.ServiceInstance, name string) string

Get implements runtime.Runtime.

func (*Standalone) GetHost

func (c *Standalone) GetHost(service runtime.ServiceInstance, hostType string) string

GetHost implements runtime.Runtime.

func (*Standalone) GetPort

func (c *Standalone) GetPort(service runtime.ServiceInstance, portType string) runtime.PortMap

GetPort implements runtime.Runtime.

func (*Standalone) GetServices

func (c *Standalone) GetServices() []runtime.Service

GetServices implements runtime.Runtime.

func (*Standalone) Reload

func (c *Standalone) Reload(stack recipe.Stack) error

Reload implements runtime.Runtime.

func (*Standalone) Write

func (c *Standalone) Write() error

Jump to

Keyboard shortcuts

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