| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DigitalOcean.Image
- data Image = Image {
- imgId :: Integer
- imgName :: String
- imgDistribution :: String
- imgType :: String
- imgSlug :: Maybe String
- imgPublic :: Bool
- imgRegions :: [String]
- imgMinDiskSize :: Integer
- imgCreatedAt :: String
- images :: Authentication -> MonadIO m => m (Maybe [Image])
- listAllDistributionImages :: Authentication -> MonadIO m => m (Maybe [Image])
Documentation
Constructors
| Image | |
Fields
| |
images :: Authentication -> MonadIO m => m (Maybe [Image]) Source
List all Images
do
tkn <- getEnv DIGITAL_OCEAN_PERSONAL_ACCESS_TOKEN
maybeImages <- images $ Authentication tkn
print $ show $ isJust maybeImages
listAllDistributionImages :: Authentication -> MonadIO m => m (Maybe [Image]) Source
List all Distribution Images
do
tkn <- getEnv DIGITAL_OCEAN_PERSONAL_ACCESS_TOKEN
maybeImages <- listAllDistributionImages $ Authentication tkn
print $ show $ isJust maybeImages