bundle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sourceables added in v0.7.0

func Sourceables(b Bundle) []string

Sourceables returns the list of files that could be sourced

Types

type Bundle

type Bundle interface {
	Folder() string
	Name() string
	Download() error
	Update() error
}

Bundle is an interface for different types of bundles

func List

func List(folder string) []Bundle

List all bundles in the given folder

func New

func New(fullName, folder string) Bundle

New creates a new bundle instance

func Parse

func Parse(s, folder string) []Bundle

Parse a list of bundles, one per line, into a Bundle slice

type DirBundle added in v0.7.0

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

DirBundle is a bundle for local plugins

func (DirBundle) Download added in v0.7.0

func (d DirBundle) Download() error

Download simply checks the local bundle exists

func (DirBundle) Folder added in v0.7.0

func (d DirBundle) Folder() string

Folder where the local bundle exists

func (DirBundle) Name added in v0.7.0

func (d DirBundle) Name() string

Name of the local bundle

func (DirBundle) Update added in v0.7.0

func (d DirBundle) Update() error

Update is a no-op

Jump to

Keyboard shortcuts

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