com.thoughtworks.go.plugin.api.info.PluginDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of go-plugin-api Show documentation
Show all versions of go-plugin-api Show documentation
The APIs described here are needed for developing plugins for GoCD - A continuous delivery server
/*
* Copyright 2020 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.thoughtworks.go.plugin.api.info;
import java.io.Serializable;
import java.util.List;
/**
* Descriptor represent the plugin descriptor XML file.
*
* @see Go Plugin Documentation
*
* @author Go Team
*/
public interface PluginDescriptor extends Serializable {
/**
* Plugin Id.
*
* @return a string containing the plugin id.
*/
String id();
/**
* Provides version of the plugin which will be used by Go to identify the version of the plugin. It will be used in plugin upgrade flow and only integer values are allowed.
*
* @return a string containing the plugin descriptor version.
*/
String version();
/**
* Plugin author information.
*
* @return object containing the author information.
*/
About about();
/**
* Plugin author information.
*
* @author Go Team
*/
interface About {
/**
* Author name.
*
* @return a string containing the name.
*/
String name();
/**
* Provides version of the plugin which will be used by plugin authors to provide meaningful version for the plugin. It will be used for display purpose by Go.
*
* @return a string containing the plugin version.
*/
String version();
/**
* Target Go version.
*
* @return a string containing the version of Go for which the
* plugin is intended.
*/
String targetGoVersion();
/**
* Plugin Description.
*
* @return a string containing the plugin description.
*/
String description();
/**
* Plugin vendor details.
*
* @return an object containing the plugin vendor details.
*/
Vendor vendor();
/**
* Operating systems on which this plugin can run.
*
* @return a list of valid operating system name strings.
*/
List targetOperatingSystems();
}
/**
* Plugin vendor information.
*
*/
interface Vendor {
/**
* Vendor name.
*
* @return a string containing vendor name.
*/
String name();
/**
* Vendor website URL
*
* @return a string containing website URL of the vendor.
*/
String url();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy