adapters

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsToolNotFoundExError

func IsToolNotFoundExError(err error) bool

func NewToolNotFoundExError

func NewToolNotFoundExError(toolName string) error

Types

type DefaultSystemAdapter

type DefaultSystemAdapter struct {
}

func NewDefaultSystemAdapter

func NewDefaultSystemAdapter() *DefaultSystemAdapter

func (DefaultSystemAdapter) CheckCommandAvailable

func (systemAdapter DefaultSystemAdapter) CheckCommandAvailable(command string) (bool, error)

func (DefaultSystemAdapter) CheckDirExist

func (systemAdapter DefaultSystemAdapter) CheckDirExist(path string) (bool, error)

func (DefaultSystemAdapter) ExecuteCommand

func (systemAdapter DefaultSystemAdapter) ExecuteCommand(commandName string, params []string) (string, error)

type DefaultToolsStorageAdapter

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

func NewDefaultStorageAdapter

func NewDefaultStorageAdapter(storage ToolsStorage) *DefaultToolsStorageAdapter

func (DefaultToolsStorageAdapter) Find

func (adapter DefaultToolsStorageAdapter) Find(toolName string) (*manifestchecker.ToolSpec, error)

type ToolFindOptions

type ToolFindOptions struct {
	Name string
}

type ToolsStorage

type ToolsStorage interface {
	Find(toolsFindOptions ToolFindOptions) (*manifestchecker.ToolSpec, error)
}

Jump to

Keyboard shortcuts

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