메소드 | 설명 | |
---|---|---|
__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 |
리턴 | string |
public getProjectId ( ) : string | ||
리턴 | string |
public getProjectMetadata ( string $key ) : string | ||
$key | string | The metadata key |
리턴 | string |