pack

package
v0.0.0-...-2b46327 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_RUNNER_CONFIG = "runner.yml"
View Source
const PACK_INDEX_FILE = "index.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type GitPack

type GitPack struct {
	RepoPath   string
	ContentDir string

	Packs []*Pack
}

func GetPackFromGit

func GetPackFromGit(contentdir string, repopath string) (*GitPack, error)

func (*GitPack) Clone

func (gp *GitPack) Clone() error

func (*GitPack) Save

func (gp *GitPack) Save(pn string, commitmsg string, author *object.Signature) error

func (*GitPack) Status

func (gp *GitPack) Status(pn string) (git.Status, error)

func (*GitPack) Update

func (gp *GitPack) Update(pn string) (*string, error)

type Info

type Info struct {
	Description string
	Author      string
	Version     string
}

type Pack

type Pack struct {
	Name    string
	Comment string
	Version string
	Path    string
	Active  bool

	Repo string
}

type PackIndex

type PackIndex struct {
	Packs      []*Pack
	ContentDir string
	// contains filtered or unexported fields
}

func GetPackIndex

func GetPackIndex(contentDir string) *PackIndex

func (*PackIndex) ActivatePack

func (p *PackIndex) ActivatePack(pn string) (*Pack, error)

func (*PackIndex) Get

func (p *PackIndex) Get(packName string, repopath string) error

func (*PackIndex) GetOrClone

func (pi *PackIndex) GetOrClone(packName string, repopath string) (*Pack, error)

func (*PackIndex) GetPackName

func (p *PackIndex) GetPackName(pn string) (*Pack, error)

func (*PackIndex) Reindex

func (pi *PackIndex) Reindex()

func (*PackIndex) Save

func (pi *PackIndex) Save(packName string, commitmsg string, author object.Signature) error

func (*PackIndex) Status

func (pi *PackIndex) Status(packName string) (git.Status, error)

func (*PackIndex) Update

func (pi *PackIndex) Update(packName string) (*string, error)

func (*PackIndex) WritePackIndex

func (pi *PackIndex) WritePackIndex(p string)

type Run

type Run struct {
	// This we read from Json
	Integration string
	// contains filtered or unexported fields
}

Run definitions

type RunConfig

type RunConfig struct {
	Info   Info
	Runner Runner
	Run    []Run

	Running []*integrations.BaseIntegration `yaml:"running"`
	// contains filtered or unexported fields
}

RunConfig is the configuration passed to the runner object

func GetRunConfig

func GetRunConfig(packDir string, settings *settings.Settings) *RunConfig

func (*RunConfig) AddIntegration

func (rc *RunConfig) AddIntegration(name string) error

func (*RunConfig) DeleteIntegration

func (rc *RunConfig) DeleteIntegration(name string) error

func (*RunConfig) GetIntegrations

func (rc *RunConfig) GetIntegrations() []*integrations.BaseIntegration

func (*RunConfig) Prepare

func (rc *RunConfig) Prepare()

func (*RunConfig) Reread

func (rc *RunConfig) Reread()

func (*RunConfig) Restart

func (rc *RunConfig) Restart()

func (*RunConfig) RunAll

func (rc *RunConfig) RunAll()

func (*RunConfig) Save

func (rc *RunConfig) Save() error

func (*RunConfig) Shutdown

func (rc *RunConfig) Shutdown()

func (*RunConfig) UpdateSettings

func (rc *RunConfig) UpdateSettings(s settings.Settings)

type Runner

type Runner struct {
	Address    string
	PortMin    int
	PortMax    int
	ContentDir string
	PackDir    string
	// contains filtered or unexported fields
}

Runner handles executing the Mock handlers and distributing them across the available system ports

func (*Runner) GetAddress

func (r *Runner) GetAddress() string

Jump to

Keyboard shortcuts

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