Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
Image | |
|
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