commands

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildpackInspector

type BuildpackInspector interface {
	Dependencies(path string) (dependencies []cargo.ConfigMetadataDependency, defaults map[string]string, stacks []string, err error)
}

type ConfigParser

type ConfigParser interface {
	Parse(path string) (cargo.Config, error)
}

type DependencyCacher

type DependencyCacher interface {
	Cache(root string, dependencies []cargo.ConfigMetadataDependency) ([]cargo.ConfigMetadataDependency, error)
}

type DirectoryDuplicator

type DirectoryDuplicator interface {
	Duplicate(sourcePath, destPath string) error
}

type FileBundler

type FileBundler interface {
	Bundle(path string, files []string, config cargo.Config) ([]cargo.File, error)
}

type Formatter

type Formatter interface {
	Markdown(dependencies []cargo.ConfigMetadataDependency, defaults map[string]string, stacks []string)
}

type Pack

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

func NewPack

func NewPack(
	directoryDuplicator DirectoryDuplicator,
	configParser ConfigParser,
	prePackager PrePackager,
	dependencyCacher DependencyCacher,
	fileBundler FileBundler,
	tarBuilder TarBuilder,
	stdout io.Writer,
) Pack

func (Pack) Execute

func (p Pack) Execute(args []string) error

type PrePackager

type PrePackager interface {
	Execute(path, rootDir string) error
}

type Summarize

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

func NewSummarize

func NewSummarize(buildpackInspector BuildpackInspector, formatter Formatter) Summarize

func (Summarize) Execute

func (s Summarize) Execute(args []string) error

type TarBuilder

type TarBuilder interface {
	Build(path string, files []cargo.File) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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