Session

pt.tecnico.dsi.openstack.keystone.models.Session
See theSession companion object
final case class Session(user: User, expiresAt: OffsetDateTime, issuedAt: OffsetDateTime, auditIds: List[String], roles: List[Role], catalog: List[CatalogEntry], scope: Scope, authToken: AuthToken)

Attributes

Companion
object
Source
Session.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def clientBuilder[F[_]](builder: ClientBuilder, region: String, interface: Interface)(using evidence$1: Concurrent[F], evidence$2: Client[F]): Either[String, OpenstackClient[F]]

Builds a Openstack service client. Returns an Either because the catalog might not have the request service type, region, or interface. Example:

Builds a Openstack service client. Returns an Either because the catalog might not have the request service type, region, or interface. Example:

 val neutron: Either[String, NeutronClient[IO]] = keystone.session.clientBuilder(NeutronClient, "RegionA")

Value parameters

builder

a builder for a specific Openstack client

interface

the interface for which to get the service url from the catalog

region

the region for which to get the service url from the catalog

Attributes

Source
Session.scala
def scopedDomainId(defaultDomain: String): String

Attributes

Returns

the domain id if the session is Domain scoped, otherwise the defaultDomain.

Source
Session.scala

Attributes

Returns

the project id if the session is Project scoped.

Source
Session.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product