Safe Haskell | None |
---|---|
Language | Haskell2010 |
- metadataServer :: String
- projectMetadataPath :: String
- instanceMetadataPath :: String
- readKey :: String -> Cloud ByteString
- readJSON :: FromJSON a => String -> Cloud a
- newtype ProjectId = ProjectId {
- unProjectId :: Text
- projectId :: Cloud ProjectId
- newtype NumericProjectId = NumericProjectId {}
- numericProjectId :: Cloud NumericProjectId
- type Attribute = (ByteString, ByteString)
- projectAttributes :: Cloud [Attribute]
- newtype InstanceId = InstanceId {}
- instanceId :: Cloud InstanceId
- newtype MachineType = MachineType {}
- machineType :: Cloud MachineType
- internalHostname :: Cloud String
- newtype Zone = Zone {}
- zone :: Cloud Zone
- serviceAccountToken :: String -> Cloud Token
Documentation
readKey :: String -> Cloud ByteString Source
Convenience function to read a metadata value from the server. When
talking to the metadata server one has to supply a Metadata-Flavor
header,
otherwise the server refuses to communicate.
readJSON :: FromJSON a => String -> Cloud a Source
Like getJSON
but for reading from the metadata server.
The ProjectId
is a string which the user can freely chose when creating
a new project in the Google cloud. It is globally unique.
newtype NumericProjectId Source
The NumericProjectId
can also be used to refer to a project on Google
cloud. It is globally unique.
type Attribute = (ByteString, ByteString) Source
A project or instance metadata attribute is a key-value pair.
newtype InstanceId Source
The ID of an instance. This is a unique, numerical ID that is generated by Google Compute Engine. This is useful for identifying instances if you do not want to use instance names.
newtype MachineType Source
The fully-qualified machine type name of the instance's host machine.
internalHostname :: Cloud String Source
The internal hostname of the instance.
serviceAccountToken :: String -> Cloud Token Source
Fetch an access token for the given service account.