internal

package
v0.0.0-...-194279b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingMythAuthEnvVars = fmt.Errorf(`Mythx requires its own credentials to be run inside of Genesis. Please either provide MYTHX_API_KEY or both MYTHX_USERNAME and MYTHX_PASSWORD. For more details, please see https://mythx-cli.readthedocs.io/en/latest/usage.html#authentication`)
View Source
var ErrMissingMythxCLI = fmt.Errorf(`Could not find the mythx cli in your path. Ensure that the folder in which the CLI resides is inside your $PATH and that the mythx cli is installed. For installation instructions, please see https://mythx-cli.readthedocs.io/en/latest/installation.html`)

Functions

func CalculateBlockIO

func CalculateBlockIO(blkio types.BlkioStats) (uint64, uint64)

Function copied from https://github.com/docker/cli

func DuringFlightChecks

func DuringFlightChecks(def definition.Definition, p *mpb.Progress, baseDir string) map[string]<-chan error

func GetOrgID

func GetOrgID(cmd *cobra.Command) string

func GetStatusBars

func GetStatusBars(follow bool, testIDs []string, tests []command.Test,
	def definition.Definition) map[string]<-chan error

func Lint

func Lint(data []byte) error

func MustSchemaJSONFromCompose

func MustSchemaJSONFromCompose(data []byte) []byte

func MustSchemaYAMLFromCompose

func MustSchemaYAMLFromCompose(data []byte) []byte

func MythxAsync

func MythxAsync(p *mpb.Progress, baseDir string) map[string]<-chan error

func NewLocalFileSource

func NewLocalFileSource(log logrus.Ext1FieldLogger) *localFileSource

func NewMythxStatusBar

func NewMythxStatusBar(p *mpb.Progress, id string) util.StatusBar

func NewNoTTYStatusBar

func NewNoTTYStatusBar(id string, total int64) util.StatusBar

func NewTTYStatusBar

func NewTTYStatusBar(p *mpb.Progress, bar *mpb.Bar, id string, info util.BarInfo) util.StatusBar

func NewTrackerLogger

func NewTrackerLogger(id string, infinite bool) util.StatusBar

func ParseDockerStats

func ParseDockerStats(dockerStats types.StatsJSON) map[string]interface{}

func PreFlightChecks

func PreFlightChecks(def definition.Definition, baseDir string) error

func RunMythx

func RunMythx(def definition.Definition, baseDir string) error

func SchemaFromCompose

func SchemaFromCompose(data []byte) (schema.RootSchema, error)

func SchemaYAMLFromCompose

func SchemaYAMLFromCompose(data []byte) ([]byte, error)

Types

type Spinner

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

func (*Spinner) Kill

func (this *Spinner) Kill()

func (*Spinner) Run

func (this *Spinner) Run(ms int)

func (*Spinner) SetText

func (this *Spinner) SetText(txt string)

Jump to

Keyboard shortcuts

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