Move security_credentials() to the include
This commit is contained in:
parent
66ab4fe131
commit
52e15f6f97
|
|
@ -23,11 +23,16 @@
|
||||||
-type security_token() :: nonempty_string() | undefined.
|
-type security_token() :: nonempty_string() | undefined.
|
||||||
-type region() :: nonempty_string() | undefined.
|
-type region() :: nonempty_string() | undefined.
|
||||||
|
|
||||||
|
|
||||||
|
-type security_credentials() :: {ok, access_key(), secret_access_key(), expiration(), security_token()} |
|
||||||
|
{error, Reason :: atom()}.
|
||||||
|
|
||||||
-record(state, {access_key :: access_key(),
|
-record(state, {access_key :: access_key(),
|
||||||
secret_access_key :: secret_access_key(),
|
secret_access_key :: secret_access_key(),
|
||||||
expiration :: expiration(),
|
expiration :: expiration(),
|
||||||
security_token :: security_token(),
|
security_token :: security_token(),
|
||||||
region :: region()}).
|
region :: region(),
|
||||||
|
error :: atom() | string() | undefined}).
|
||||||
-type state() :: #state{}.
|
-type state() :: #state{}.
|
||||||
|
|
||||||
-type scheme() :: atom().
|
-type scheme() :: atom().
|
||||||
|
|
@ -41,6 +46,7 @@
|
||||||
|
|
||||||
-type userinfo() :: {undefined | username(),
|
-type userinfo() :: {undefined | username(),
|
||||||
undefined | password()}.
|
undefined | password()}.
|
||||||
|
|
||||||
-type authority() :: {undefined | userinfo(),
|
-type authority() :: {undefined | userinfo(),
|
||||||
host(),
|
host(),
|
||||||
undefined | tcp_port()}.
|
undefined | tcp_port()}.
|
||||||
|
|
@ -62,6 +68,5 @@
|
||||||
method = get :: httpc:method(),
|
method = get :: httpc:method(),
|
||||||
headers :: httpc:headers(),
|
headers :: httpc:headers(),
|
||||||
uri :: string(),
|
uri :: string(),
|
||||||
body = "" :: string(),
|
body = "" :: string()}).
|
||||||
query_args = [] :: query_args()}).
|
|
||||||
-type v4request() :: #v4request{}.
|
-type v4request() :: #v4request{}.
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@
|
||||||
|
|
||||||
-include("httpc_aws.hrl").
|
-include("httpc_aws.hrl").
|
||||||
|
|
||||||
-type security_credentials() :: {ok, access_key(), secret_access_key(),
|
|
||||||
expiration(), security_token()} |
|
|
||||||
{error, Reason :: atom()}.
|
|
||||||
|
|
||||||
|
|
||||||
-spec credentials() -> security_credentials().
|
-spec credentials() -> security_credentials().
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue