Buckets.Adapters.GCS.AuthServer (buckets v1.0.0-rc.1)

GenServer that manages Google Cloud Storage access tokens.

Automatically refreshes tokens before they expire to ensure uninterrupted access to GCS APIs.

Summary

Functions

Returns a specification to start this module under a supervisor.

Gets a valid access token from a specific server, refreshing if necessary.

Forces a token refresh.

Starts the token server.

Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_token(server)

Gets a valid access token from a specific server, refreshing if necessary.

Link to this function

refresh_token(server)

Forces a token refresh.

Link to this function

start_link(opts)

Starts the token server.

If opts[:cloud] exists, starts in named mode with the cloud module. Otherwise, treats opts as config and starts in nameless mode.