slot

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slot

type Slot struct {
	Name     string             `hcl:"name"`
	Provider *provider.Provider `hcl:"provider"`
	Events   chan notify.EventInfo
	Resolver map[string]string `hcl:"resolver"`
}

func (*Slot) BashCmd

func (s *Slot) BashCmd(cmd string, remote bool) (exec.Cmd, error)

func (*Slot) ExecuteHandlers

func (s *Slot) ExecuteHandlers(e notify.EventInfo, u UnitInterface) error

func (Slot) IsDefault

func (s Slot) IsDefault() bool

func (*Slot) RSync

func (s *Slot) RSync(local string, u UnitInterface) error

func (Slot) Resolve

func (s Slot) Resolve(u UnitInterface) (bool, error)

func (*Slot) Start

func (s *Slot) Start(u UnitInterface) error

func (*Slot) Stop

func (s *Slot) Stop(u UnitInterface) error

func (*Slot) Validate

func (s *Slot) Validate() []*gerrors.ErrWithPath

type UnitInterface

type UnitInterface interface {
	GetName() string
	SetRunningStatus(*status.Status, status.StatusCallback)
	GetStatus() *status.Status
	OutputFile() (*os.File, error)
	UnsetCurrentSlot()
	SetCurrentSlot(*Slot)
	SavePIDFile(c *exec.Cmd) error
	InternalStore() *store.Store
	GetContext() gcontext.Context
}

Notes

Bugs

  • This is wrong - we need to pull thhe path of the config file, not ourself - otherwise we're basing the relative path off of the wrong root.

Jump to

Keyboard shortcuts

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