pub trait Platform where
Self: Sized, {
fn env(&self) -> &Env;
fn from_path(platform_dir: impl AsRef<Path>) -> Result<Self>;
}
Expand description
Represents a Cloud Native Buildpack platform.
Most buildpacks target a generic platform and this library provides a crate::generic::GenericPlatform
for that
use-case. Buildpack authors usually do not need to implement this trait. See
detection and
build in the buildpack
specification for details.
Required methods
Retrieve a Env
reference for convenient access to environment variables which
all platforms have to provide.