接口 PackagesManagement
- 所有已知实现类:
PackagesManagementImpl
public interface PackagesManagement
PackagesManagement provides a way to manage the packages of function, sink, and source.
-
方法概要
修饰符和类型方法说明delete(PackageName packageName) Delete a package.download(PackageName packageName, OutputStream outputStream) Download a package of a given version to a given path.getMeta(PackageName packageName) Get the metadata of a package.voidinitialize(PackagesStorage storage) Initialize the packages management service with the given storage.list(PackageName packageName) List all the versions of a package.list(PackageType type, String tenant, String namespace) List all the packages with the type of a namespace.updateMeta(PackageName packageName, PackageMetadata metadata) Update the metadata of a package.upload(PackageName packageName, PackageMetadata metadata, InputStream inputStream) Upload a package of a given version from a given path.
-
方法详细资料
-
initialize
Initialize the packages management service with the given storage.- 参数:
storage- the storage used to saving packages
-
getMeta
Get the metadata of a package.- 参数:
packageName- package name- 返回:
-
updateMeta
Update the metadata of a package.- 参数:
packageName- package namemetadata-- 返回:
-
download
Download a package of a given version to a given path.- 参数:
packageName- package nameoutputStream-- 返回:
-
upload
CompletableFuture<Void> upload(PackageName packageName, PackageMetadata metadata, InputStream inputStream) Upload a package of a given version from a given path.- 参数:
packageName- package namemetadata- metadata of a packageinputStream-- 返回:
-
delete
Delete a package. It will delete all versions of a package if the version is not specified. Otherwise it will delete the specified version package.- 参数:
packageName- package name type://tenant/namespace/name@version is delete a given version of the package type://tenant/namespace/name is delete all versions of the package- 返回:
-
list
List all the versions of a package.- 参数:
packageName- package name without version- 返回:
- all the versions of the specified package
-
list
List all the packages with the type of a namespace.- 参数:
type- the package typetenant- the tenant namenamespace- the namespace name- 返回:
- the packages name under the specified namespace
-