| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Smith.Client.Config
Contents
Description
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 #
Constructors
| SmithEndpoint | |
Fields | |
Instances
| Eq SmithEndpoint Source # | |
Defined in Smith.Client.Config Methods (==) :: SmithEndpoint -> SmithEndpoint -> Bool # (/=) :: SmithEndpoint -> SmithEndpoint -> Bool # | |
| Ord SmithEndpoint Source # | |
Defined in Smith.Client.Config Methods 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 Methods showsPrec :: Int -> SmithEndpoint -> ShowS # show :: SmithEndpoint -> String # showList :: [SmithEndpoint] -> ShowS # | |
data SmithCredentialsType Source #
Constructors
| EnvironmentCredentials | |
| SmithHomeCredentials FilePath | |
| HomeCredentials FilePath | |
| SuppliedCredentials |
Instances
| Eq SmithCredentialsType Source # | |
Defined in Smith.Client.Config Methods (==) :: SmithCredentialsType -> SmithCredentialsType -> Bool # (/=) :: SmithCredentialsType -> SmithCredentialsType -> Bool # | |
| Ord SmithCredentialsType Source # | |
Defined in Smith.Client.Config Methods 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 Methods showsPrec :: Int -> SmithCredentialsType -> ShowS # show :: SmithCredentialsType -> String # showList :: [SmithCredentialsType] -> ShowS # | |
data SmithCredentials Source #
Constructors
| SmithCredentials SmithCredentialsType IdentityId JWK |
Instances
| Eq SmithCredentials Source # | |
Defined in Smith.Client.Config Methods (==) :: SmithCredentials -> SmithCredentials -> Bool # (/=) :: SmithCredentials -> SmithCredentials -> Bool # | |
| Show SmithCredentials Source # | |
Defined in Smith.Client.Config Methods showsPrec :: Int -> SmithCredentials -> ShowS # show :: SmithCredentials -> String # showList :: [SmithCredentials] -> ShowS # | |
OAuth2 scopes
data SmithScope Source #
Constructors
| ProfileScope | |
| CAScope |
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 #
Constructors
Instances
| Eq SmithConfigureError Source # | |
Defined in Smith.Client.Config Methods (==) :: SmithConfigureError -> SmithConfigureError -> Bool # (/=) :: SmithConfigureError -> SmithConfigureError -> Bool # | |
| Ord SmithConfigureError Source # | |
Defined in Smith.Client.Config Methods 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 Methods showsPrec :: Int -> SmithConfigureError -> ShowS # show :: SmithConfigureError -> String # showList :: [SmithConfigureError] -> ShowS # | |