mocks

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 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) GetUpdates added in v1.5.0

func (c *Config) GetUpdates() []registry.EntryConfig

func (*Config) Reset added in v1.5.5

func (c *Config) Reset(base di.Config)

func (*Config) Save added in v1.5.0

func (c *Config) Save(path string) error

func (*Config) ScratchDirectory

func (c *Config) ScratchDirectory() string

func (*Config) SetFeatures

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

func (*Config) Update added in v1.5.0

func (c *Config) Update(entry registry.EntryConfig)

type Initializer

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

func (*Initializer) CloneRepository added in v1.3.0

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

func (*Initializer) CreateRepository added in v1.3.0

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

func (*Initializer) CreateScratchpad

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

func (*Initializer) Reset added in v1.5.5

func (i *Initializer) Reset()

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) Reset

func (o *Output) Reset()

func (*Output) Write

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

func (*Output) WriteString added in v1.2.30

func (o *Output) WriteString(s string) (int, error)

Jump to

Keyboard shortcuts

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