Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logging ¶
type Logging struct {
Level string
}
Logging is the configuration options related to logging
type MemoryDB ¶
type MemoryDB struct {
UseMemoryDB bool
}
MemoryDB is the configuration options related to a in-memory db.DB implementation.
type MongoDB ¶
type MongoDB struct { Host string Port int Username string Password string Database string Options string MetadataDir string }
MongoDB is the configuration options related to using the MongoDB implementation of db.DB
func (*MongoDB) Connect ¶
Connect returns a connected MongoDB client using the set options, or an error.
func (*MongoDB) RegisterMetadata ¶
RegisterMetadata iterates all JSON files in the MetadataDir and registers its content as SCIM MongoDB metadata.
type RabbitMQ ¶
type RabbitMQ struct { Username string Password string Host string Port int VHost string Options string }
RabbitMQ is the options related to connecting to RabbitMQ message middleware
func (*RabbitMQ) Connect ¶
Connect returns a connected RabbitMQ AMQP connection using the options set, or an error. This method respects the provided context, and makes the connection process cancellable and timeout-able. The default RabbitMQ connection timeouts were kept in place, with the default timeout of 30 seconds.
type Scim ¶
type Scim struct { // Path to the service provider config JSON file ServiceProviderConfigPath string // Path to the user resource type JSON file UserResourceTypePath string // Path to the group resource type JSON file GroupResourceTypePath string // Path to the directory containing all schema JSON file SchemasDirectory string }
Scim the configuration options related to the core SCIM specification.
func (*Scim) ParseGroupResourceType ¶
func (arg *Scim) ParseGroupResourceType() (*spec.ResourceType, error)
ParseGroupResourceType returns the parsed spec.ResourceType from the JSON schema definition at GroupResourceTypePath Caller must make sure RegisterSchemas was invoked first.
func (*Scim) ParseServiceProviderConfig ¶
func (arg *Scim) ParseServiceProviderConfig() (*spec.ServiceProviderConfig, error)
ParseServiceProviderConfig returns an instance of spec.ServiceProviderConfig from the JSON definition at ServiceProviderConfigPath, or an error.
func (*Scim) ParseUserResourceType ¶
func (arg *Scim) ParseUserResourceType() (*spec.ResourceType, error)
ParseUserResourceType returns the parsed spec.ResourceType from the JSON schema definition at UserResourceTypePath. Caller must make sure RegisterSchemas was invoked first.
func (*Scim) RegisterSchemas ¶
RegisterSchemas iterates through all JSON files in the SchemasDirectory directory and registers all of them as schema files.