Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Image = Image {
- _imgId :: !Int
- _imgName :: !Text
- _imgDist :: !Text
- _imgSlug :: Maybe Text
- _imgPublic :: !Bool
- _imgRegions :: ![Text]
- _imgCreatedAt :: !Text
- _imgMinDiskSize :: !Int
- getImages :: (Error e, MonadError e m, MonadIO m) => Config -> m [Image]
- getDistributionImages :: (Error e, MonadError e m, MonadIO m) => Config -> m [Image]
- getApplicationImages :: (Error e, MonadError e m, MonadIO m) => Config -> m [Image]
- getImage :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m Image
- renameImage :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m Image
- deleteImage :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m ()
- transferImage :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m Action
- imgId :: Lens' Image Int
- imgName :: Lens' Image Text
- imgDist :: Lens' Image Text
- imgSlug :: Lens' Image (Maybe Text)
- imgPublic :: Lens' Image Bool
- imgRegions :: Lens' Image [Text]
- imgCreatedAt :: Lens' Image Text
- imgMinDiskSize :: Lens' Image Int
Documentation
A Digital Ocean image
Image | |
|
getImages :: (Error e, MonadError e m, MonadIO m) => Config -> m [Image] Source
List all images availible to the account
getDistributionImages :: (Error e, MonadError e m, MonadIO m) => Config -> m [Image] Source
List all distribution images availible to the account
getApplicationImages :: (Error e, MonadError e m, MonadIO m) => Config -> m [Image] Source
List all application images availible to the account
getImage :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m Image Source
Get the image with the given ID/slug
renameImage :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m Image Source
Rename an image
deleteImage :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m () Source
Delete an image
transferImage :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m Action Source
Transfer an image to another region
Lens Accessors
imgRegions :: Lens' Image [Text] Source