aueb

package
v0.0.0-...-03d29b6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeUser

func AuthorizeUser(username string, password string) (bool, error)

func ConvertNameInverse

func ConvertNameInverse(name string) string

func ExamsSchedule

func ExamsSchedule() (*types.Schedule, error)

ExamsSchedule Method that returns current exams schedule if that exists

func ExamsScheduleRoom

func ExamsScheduleRoom(room string) (*types.Schedule, error, string)

ExamsScheduleRoom Method that returns current exams schedule if that exists and the room that corresponds to it

func GetRooms

func GetRooms() []string

func Initialize

func Initialize(examsLink string)

Initialize Method that initializes crucial functions for the plugin

func Schedule

func Schedule() (*types.Schedule, error)

Schedule Method that returns current schedule from Schedule Master

func ScheduleRoom

func ScheduleRoom(room string) (*types.Schedule, error, string)

ScheduleRoom Method that returns current schedule and the room that corresponds to it

Types

type LdapConfiguration

type LdapConfiguration struct {
	Address string `yaml:"address"`
	Port    int    `yaml:"port"`
	UseTLS  bool   `yaml:"use_tls"`

	BaseDN       string `yaml:"base_dn"`
	BindUsername string `yaml:"bind_username"`
	BindPassword string `yaml:"bind_password"`

	SearchClass string `yaml:"search_class"`

	UsernameAttribute string `yaml:"username_attribute"`
}

LdapConfiguration struct that contains all the info needed in order to establish connection with AUEB LDAP server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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