Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type ApiKey = String
- data LinodeCreationOptions = LinodeCreationOptions {
- datacenterChoice :: String
- planChoice :: String
- kernelSelect :: [Kernel] -> Maybe Kernel
- distributionSelect :: [Distribution] -> Maybe Distribution
- paymentChoice :: PaymentTerm
- swapAmount :: Int
- password :: String
- sshKey :: Maybe String
- diskLabel :: String
- config :: Maybe ConfigId
- newtype ConfigId = ConfigId {
- unConfigId :: Int
- newtype DatacenterId = DatacenterId Int
- newtype DistributionId = DistributionId Int
- newtype DiskId = DiskId {}
- newtype LinodeId = LinodeId {
- unLinodeId :: Int
- newtype JobId = JobId Int
- newtype KernelId = KernelId Int
- newtype PlanId = PlanId Int
- data DiskType
- data InstanceStatus
- data PaymentTerm
- data AccountInfo = AccountInfo {}
- data Address = Address {}
- data Datacenter = Datacenter {}
- data Distribution = Distribution {}
- data Instance = Instance {}
- data Kernel = Kernel {}
- data Plan = Plan {}
- data BootedInstance = BootedInstance {}
- data CreatedConfig = CreatedConfig {}
- data CreatedLinode = CreatedLinode {}
- data CreatedDisk = CreatedDisk {}
- type DeletedLinode = CreatedLinode
- data WaitingJob = WaitingJob {}
- data Linode = Linode {}
- type Cluster = [Linode]
- data Response a = Response {
- responseErrors :: [LinodeError]
- responseContent :: Maybe a
- data LinodeError
- = BadRequest
- | NoActionWasRequested
- | TheRequestedClassDoesNotExist
- | AuthenticationFailed
- | ObjectNotFound
- | ARequiredPropertyIsMissingForThisAction
- | PropertyIsInvalid
- | ADataValidationErrorHasOccurred
- | MethodNotImplemented
- | TooManyBatchedRequests
- | RequestArrayIsntValidJSONOrWDDX
- | BatchApproachingTimeout
- | PermissionDenied
- | APIRateLimitExceeded
- | ChargingTheCreditCardFailed
- | CreditCardIsExpired
- | LimitOfLinodesAddedPerHourReached
- | LinodeMustHaveNoDisksBeforeDelete
- | DeserializationError Text
- | NetworkError IOException
- | UnknownError Int
- | SelectionError String
- linodeErrorFromCode :: Int -> LinodeError
- instanceStatusFromInt :: Int -> Maybe InstanceStatus
Documentation
data LinodeCreationOptions Source #
LinodeCreationOptions | |
|
newtype DatacenterId Source #
newtype DistributionId Source #
data InstanceStatus Source #
data PaymentTerm Source #
data Datacenter Source #
Detailed info about a Linode instance. Memory and transfer are given in MB.
data BootedInstance Source #
data CreatedConfig Source #
data CreatedLinode Source #
data CreatedDisk Source #
type DeletedLinode = CreatedLinode Source #
data WaitingJob Source #
Basic info about a linode instance.
Response | |
|
data LinodeError Source #
linodeErrorFromCode :: Int -> LinodeError Source #