blob: de27d8afe531db642ed88085f6f27a5c895f2321 [file] [log] [blame]
package org.jclouds.joyent.cloudapi.v6_5.features;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.jclouds.concurrent.Timeout;
/**
* Provides synchronous access to Packages.
* <p/>
*
* @author Gerald Pereira
* @see PackageAsyncClient
* @see <a href="http://apidocs.joyent.com/cloudApiapidoc/cloudapi">api doc</a>
*/
@Timeout(duration = 30, timeUnit = TimeUnit.SECONDS)
public interface PackageClient {
/**
* Provides a list of packages available in this datacenter.
*
* @return
*/
Set<org.jclouds.joyent.cloudapi.v6_5.domain.Package> list();
/**
* Gets an individual package by id.
*
* @param name
* the name of the package
* @return
*/
org.jclouds.joyent.cloudapi.v6_5.domain.Package get(String name);
}