Documentation ¶
Index ¶
- Constants
- type ManifestLoadCommand
- func (mfc *ManifestLoadCommand) Execute(pluginLogger plugin.Logger, pluginCom plugin.PluginCommunicator, ...) error
- func (mfc *ManifestLoadCommand) Load(log plugin.Logger, pluginCom plugin.PluginCommunicator, conf *model.TaskConfig) error
- func (mfc *ManifestLoadCommand) Name() string
- func (mfc *ManifestLoadCommand) ParseParams(params map[string]interface{}) error
- func (mfc *ManifestLoadCommand) Plugin() string
- type ManifestPlugin
- func (m *ManifestPlugin) Configure(conf map[string]interface{}) error
- func (m *ManifestPlugin) GetAPIHandler() http.Handler
- func (m *ManifestPlugin) GetManifest(w http.ResponseWriter, r *http.Request)
- func (m *ManifestPlugin) GetPanelConfig() (*plugin.PanelConfig, error)
- func (m *ManifestPlugin) GetUIHandler() http.Handler
- func (mp *ManifestPlugin) ManifestLoadHandler(w http.ResponseWriter, r *http.Request)
- func (m *ManifestPlugin) Name() string
- func (m *ManifestPlugin) NewCommand(cmdName string) (plugin.Command, error)
Constants ¶
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 ¶
func (mfc *ManifestLoadCommand) Load(log plugin.Logger, pluginCom plugin.PluginCommunicator, conf *model.TaskConfig) error
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.