manifest

package
v0.0.0-...-1d50e38 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManifestLoadCmd    = "load"
	ManifestAttachCmd  = "attach"
	ManifestPluginName = "manifest"

	ManifestLoadAPIEndpoint = "load"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestLoadCommand

type ManifestLoadCommand struct{}

ManifestLoadCommand

func (*ManifestLoadCommand) Execute

func (mfc *ManifestLoadCommand) Execute(pluginLogger plugin.Logger,
	pluginCom plugin.PluginCommunicator, conf *model.TaskConfig,
	stop chan bool) error

Implementation of Execute.

func (*ManifestLoadCommand) Load

Load performs a GET on /manifest/load

func (*ManifestLoadCommand) Name

func (mfc *ManifestLoadCommand) Name() string

func (*ManifestLoadCommand) ParseParams

func (mfc *ManifestLoadCommand) ParseParams(params map[string]interface{}) error

ManifestLoadCommand-specific implementation of ParseParams.

func (*ManifestLoadCommand) Plugin

func (mfc *ManifestLoadCommand) Plugin() string

type ManifestPlugin

type ManifestPlugin struct {
	OAuthCredentials string
}

ManifestPlugin handles the creation of a Build Manifest associated with a version.

func (*ManifestPlugin) Configure

func (m *ManifestPlugin) Configure(conf map[string]interface{}) error

func (*ManifestPlugin) GetAPIHandler

func (m *ManifestPlugin) GetAPIHandler() http.Handler

func (*ManifestPlugin) GetManifest

func (m *ManifestPlugin) GetManifest(w http.ResponseWriter, r *http.Request)

func (*ManifestPlugin) GetPanelConfig

func (m *ManifestPlugin) GetPanelConfig() (*plugin.PanelConfig, error)

GetPanelConfig returns a pointer to a plugin's UI configuration. or an error, if an error occur while trying to generate the config A nil pointer represents a plugin without a UI presence, and is not an error. GetPanelConfig returns a plugin.PanelConfig struct representing panels that will be added to the Version page.

func (*ManifestPlugin) GetUIHandler

func (m *ManifestPlugin) GetUIHandler() http.Handler

func (*ManifestPlugin) ManifestLoadHandler

func (mp *ManifestPlugin) ManifestLoadHandler(w http.ResponseWriter, r *http.Request)

ManifestLoadHandler attempts to get the manifest, if it exists it updates the expansions and returns If it does not exist it performs GitHub API calls for each of the project's modules and gets the head revision of the branch and inserts it into the manifest collection. If there is a duplicate key error, then do a find on the manifest again.

func (*ManifestPlugin) Name

func (m *ManifestPlugin) Name() string

Name returns the name of this plugin - satisfies 'Plugin' interface

func (*ManifestPlugin) NewCommand

func (m *ManifestPlugin) NewCommand(cmdName string) (plugin.Command, error)

NewCommand returns requested commands by name. Fulfills the Plugin interface.

Jump to

Keyboard shortcuts

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