mocks

package
v1.2.28 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(base di.Config) *Config

func (*Config) AddAlias

func (c *Config) AddAlias(name, value string) *Config

func (*Config) AddApp

func (c *Config) AddApp(a models.App) *Config

func (*Config) AddService

func (c *Config) AddService(s models.Service) *Config

func (*Config) DevelopmentDirectory

func (c *Config) DevelopmentDirectory() string

func (*Config) GetAlias

func (c *Config) GetAlias(name string) string

func (*Config) GetAliases

func (c *Config) GetAliases() map[string]string

func (*Config) GetApp

func (c *Config) GetApp(name string) models.App

func (*Config) GetApps

func (c *Config) GetApps() []models.App

func (*Config) GetDefaultApp

func (c *Config) GetDefaultApp() models.App

func (*Config) GetDefaultService

func (c *Config) GetDefaultService() models.Service

func (*Config) GetFeatures

func (c *Config) GetFeatures() di.Features

func (*Config) GetService

func (c *Config) GetService(domain string) models.Service

func (*Config) GetServices

func (c *Config) GetServices() []models.Service

func (*Config) ScratchDirectory

func (c *Config) ScratchDirectory() string

func (*Config) SetFeatures

func (c *Config) SetFeatures(features di.Features) *Config

type Initializer

type Initializer struct {
	MockCalls []struct {
		Function string
		Target   models.Target
	}
	MockError error
}

func (*Initializer) Clone

func (i *Initializer) Clone(r models.Repo) error

func (*Initializer) CreateRemoteRepo

func (i *Initializer) CreateRemoteRepo(r models.Repo) error

func (*Initializer) CreateScratchpad

func (i *Initializer) CreateScratchpad(r models.Scratchpad) error

func (*Initializer) EnsureRemoteRepo

func (i *Initializer) EnsureRemoteRepo(r models.Repo) error

func (*Initializer) Init

func (i *Initializer) Init(r models.Repo) error

func (*Initializer) Pull

func (i *Initializer) Pull(r models.Repo) error

type Launcher

type Launcher struct {
	// contains filtered or unexported fields
}

func (*Launcher) GetCommands

func (l *Launcher) GetCommands() []*exec.Cmd

func (*Launcher) Reset

func (l *Launcher) Reset()

func (*Launcher) Run

func (l *Launcher) Run(cmd *exec.Cmd) error

type Output

type Output struct {
	// contains filtered or unexported fields
}

func (*Output) GetOperations

func (o *Output) GetOperations() []string

func (*Output) Print

func (o *Output) Print(args ...interface{})

func (*Output) Printf

func (o *Output) Printf(format string, args ...interface{})

func (*Output) Println

func (o *Output) Println(args ...interface{})

func (*Output) Reset

func (o *Output) Reset()

func (*Output) Write

func (o *Output) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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