Struct openstack::Session [] [src]

pub struct Session { /* fields omitted */ }

An OpenStack API session.

The session object serves as a wrapper around an HTTP(s) client, handling authentication, accessing the service catalog and token refresh.

The session object also owns region and endpoint interface to use.

Finally, the session object is responsible for API version negotiation.

Methods

impl Session
[src]

[src]

Create a new session with a given authentication plugin.

The resulting session will use the default endpoint interface (usually, public) and the first available region.

[src]

Convert this session into one using the given endpoint interface.

Negotiated API versions are kept in the new object.

[src]

Get a reference to the authentication method in use.

[src]

Get an API version used for given service.

[src]

Get a copy of headers to send for given service.

Currently only includes API version headers.

[src]

Get service info for the given service.

If endpoint interface is not provided, the default for this session is used.

[src]

Negotiate an API version with the service.

Negotiation is based on version information returned from the root endpoint. If no minimum version is returned, the current version is assumed to be the only supported version.

The resulting API version is cached for this session.

[src]

Prepare an HTTP request with authentication.

Trait Implementations

impl Debug for Session
[src]

[src]

Formats the value using the given formatter.

impl Clone for Session
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more