Documentation
¶
Index ¶
- Variables
- func GetAgentsReport(c echo.Context, agents []*ent.Agent) (core.Maroto, error)
- func GetAntiviriReport(c echo.Context, antiviri []models.Antivirus) (core.Maroto, error)
- func GetComputersReport(c echo.Context, computers []models.Computer) (core.Maroto, error)
- func GetSoftwareReport(c echo.Context, software []models.App) (core.Maroto, error)
- func GetSystemUpdatesReport(c echo.Context, updates []models.SystemUpdate) (core.Maroto, error)
- func RenderConfirm(c echo.Context, cmp templ.Component) error
- func RenderError(c echo.Context, cmp templ.Component) error
- func RenderLogin(c echo.Context, cmp templ.Component) error
- func RenderSuccess(c echo.Context, cmp templ.Component) error
- func RenderView(c echo.Context, cmp templ.Component) error
- func RenderViewWithReplaceUrl(c echo.Context, cmp templ.Component, url *url.URL) error
- type CheckedItemsForm
- type Handler
- func (h *Handler) AddSite(c echo.Context) error
- func (h *Handler) AddTenant(c echo.Context) error
- func (h *Handler) AddUser(c echo.Context) error
- func (h *Handler) AgentAdmit(c echo.Context) error
- func (h *Handler) AgentConfirmAdmission(c echo.Context, regenerate bool) error
- func (h *Handler) AgentConfirmDelete(c echo.Context) error
- func (h *Handler) AgentConfirmDisable(c echo.Context) error
- func (h *Handler) AgentDelete(c echo.Context) error
- func (h *Handler) AgentDisable(c echo.Context) error
- func (h *Handler) AgentEnable(c echo.Context) error
- func (h *Handler) AgentForceRestart(c echo.Context) error
- func (h *Handler) AgentForceRun(c echo.Context) error
- func (h *Handler) AgentLogs(c echo.Context) error
- func (h *Handler) AgentSettings(c echo.Context) error
- func (h *Handler) AgentsAdmit(c echo.Context) error
- func (h *Handler) AgentsDisable(c echo.Context) error
- func (h *Handler) AgentsEnable(c echo.Context) error
- func (h *Handler) ApplyGlobalSettings(c echo.Context) error
- func (h *Handler) Apps(c echo.Context) error
- func (h *Handler) AskForConfirmation(c echo.Context) error
- func (h *Handler) Auth(c echo.Context) error
- func (h *Handler) BrowseLogicalDisk(c echo.Context) error
- func (h *Handler) CertificateConfirmRevocation(c echo.Context) error
- func (h *Handler) ChangeAgentFrequency(c echo.Context, settings *models.GeneralSettings) error
- func (h *Handler) ChangeRemoteAssistanceSetting(c echo.Context, settings *models.GeneralSettings) error
- func (h *Handler) ChangeSFTPSetting(c echo.Context, settings *models.GeneralSettings) error
- func (h *Handler) ChangeWingetFrequency(c echo.Context, settings *models.GeneralSettings) error
- func (h *Handler) CheckNATSComponentStatus(data *dashboard_views.DashboardData)
- func (h *Handler) Computer(c echo.Context) error
- func (h *Handler) ComputerConfirmDelete(c echo.Context) error
- func (h *Handler) ComputerDeploy(c echo.Context, successMessage string) error
- func (h *Handler) ComputerDeployInstall(c echo.Context) error
- func (h *Handler) ComputerDeploySearchPackagesInstall(c echo.Context) error
- func (h *Handler) ComputerDeployUninstall(c echo.Context) error
- func (h *Handler) ComputerDeployUpdate(c echo.Context) error
- func (h *Handler) ComputerMetadata(c echo.Context) error
- func (h *Handler) ComputerStartVNC(c echo.Context) error
- func (h *Handler) ComputerStopVNC(c echo.Context) error
- func (h *Handler) ComputersList(c echo.Context, successMessage string, comesFromDialog bool) error
- func (h *Handler) ConfirmDeleteProfile(c echo.Context) error
- func (h *Handler) ConfirmDeleteTask(c echo.Context) error
- func (h *Handler) ConfirmEmail(c echo.Context) error
- func (h *Handler) Dashboard(c echo.Context) error
- func (h *Handler) DeleteItem(c echo.Context) error
- func (h *Handler) DeleteMany(c echo.Context) error
- func (h *Handler) DeleteServer(c echo.Context) error
- func (h *Handler) DeleteServerConfirm(c echo.Context) error
- func (h *Handler) DeleteSite(c echo.Context) error
- func (h *Handler) DeleteTenant(c echo.Context) error
- func (h *Handler) DeleteUser(c echo.Context) error
- func (h *Handler) DeployInstall(c echo.Context) error
- func (h *Handler) DeployPackageToSelectedAgents(c echo.Context) error
- func (h *Handler) DeployUninstall(c echo.Context) error
- func (h *Handler) Download(c echo.Context) error
- func (h *Handler) DownloadFile(c echo.Context) error
- func (h *Handler) DownloadFolderAsZIP(c echo.Context) error
- func (h *Handler) DownloadManyAsZIP(c echo.Context) error
- func (h *Handler) EditProfile(c echo.Context, method string, id string, successMessage string) error
- func (h *Handler) EditSite(c echo.Context) error
- func (h *Handler) EditTask(c echo.Context) error
- func (h *Handler) EditTenant(c echo.Context) error
- func (h *Handler) EditUser(c echo.Context) error
- func (h *Handler) EmailExists(c echo.Context) error
- func (h *Handler) GeneralSettings(c echo.Context) error
- func (h *Handler) GenerateAgentsCSVReport(c echo.Context, w *csv.Writer, fileName string) error
- func (h *Handler) GenerateAgentsReport(c echo.Context) error
- func (h *Handler) GenerateAntivirusCSVReport(c echo.Context, w *csv.Writer, fileName string) error
- func (h *Handler) GenerateAntivirusReport(c echo.Context) error
- func (h *Handler) GenerateCSVReports(c echo.Context) error
- func (h *Handler) GenerateComputersCSVReport(c echo.Context, w *csv.Writer, fileName string) error
- func (h *Handler) GenerateComputersReport(c echo.Context) error
- func (h *Handler) GenerateRDPFile(c echo.Context) error
- func (h *Handler) GenerateSoftwareCSVReport(c echo.Context, w *csv.Writer, fileName string) error
- func (h *Handler) GenerateSoftwareReport(c echo.Context) error
- func (h *Handler) GenerateUpdatesCSVReport(c echo.Context, w *csv.Writer, fileName string) error
- func (h *Handler) GenerateUpdatesReport(c echo.Context) error
- func (h *Handler) GetAdminSiteName(commonInfo *partials.CommonInfo) string
- func (h *Handler) GetAdminTenantName(commonInfo *partials.CommonInfo) string
- func (h *Handler) GetAgentFilters(c echo.Context) (*filters.AgentFilter, error)
- func (h *Handler) GetAgentLogFile(agent *ent.Agent, path string) (string, error)
- func (h *Handler) GetAntiviriFilters(c echo.Context) (*filters.AntivirusFilter, []string, []string, error)
- func (h *Handler) GetCertificates(c echo.Context, successMessage string) error
- func (h *Handler) GetCommonInfo(c echo.Context) (*partials.CommonInfo, error)
- func (h *Handler) GetComputerFilters(c echo.Context) (*filters.AgentFilter, error)
- func (h *Handler) GetDropdownSites(c echo.Context) error
- func (h *Handler) GetSoftwareFilters(c echo.Context) (*filters.ApplicationsFilter, error)
- func (h *Handler) GetSystemUpdatesFilters(c echo.Context) (*filters.SystemUpdatesFilter, []string, []string, error)
- func (h *Handler) ImportSites(c echo.Context) error
- func (h *Handler) ImportTenants(c echo.Context) error
- func (h *Handler) ImportUsers(c echo.Context) error
- func (h *Handler) IsAuthenticated(next echo.HandlerFunc) echo.HandlerFunc
- func (h *Handler) ListAgents(c echo.Context, successMessage, errMessage string, comesFromDialog bool) error
- func (h *Handler) ListAntivirusStatus(c echo.Context) error
- func (h *Handler) ListCertificates(c echo.Context) error
- func (h *Handler) ListLatestUpdates(c echo.Context) error
- func (h *Handler) ListSecurityUpdatesStatus(c echo.Context) error
- func (h *Handler) ListSessions(c echo.Context, successMessage string) error
- func (h *Handler) ListSites(c echo.Context, successMessage, errMessage string, confirmDelete bool) error
- func (h *Handler) ListTenants(c echo.Context, successMessage, errMessage string, confirmDelete bool) error
- func (h *Handler) ListUsers(c echo.Context, successMessage, errMessage string) error
- func (h *Handler) LogicalDisks(c echo.Context) error
- func (h *Handler) Login(c echo.Context) error
- func (h *Handler) Logout(c echo.Context) error
- func (h *Handler) Monitors(c echo.Context) error
- func (h *Handler) NetworkAdapters(c echo.Context) error
- func (h *Handler) NetworkPrinters(c echo.Context) error
- func (h *Handler) NewFolder(c echo.Context) error
- func (h *Handler) NewProfile(c echo.Context) error
- func (h *Handler) NewSite(c echo.Context) error
- func (h *Handler) NewTask(c echo.Context) error
- func (h *Handler) NewTenant(c echo.Context) error
- func (h *Handler) NewUser(c echo.Context) error
- func (h *Handler) Notes(c echo.Context) error
- func (h *Handler) OperatingSystem(c echo.Context) error
- func (h *Handler) OrgMetadataManager(c echo.Context) error
- func (h *Handler) Overview(c echo.Context) error
- func (h *Handler) PowerManagement(c echo.Context) error
- func (h *Handler) Printers(c echo.Context) error
- func (h *Handler) ProfileIssues(c echo.Context) error
- func (h *Handler) ProfileTags(c echo.Context) error
- func (h *Handler) ProfileTaskDefinition(c echo.Context) error
- func (h *Handler) ProfileTaskSubTypes(c echo.Context) error
- func (h *Handler) ProfileTaskTypes(c echo.Context) error
- func (h *Handler) Profiles(c echo.Context, successMessage string) error
- func (h *Handler) Register(e *echo.Echo)
- func (h *Handler) RemoteAssistance(c echo.Context) error
- func (h *Handler) RemovePrinter(c echo.Context) error
- func (h *Handler) RenameItem(c echo.Context) error
- func (h *Handler) RenderMarkdown(c echo.Context) error
- func (h *Handler) RenewUserCertificate(c echo.Context) error
- func (h *Handler) Reports(c echo.Context) error
- func (h *Handler) RequestUserCertificate(c echo.Context) error
- func (h *Handler) RevocateCertificate(c echo.Context) error
- func (h *Handler) SMTPSettings(c echo.Context) error
- func (h *Handler) SearchFlatpakPackages(c echo.Context) error
- func (h *Handler) SearchHomeBrewCasksPackages(c echo.Context) error
- func (h *Handler) SearchHomeBrewFormulaePackages(c echo.Context) error
- func (h *Handler) SearchPackagesAction(c echo.Context, install bool) error
- func (h *Handler) SearchWingetPackages(c echo.Context) error
- func (h *Handler) SelectPackageDeployment(c echo.Context) error
- func (h *Handler) SendCertificateRequestToNATS(c echo.Context, user *openuem_ent.User) error
- func (h *Handler) SendRegister(c echo.Context) error
- func (h *Handler) SessionConfirmDelete(c echo.Context) error
- func (h *Handler) SessionDelete(c echo.Context) error
- func (h *Handler) SetDefaultPrinter(c echo.Context) error
- func (h *Handler) SetEmailConfirmed(c echo.Context) error
- func (h *Handler) Shares(c echo.Context) error
- func (h *Handler) ShowUpdateAgentList(c echo.Context, r *openuem_ent.Release, successMessage, errorMessage string) error
- func (h *Handler) ShowUpdateServersList(c echo.Context, r *openuem_ent.Release, successMessage, errorMessage string) error
- func (h *Handler) SignIn(c echo.Context) error
- func (h *Handler) Software(c echo.Context) error
- func (h *Handler) StartNATSConnectJob() error
- func (h *Handler) TagManager(c echo.Context) error
- func (h *Handler) TestSMTPSettings(c echo.Context) error
- func (h *Handler) UIDExists(c echo.Context) error
- func (h *Handler) UpdateAgents(c echo.Context) error
- func (h *Handler) UpdateAgentsConfirm(c echo.Context) error
- func (h *Handler) UpdateServers(c echo.Context) error
- func (h *Handler) UpdateServersConfirm(c echo.Context) error
- func (h *Handler) UploadFile(c echo.Context) error
- type MyCustomClaims
- type NewTenant
- type NewUser
- type RegisterRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateChannels = []string{"stable", "devel", "testing"}
Functions ¶
func GetAgentsReport ¶
func GetAntiviriReport ¶
func GetComputersReport ¶
func GetSoftwareReport ¶
func GetSystemUpdatesReport ¶
func GetSystemUpdatesReport(c echo.Context, updates []models.SystemUpdate) (core.Maroto, error)
func RenderConfirm ¶
func RenderError ¶
func RenderLogin ¶
func RenderSuccess ¶
func RenderView ¶
Types ¶
type CheckedItemsForm ¶
type Handler ¶
type Handler struct { Model *models.Model SessionManager *sessions.SessionManager JWTKey string CertPath string KeyPath string SFTPKeyPath string CACertPath string DownloadDir string ServerName string AuthPort string ConsolePort string Domain string TaskScheduler gocron.Scheduler NATSServers string NATSTimeout int NATSConnection *nats.Conn NATSConnectJob gocron.Job JetStream jetstream.JetStream JetStreamCancelFunc context.CancelFunc AgentStream jetstream.Stream ServerStream jetstream.Stream OrgName string OrgProvince string OrgLocality string OrgAddress string Country string ReverseProxyAuthPort string ReverseProxyServer string LatestServerRelease openuem_nats.OpenUEMRelease Replicas int ServerReleasesFolder string WingetFolder string FlatpakFolder string BrewFolder string CommonFolder string Version string }
func NewHandler ¶
func NewHandler(model *models.Model, natsServers string, s *sessions.SessionManager, ts gocron.Scheduler, jwtKey, certPath, keyPath, sftpKeyPath, caCertPath, server, authPort, tmpDownloadDir, domain, orgName, orgProvince, orgLocality, orgAddress, country, reverseProxyAuthPort, reverseProxyServer, serverReleasesFolder, wingetFolder, flatpakFolder, brewFolder, commonFolder, version string) *Handler
func (*Handler) AgentAdmit ¶
func (*Handler) AgentConfirmAdmission ¶
func (*Handler) AgentConfirmDelete ¶
func (*Handler) AgentConfirmDisable ¶
func (*Handler) AgentDelete ¶
func (*Handler) AgentDisable ¶
func (*Handler) AgentEnable ¶
func (*Handler) AgentForceRestart ¶
func (*Handler) AgentForceRun ¶
func (*Handler) AgentSettings ¶ added in v0.6.0
func (*Handler) AgentsAdmit ¶
func (*Handler) AgentsDisable ¶
func (*Handler) AgentsEnable ¶
func (*Handler) ApplyGlobalSettings ¶ added in v0.7.0
func (*Handler) AskForConfirmation ¶
func (*Handler) BrowseLogicalDisk ¶
func (*Handler) CertificateConfirmRevocation ¶
func (*Handler) ChangeAgentFrequency ¶ added in v0.6.0
func (h *Handler) ChangeAgentFrequency(c echo.Context, settings *models.GeneralSettings) error
func (*Handler) ChangeRemoteAssistanceSetting ¶ added in v0.6.0
func (h *Handler) ChangeRemoteAssistanceSetting(c echo.Context, settings *models.GeneralSettings) error
func (*Handler) ChangeSFTPSetting ¶ added in v0.6.0
func (h *Handler) ChangeSFTPSetting(c echo.Context, settings *models.GeneralSettings) error
func (*Handler) ChangeWingetFrequency ¶ added in v0.6.0
func (h *Handler) ChangeWingetFrequency(c echo.Context, settings *models.GeneralSettings) error
func (*Handler) CheckNATSComponentStatus ¶
func (h *Handler) CheckNATSComponentStatus(data *dashboard_views.DashboardData)
func (*Handler) ComputerConfirmDelete ¶
func (*Handler) ComputerDeploy ¶
func (*Handler) ComputerDeployInstall ¶
func (*Handler) ComputerDeploySearchPackagesInstall ¶
func (*Handler) ComputerDeployUninstall ¶
func (*Handler) ComputerDeployUpdate ¶
func (*Handler) ComputerMetadata ¶
func (*Handler) ComputerStartVNC ¶
func (*Handler) ComputerStopVNC ¶
func (*Handler) ComputersList ¶
func (*Handler) ConfirmDeleteProfile ¶
func (*Handler) ConfirmDeleteTask ¶
func (*Handler) ConfirmEmail ¶
func (*Handler) DeleteItem ¶
func (*Handler) DeleteMany ¶
func (*Handler) DeleteServer ¶
func (*Handler) DeleteServerConfirm ¶
func (*Handler) DeleteSite ¶ added in v0.7.0
func (*Handler) DeleteTenant ¶ added in v0.7.0
func (*Handler) DeleteUser ¶
func (*Handler) DeployInstall ¶
func (*Handler) DeployPackageToSelectedAgents ¶
func (*Handler) DeployUninstall ¶
func (*Handler) DownloadFile ¶
func (*Handler) DownloadFolderAsZIP ¶
func (*Handler) DownloadManyAsZIP ¶
func (*Handler) EditProfile ¶
func (*Handler) EditTenant ¶ added in v0.7.0
func (*Handler) EmailExists ¶
func (*Handler) GeneralSettings ¶
func (*Handler) GenerateAgentsCSVReport ¶ added in v0.6.0
func (*Handler) GenerateAgentsReport ¶
func (*Handler) GenerateAntivirusCSVReport ¶ added in v0.6.0
func (*Handler) GenerateAntivirusReport ¶
func (*Handler) GenerateCSVReports ¶ added in v0.6.0
func (*Handler) GenerateComputersCSVReport ¶ added in v0.6.0
func (*Handler) GenerateComputersReport ¶
func (*Handler) GenerateRDPFile ¶
func (*Handler) GenerateSoftwareCSVReport ¶ added in v0.6.0
func (*Handler) GenerateSoftwareReport ¶
func (*Handler) GenerateUpdatesCSVReport ¶ added in v0.6.0
func (*Handler) GenerateUpdatesReport ¶
func (*Handler) GetAdminSiteName ¶ added in v0.7.0
func (h *Handler) GetAdminSiteName(commonInfo *partials.CommonInfo) string
func (*Handler) GetAdminTenantName ¶ added in v0.7.0
func (h *Handler) GetAdminTenantName(commonInfo *partials.CommonInfo) string
func (*Handler) GetAgentFilters ¶
func (h *Handler) GetAgentFilters(c echo.Context) (*filters.AgentFilter, error)
func (*Handler) GetAgentLogFile ¶ added in v0.6.0
func (*Handler) GetAntiviriFilters ¶
func (*Handler) GetCertificates ¶
func (*Handler) GetCommonInfo ¶ added in v0.7.0
func (h *Handler) GetCommonInfo(c echo.Context) (*partials.CommonInfo, error)
func (*Handler) GetComputerFilters ¶
func (h *Handler) GetComputerFilters(c echo.Context) (*filters.AgentFilter, error)
func (*Handler) GetDropdownSites ¶ added in v0.7.0
func (*Handler) GetSoftwareFilters ¶
func (h *Handler) GetSoftwareFilters(c echo.Context) (*filters.ApplicationsFilter, error)
func (*Handler) GetSystemUpdatesFilters ¶
func (*Handler) ImportSites ¶ added in v0.7.0
func (*Handler) ImportTenants ¶ added in v0.7.0
func (*Handler) ImportUsers ¶
func (*Handler) IsAuthenticated ¶
func (h *Handler) IsAuthenticated(next echo.HandlerFunc) echo.HandlerFunc
func (*Handler) ListAgents ¶
func (*Handler) ListAntivirusStatus ¶
func (*Handler) ListCertificates ¶
func (*Handler) ListLatestUpdates ¶
func (*Handler) ListSecurityUpdatesStatus ¶
func (*Handler) ListSessions ¶
func (*Handler) ListTenants ¶ added in v0.7.0
func (*Handler) LogicalDisks ¶
func (*Handler) NetworkAdapters ¶
func (*Handler) NetworkPrinters ¶
func (*Handler) NewProfile ¶
func (*Handler) OperatingSystem ¶
func (*Handler) OrgMetadataManager ¶
func (*Handler) PowerManagement ¶
func (*Handler) ProfileIssues ¶
func (*Handler) ProfileTags ¶
func (*Handler) ProfileTaskDefinition ¶ added in v0.9.0
func (*Handler) ProfileTaskSubTypes ¶ added in v0.9.0
func (*Handler) ProfileTaskTypes ¶ added in v0.9.0
func (*Handler) RemoteAssistance ¶
func (*Handler) RemovePrinter ¶ added in v0.7.0
func (*Handler) RenameItem ¶
func (*Handler) RenderMarkdown ¶
func (*Handler) RenewUserCertificate ¶
func (*Handler) RequestUserCertificate ¶
func (*Handler) RevocateCertificate ¶
func (*Handler) SMTPSettings ¶
func (*Handler) SearchFlatpakPackages ¶ added in v0.9.0
func (*Handler) SearchHomeBrewCasksPackages ¶ added in v0.9.0
func (*Handler) SearchHomeBrewFormulaePackages ¶ added in v0.9.0
func (*Handler) SearchPackagesAction ¶
func (*Handler) SearchWingetPackages ¶
func (*Handler) SelectPackageDeployment ¶
func (*Handler) SendCertificateRequestToNATS ¶
func (h *Handler) SendCertificateRequestToNATS(c echo.Context, user *openuem_ent.User) error
func (*Handler) SendRegister ¶
func (*Handler) SessionConfirmDelete ¶
func (*Handler) SessionDelete ¶
func (*Handler) SetDefaultPrinter ¶ added in v0.7.0
func (*Handler) SetEmailConfirmed ¶
func (*Handler) ShowUpdateAgentList ¶
func (h *Handler) ShowUpdateAgentList(c echo.Context, r *openuem_ent.Release, successMessage, errorMessage string) error
func (*Handler) ShowUpdateServersList ¶
func (h *Handler) ShowUpdateServersList(c echo.Context, r *openuem_ent.Release, successMessage, errorMessage string) error
func (*Handler) StartNATSConnectJob ¶
func (*Handler) TagManager ¶
func (*Handler) TestSMTPSettings ¶
func (*Handler) UpdateAgents ¶
func (*Handler) UpdateAgentsConfirm ¶
func (*Handler) UpdateServers ¶
func (*Handler) UpdateServersConfirm ¶
func (*Handler) UploadFile ¶
type MyCustomClaims ¶
type MyCustomClaims struct {
jwt.RegisteredClaims
}
type RegisterRequest ¶
type RegisterRequest struct { UID string `form:"uid" validate:"required"` Name string `form:"name" validate:"required"` Email string `form:"email" validate:"required,email"` Phone string `form:"phone" validate:"required,e164"` Country string `form:"country" validate:"required,iso3166_1_alpha2"` Password string `form:"password" validate:"required"` }
Source Files
¶
- agents.go
- auth.go
- certificates.go
- common.go
- computers.go
- dashboard.go
- deploy.go
- flatpak.go
- handler.go
- homebrew.go
- login.go
- logout.go
- org_metadata.go
- printers.go
- profiles.go
- register.go
- render.go
- render_markdown.go
- reports.go
- routes.go
- security.go
- sessions.go
- settings.go
- sftp.go
- sites.go
- smtp.go
- software.go
- tags.go
- tasks.go
- tenants.go
- update_agents.go
- update_servers.go
- users.go
- winget.go
Click to show internal directories.
Click to hide internal directories.