Safe Haskell | None |
---|---|
Language | Haskell2010 |
Smith client configuration data and functions.
Synopsis
- data Smith = Smith SmithEndpoint Manager Store
- newtype SmithEndpoint = SmithEndpoint {}
- data SmithCredentialsType
- data SmithCredentials = SmithCredentials SmithCredentialsType IdentityId JWK
- data SmithScope
- configure :: IO (Either SmithConfigureError Smith)
- configureWith :: [SmithScope] -> Manager -> IO (Either SmithConfigureError Smith)
- configureT :: ExceptT SmithConfigureError IO Smith
- configureWithT :: [SmithScope] -> Manager -> ExceptT SmithConfigureError IO Smith
- configureEndpoint :: IO SmithEndpoint
- configureOAuth2 :: Manager -> SmithEndpoint -> [Scope] -> JWK -> IdentityId -> IO Store
- configureCredentials :: ExceptT SmithConfigureError IO SmithCredentials
- configureCredentialsByteString :: SmithCredentialsType -> ByteString -> ExceptT SmithConfigureError IO SmithCredentials
- configureCredentialsFile :: SmithCredentialsType -> FilePath -> ExceptT SmithConfigureError IO SmithCredentials
- data SmithConfigureError
- renderSmithConfigureError :: SmithConfigureError -> Text
Smith client runtime data.
Smith client input configuration.
newtype SmithEndpoint Source #
Instances
Eq SmithEndpoint Source # | |
Defined in Smith.Client.Config (==) :: SmithEndpoint -> SmithEndpoint -> Bool # (/=) :: SmithEndpoint -> SmithEndpoint -> Bool # | |
Ord SmithEndpoint Source # | |
Defined in Smith.Client.Config compare :: SmithEndpoint -> SmithEndpoint -> Ordering # (<) :: SmithEndpoint -> SmithEndpoint -> Bool # (<=) :: SmithEndpoint -> SmithEndpoint -> Bool # (>) :: SmithEndpoint -> SmithEndpoint -> Bool # (>=) :: SmithEndpoint -> SmithEndpoint -> Bool # max :: SmithEndpoint -> SmithEndpoint -> SmithEndpoint # min :: SmithEndpoint -> SmithEndpoint -> SmithEndpoint # | |
Show SmithEndpoint Source # | |
Defined in Smith.Client.Config showsPrec :: Int -> SmithEndpoint -> ShowS # show :: SmithEndpoint -> String # showList :: [SmithEndpoint] -> ShowS # |
data SmithCredentialsType Source #
Instances
Eq SmithCredentialsType Source # | |
Defined in Smith.Client.Config (==) :: SmithCredentialsType -> SmithCredentialsType -> Bool # (/=) :: SmithCredentialsType -> SmithCredentialsType -> Bool # | |
Ord SmithCredentialsType Source # | |
Defined in Smith.Client.Config compare :: SmithCredentialsType -> SmithCredentialsType -> Ordering # (<) :: SmithCredentialsType -> SmithCredentialsType -> Bool # (<=) :: SmithCredentialsType -> SmithCredentialsType -> Bool # (>) :: SmithCredentialsType -> SmithCredentialsType -> Bool # (>=) :: SmithCredentialsType -> SmithCredentialsType -> Bool # max :: SmithCredentialsType -> SmithCredentialsType -> SmithCredentialsType # min :: SmithCredentialsType -> SmithCredentialsType -> SmithCredentialsType # | |
Show SmithCredentialsType Source # | |
Defined in Smith.Client.Config showsPrec :: Int -> SmithCredentialsType -> ShowS # show :: SmithCredentialsType -> String # showList :: [SmithCredentialsType] -> ShowS # |
data SmithCredentials Source #
Instances
Eq SmithCredentials Source # | |
Defined in Smith.Client.Config (==) :: SmithCredentials -> SmithCredentials -> Bool # (/=) :: SmithCredentials -> SmithCredentials -> Bool # | |
Show SmithCredentials Source # | |
Defined in Smith.Client.Config showsPrec :: Int -> SmithCredentials -> ShowS # show :: SmithCredentials -> String # showList :: [SmithCredentials] -> ShowS # |
OAuth2 scopes
data SmithScope Source #
Instances
High-level configuration operations.
configureWith :: [SmithScope] -> Manager -> IO (Either SmithConfigureError Smith) Source #
configureWithT :: [SmithScope] -> Manager -> ExceptT SmithConfigureError IO Smith Source #
Low-level configuration operations.
configureOAuth2 :: Manager -> SmithEndpoint -> [Scope] -> JWK -> IdentityId -> IO Store Source #
configureCredentialsByteString :: SmithCredentialsType -> ByteString -> ExceptT SmithConfigureError IO SmithCredentials Source #
configureCredentialsFile :: SmithCredentialsType -> FilePath -> ExceptT SmithConfigureError IO SmithCredentials Source #
Configuration errors.
data SmithConfigureError Source #
Instances
Eq SmithConfigureError Source # | |
Defined in Smith.Client.Config (==) :: SmithConfigureError -> SmithConfigureError -> Bool # (/=) :: SmithConfigureError -> SmithConfigureError -> Bool # | |
Ord SmithConfigureError Source # | |
Defined in Smith.Client.Config compare :: SmithConfigureError -> SmithConfigureError -> Ordering # (<) :: SmithConfigureError -> SmithConfigureError -> Bool # (<=) :: SmithConfigureError -> SmithConfigureError -> Bool # (>) :: SmithConfigureError -> SmithConfigureError -> Bool # (>=) :: SmithConfigureError -> SmithConfigureError -> Bool # max :: SmithConfigureError -> SmithConfigureError -> SmithConfigureError # min :: SmithConfigureError -> SmithConfigureError -> SmithConfigureError # | |
Show SmithConfigureError Source # | |
Defined in Smith.Client.Config showsPrec :: Int -> SmithConfigureError -> ShowS # show :: SmithConfigureError -> String # showList :: [SmithConfigureError] -> ShowS # |