rackplugin

package
v0.0.0-...-648df55 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package rackplugin includes the struct and functions to setup and retrieve information from the plugins rackspec

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deintegrate

func Deintegrate() error

Deintegrate will remove the rackspec from the plugin in the current directory.

func GetAllPlugins

func GetAllPlugins() []string

GetAllPlugins returns a list of all plugins contained in all current added repos

func GetPluginsFromRepo

func GetPluginsFromRepo(repoName string) []string

GetPluginsFromRepo returns a list of all plugins in a given repo

func InitializePlugin

func InitializePlugin(pluginName string, opts map[string]string)

InitializePlugin willl initialize a Plugin repository with a integrated rackspec file.

func Integrate

func Integrate() error

Integrate will add a default rackspec to the plugin in the current directory.

Types

type Plugin

type Plugin struct {
	XMLName       xml.Name `xml:"plugin"`
	Name          string
	Version       string                 `xml:"version"`
	Author        string                 `xml:"author"`
	Description   string                 `xml:"description"`
	Compatibility rackspec.Compatibility `xml:"compatibility"`
}

Plugin struct provides a bare skeleton for a plugin devinition of shopware

Jump to

Keyboard shortcuts

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