Method | Description | |
---|---|---|
__construct ( ) | We use StreamReader for the default implementation for fetching the URL. | |
get ( string $path ) | Fetch a metadata item by its path | |
getInstanceMetadata ( string $key ) : string | Fetch an item from the instance metadata | |
getProjectId ( ) : string | Detect and return the project ID | |
getProjectMetadata ( string $key ) : string | Fetch an item from the project metadata | |
setReader ( mixed $reader ) | Replace the default reader implementation |
public __construct ( ) |
public getInstanceMetadata ( string $key ) : string | ||
$key | string | The instance metadata key |
return | string |
public getProjectId ( ) : string | ||
return | string |
public getProjectMetadata ( string $key ) : string | ||
$key | string | The metadata key |
return | string |