file

package
v0.0.0-...-cf493b0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuFileName = "bundle.yml"
)

Variables

View Source
var BuFile string

Functions

func Initialize

func Initialize(path string) error

func IsBundleInitialized

func IsBundleInitialized(path string) bool

func WritePluginsToBundle

func WritePluginsToBundle(plugins map[string]string, path string) error

func WritePluginsToBundleFtp

func WritePluginsToBundleFtp(conn *ftp.ServerConn, plugins map[string]string) error

Types

type BundleFile

type BundleFile struct {
	Plugins map[string]string `yaml:"Plugins,omitempty"`
}

func GetBundle

func GetBundle(path string) (*BundleFile, error)

func GetBundleFtp

func GetBundleFtp(conn *ftp.ServerConn) (BundleFile, error)

type PluginYml

type PluginYml struct {
	Name        string   `yaml:"name"`
	Version     string   `yaml:"version"`
	Description string   `yaml:"description,omitempty"`
	Category    int32    `yaml:"category,omitempty"`
	Conflicts   []string `yaml:"conflicts,omitempty"`
}

func GetPluginYml

func GetPluginYml(pluginName string, conn *ftp.ServerConn) (PluginYml, error)

func ParsePluginYml

func ParsePluginYml(rd io.ReaderAt, size int64) (PluginYml, error)

Jump to

Keyboard shortcuts

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