handler

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 24 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Down ldapBackendStatus = iota
	Up
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	ldap.Binder
	ldap.Searcher
	ldap.Closer
}

interface for backend handler

func NewConfigHandler

func NewConfigHandler(log *logging.Logger, cfg *config.Config, yubikeyAuth *yubigo.YubiAuth) Handler

func NewLdapHandler

func NewLdapHandler(log *logging.Logger, cfg *config.Config) Handler

func NewOwnCloudHandler

func NewOwnCloudHandler(log *logging.Logger, cfg *config.Config) Handler

type OCSGroupsResponse

type OCSGroupsResponse struct {
	Ocs struct {
		Meta struct {
			Message    interface{} `json:"message"`
			Statuscode int         `json:"statuscode"`
			Status     string      `json:"status"`
		} `json:"meta"`
		Data struct {
			Groups []string `json:"groups"`
		} `json:"data"`
	} `json:"ocs"`
}

type OCSUsersResponse

type OCSUsersResponse struct {
	Ocs struct {
		Data struct {
			Users []string `json:"users"`
		} `json:"data"`
		Meta struct {
			Statuscode int         `json:"statuscode"`
			Message    interface{} `json:"message"`
			Status     string      `json:"status"`
		} `json:"meta"`
	} `json:"ocs"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL