nomad

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nomad

type Nomad struct {
	External string
	// contains filtered or unexported fields
}

Nomad is the runtime.Runtime implementation for Hashicorp Nomad based environments.

func NewNomad

func NewNomad(dir string, name string) (*Nomad, error)

NewNomad creates a new runtime.Runtime for Nomad environments.

func (*Nomad) AddService

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

AddService implements runtime.Runtime.

func (*Nomad) Get

func (c *Nomad) Get(s runtime.ServiceInstance, name string) string

Get implements runtime.Runtime.

func (*Nomad) GetHost

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

GetHost implements runtime.Runtime.

func (*Nomad) GetPort

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

GetPort implements runtime.Runtime.

func (*Nomad) GetServices

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

GetServices implements runtime.Runtime.

func (*Nomad) Reload

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

Reload implements runtime.Runtime.

func (*Nomad) Write

func (c *Nomad) Write() error

Write implements runtime.Runtime.

Jump to

Keyboard shortcuts

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