nedward

package
v0.0.0-...-521d647 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2017 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Logger *log.Logger

	Input  io.Reader
	Output io.Writer

	Config string

	ServiceChecks func([]services.ServiceOrGroup) error

	NedwardExecutable string

	LogFile string // Path to log file

	Follower TaskFollower

	// Prevent build, launch and stop phases from running concurrently
	DisableConcurrentPhases bool

	WorkingDir string

	Tags []string // Tags to distinguish runners started by this instance of edward
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

NewClient creates an edward client an empty configuration

func NewClientWithConfig

func NewClientWithConfig(configPath, version string, logger *log.Logger) (*Client, error)

NewClientWithConfig creates an Edward client and loads the config from the given path

func (*Client) BasePath

func (c *Client) BasePath() string

func (*Client) Generate

func (c *Client) Generate(names []string, force bool, group string, targets []string) error

func (*Client) List

func (c *Client) List() error

func (*Client) LoadConfig

func (c *Client) LoadConfig(nedwardVersion string) error

LoadConfig loads an Nedward project config into the shared maps for this client

func (*Client) Log

func (c *Client) Log(names []string) error

func (*Client) Restart

func (c *Client) Restart(names []string, force bool, skipBuild bool, tail bool, noWatch bool, exclude []string) error

func (*Client) ServiceMap

func (c *Client) ServiceMap() map[string]*services.ServiceConfig

func (*Client) Start

func (c *Client) Start(names []string, skipBuild bool, tail bool, noWatch bool, exclude []string) error

func (*Client) Status

func (c *Client) Status(names []string, all bool) (string, error)

func (*Client) Stop

func (c *Client) Stop(names []string, force bool, exclude []string, all bool) error

func (*Client) Version

func (c *Client) Version() string

type TaskFollower

type TaskFollower interface {
	Handle(update tracker.Task)
	Done()
}

Jump to

Keyboard shortcuts

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