Documentation ¶
Index ¶
- Constants
- type FileSystem
- func (fs *FileSystem) GetSchema(m mixin.Metadata) (string, error)
- func (fs *FileSystem) GetVersion(m mixin.Metadata) (string, error)
- func (fs *FileSystem) GetVersionMetadata(m mixin.Metadata) (*mixin.VersionInfo, error)
- func (fs *FileSystem) Install(opts mixin.InstallOptions) (*mixin.Metadata, error)
- func (fs *FileSystem) InstallFromFeedURL(opts mixin.InstallOptions) (*mixin.Metadata, error)
- func (fs *FileSystem) InstallFromURL(opts mixin.InstallOptions) (*mixin.Metadata, error)
- func (fs *FileSystem) List() ([]mixin.Metadata, error)
- func (fs *FileSystem) Run(mixinContext *context.Context, mixinName string, ...) error
- func (fs *FileSystem) Uninstall(opts mixin.UninstallOptions) (*mixin.Metadata, error)
- type Runner
- type TestRunner
Constants ¶
View Source
const MixinCacheJSON string = "cache.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
func NewFileSystem ¶
func NewFileSystem(config *config.Config) *FileSystem
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) 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 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.
Click to show internal directories.
Click to hide internal directories.