Help us shape the future of Go! Take the 2026 Go Developer Survey

pack

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoBuildpack = errors.New("No known buildpacks support this app")
)

Functions

This section is empty.

Types

type Buildpack

type Buildpack struct {
	Metadata *Metadata
	WorkDir  string
}

func Detect

func Detect(workDir string) (pack *Buildpack, err error)

func (*Buildpack) BuildImage

func (b *Buildpack) BuildImage(name string) (string, error)

func (*Buildpack) GetDockerfile

func (b *Buildpack) GetDockerfile() (string, error)

type Depend

type Depend struct {
	Name string
	Args []string
	List bool
}

type GoPack

type GoPack struct {
	WorkDir string
}

func (*GoPack) Command

func (g *GoPack) Command() (string, error)

func (*GoPack) Detect

func (g *GoPack) Detect() bool

func (*GoPack) Metadata

func (g *GoPack) Metadata() *Metadata

func (*GoPack) Name

func (g *GoPack) Name() string

func (*GoPack) Version

func (g *GoPack) Version() (string, error)

type Metadata

type Metadata struct {
	Command  string
	Depends  []*Depend
	Env      map[string]string
	Install  []string
	Name     string
	Packages []string
	Path     string
	Process  []string
	Root     Root
	Tools    []*Tool
	User     string
	Variant  string
	Version  string
}

type NodePack

type NodePack struct {
	WorkDir string
}

func (*NodePack) Command

func (n *NodePack) Command() (string, error)

func (*NodePack) Detect

func (n *NodePack) Detect() bool

func (*NodePack) Metadata

func (n *NodePack) Metadata() *Metadata

func (*NodePack) Name

func (n *NodePack) Name() string

func (*NodePack) Version

func (n *NodePack) Version() (string, error)

type Pack

type Pack interface {
	Detect() bool
	Metadata() *Metadata
	Name() string
	Command() (string, error)
	Version() (string, error)
}

type PhpPack

type PhpPack struct {
	WorkDir string
}

func (*PhpPack) Command

func (p *PhpPack) Command() (string, error)

func (*PhpPack) Detect

func (p *PhpPack) Detect() bool

func (*PhpPack) Metadata

func (p *PhpPack) Metadata() *Metadata

func (*PhpPack) Name

func (p *PhpPack) Name() string

func (*PhpPack) Version

func (p *PhpPack) Version() (string, error)

type PythonPack

type PythonPack struct {
	WorkDir string
}

func (*PythonPack) Command

func (p *PythonPack) Command() (string, error)

func (*PythonPack) Detect

func (p *PythonPack) Detect() bool

func (*PythonPack) Metadata

func (p *PythonPack) Metadata() *Metadata

func (*PythonPack) Name

func (p *PythonPack) Name() string

func (*PythonPack) Version

func (p *PythonPack) Version() (string, error)

type Root

type Root struct {
	File string
	Key  string
}

type RubyPack

type RubyPack struct {
	WorkDir string
}

func (*RubyPack) Command

func (r *RubyPack) Command() (string, error)

func (*RubyPack) Detect

func (r *RubyPack) Detect() bool

func (*RubyPack) Metadata

func (r *RubyPack) Metadata() *Metadata

func (*RubyPack) Name

func (r *RubyPack) Name() string

func (*RubyPack) Version

func (r *RubyPack) Version() (string, error)

type Tool

type Tool struct {
	Copy     map[string][]string
	Name     string
	Owner    string
	Archive  string
	Binary   bool
	Download string
	Files    []string
	Install  []string
	Hook     func(meta *Metadata, tool *Tool) error
}

Jump to

Keyboard shortcuts

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