Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Manages the ~.confighercules-ci/credentials.json
Synopsis
- data Credentials = Credentials {}
- data DomainCredentials = DomainCredentials {}
- data CredentialsParsingException = CredentialsParsingException {}
- data NoCredentialException = NoCredentialException {}
- data ApiBaseUrlParsingException = ApiBaseUrlParsingException {}
- getCredentialsFilePath :: IO FilePath
- readCredentials :: IO Credentials
- parseCredentials :: FilePath -> ByteString -> Either CredentialsParsingException Credentials
- writeCredentials :: Credentials -> IO ()
- urlDomain :: Text -> Either Text Text
- determineDomain :: IO Text
- writePersonalToken :: Text -> Text -> IO ()
- readPersonalToken :: Text -> IO Text
- tryReadEffectToken :: IO (Maybe Text)
- tryReadEffectTokenFromEnv :: MaybeT IO Text
- tryReadEffectTokenFromFile :: MaybeT IO Text
- readToken :: IO Text -> IO Text
Documentation
data Credentials Source #
Instances
data DomainCredentials Source #
Instances
data CredentialsParsingException Source #
Instances
data NoCredentialException Source #
Instances
Exception NoCredentialException Source # | |
Show NoCredentialException Source # | |
Defined in Hercules.CLI.Credentials showsPrec :: Int -> NoCredentialException -> ShowS # show :: NoCredentialException -> String # showList :: [NoCredentialException] -> ShowS # | |
Eq NoCredentialException Source # | |
Defined in Hercules.CLI.Credentials (==) :: NoCredentialException -> NoCredentialException -> Bool # (/=) :: NoCredentialException -> NoCredentialException -> Bool # |
data ApiBaseUrlParsingException Source #
Instances
parseCredentials :: FilePath -> ByteString -> Either CredentialsParsingException Credentials Source #
writeCredentials :: Credentials -> IO () Source #
determineDomain :: IO Text Source #