Documentation ¶
Index ¶
- Variables
- func CreateServiceProvider(db *Database, host string, destinationIP string) *ent.ServiceProviderCreate
- func CreateWhiteList(db *Database, path string) *ent.WhiteListCreate
- func MigrateWhiteList() error
- func SaveWhiteListOnProj(db *Database, projc *ent.ServiceProvider, wlc *ent.WhiteListCreate) (*ent.ServiceProvider, error)
- type Database
Constants ¶
This section is empty.
Variables ¶
View Source
var AUTH_PAGE_DESTINATION = "localhost:3000"
View Source
var AUTH_PAGE_DOMAIN = "localhost:9000"
View Source
var DB_CONFIG = "file:./db.sqlite3?_fk=1"
View Source
var DB_TYPE = "sqlite3"
View Source
var ERROR_PAGE_URL = "http://localhost:3000/error"
View Source
var LOGIN_REDIRECT_PAGE_URL = "http://localhost:3000/redirect"
View Source
var WHITELIST_FILE = "./whitelist.json"
Functions ¶
func CreateServiceProvider ¶
func CreateServiceProvider(db *Database, host string, destinationIP string) *ent.ServiceProviderCreate
func CreateWhiteList ¶
func CreateWhiteList(db *Database, path string) *ent.WhiteListCreate
func MigrateWhiteList ¶
func MigrateWhiteList() error
func SaveWhiteListOnProj ¶
func SaveWhiteListOnProj(db *Database, projc *ent.ServiceProvider, wlc *ent.WhiteListCreate) (*ent.ServiceProvider, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.