Add method to load plugin from Freenet key
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / LoadPluginCommand.java
1 package net.pterodactylus.fcp.quelaton;
2
3 import java.util.Optional;
4
5 import net.pterodactylus.fcp.PluginInfo;
6
7 /**
8  * Loads a plugin.
9  *
10  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
11  */
12 public interface LoadPluginCommand {
13
14         LoadPluginCommand addToConfig();
15         Executable<Optional<PluginInfo>> officialFromFreenet(String pluginIdentifier);
16         Executable<Optional<PluginInfo>> officialFromHttps(String pluginIdentifier);
17         Executable<Optional<PluginInfo>> fromFreenet(String key);
18         Executable<Optional<PluginInfo>> fromFile(String filename);
19         Executable<Optional<PluginInfo>> fromUrl(String url);
20
21 }