mixinprovider

package
v0.18.1-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MixinCacheJSON string = "cache.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	*config.Config
}

func NewFileSystem

func NewFileSystem(config *config.Config) *FileSystem

func (*FileSystem) GetSchema

func (fs *FileSystem) GetSchema(m mixin.Metadata) (string, error)

func (*FileSystem) GetVersion

func (fs *FileSystem) GetVersion(m mixin.Metadata) (string, error)

GetVersion is the obsolete form of retrieving mixin version, e.g. exec version, which returned an unstructured version string. It will be deprecated soon and is replaced by GetVersionMetadata.

func (*FileSystem) GetVersionMetadata

func (fs *FileSystem) GetVersionMetadata(m mixin.Metadata) (*mixin.VersionInfo, error)

GetVersionMetadata is the new form of retrieving mixin version, e.g. exec version --output json, which returns a structured version string. It replaces GetVersion.

func (*FileSystem) Install

func (fs *FileSystem) Install(opts mixin.InstallOptions) (*mixin.Metadata, error)

func (*FileSystem) InstallFromFeedURL

func (fs *FileSystem) InstallFromFeedURL(opts mixin.InstallOptions) (*mixin.Metadata, error)

func (*FileSystem) InstallFromURL

func (fs *FileSystem) InstallFromURL(opts mixin.InstallOptions) (*mixin.Metadata, error)

func (*FileSystem) List

func (fs *FileSystem) List() ([]mixin.Metadata, error)

func (*FileSystem) Run

func (fs *FileSystem) Run(mixinContext *context.Context, mixinName string, commandOpts mixin.CommandOptions) error

func (*FileSystem) Uninstall

func (fs *FileSystem) Uninstall(opts mixin.UninstallOptions) (*mixin.Metadata, error)

type Runner

type Runner struct {
	*context.Context
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(mixin, mixinDir string, runtime bool) *Runner

func (*Runner) Run

func (r *Runner) Run(commandOpts mixin.CommandOptions) error

func (*Runner) Validate

func (r *Runner) Validate() error

type TestRunner

type TestRunner struct {
	*Runner
	TestContext *context.TestContext
}

func NewTestRunner

func NewTestRunner(t *testing.T, mixin string, runtime bool) *TestRunner

NewTestRunner initializes a mixin test runner, with the output buffered, and an in-memory file system.

Jump to

Keyboard shortcuts

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