bettercap: github.com/bettercap/bettercap/caplets Index | Files

package caplets

import "github.com/bettercap/bettercap/caplets"

Package caplets contains functions to enumerate, load and execute caplets.

Index

Package Files

caplet.go doc.go env.go manager.go

Constants

const (
    EnvVarName     = "CAPSPATH"
    Suffix         = ".cap"
    InstallArchive = "https://github.com/bettercap/caplets/archive/master.zip"
    InstallBase    = "/usr/local/share/bettercap/"
)

Variables

var (
    InstallPathArchive = filepath.Join(InstallBase, "caplets-master")
    InstallPath        = filepath.Join(InstallBase, "caplets")

    LoadPaths = []string{
        "./",
        "./caplets/",
        InstallPath,
    }
)

type Caplet Uses

type Caplet struct {
    Name string
    Path string
    Size int64
    Code []string
}

func List Uses

func List() []Caplet

func Load Uses

func Load(name string) (error, *Caplet)

func (*Caplet) Eval Uses

func (cap *Caplet) Eval(argv []string, lineCb func(line string) error) error

Package caplets imports 8 packages (graph) and is imported by 4 packages. Updated 2018-10-19. Refresh now. Tools for package owners.