Documentation ¶
Index ¶
- Variables
- func ErrorResponse(c *gin.Context, err error)
- func NewAmtRoutes(handler *gin.RouterGroup, d devices.Feature, amt amtexplorer.Feature, ...)
- func NewCIRAConfigRoutes(handler *gin.RouterGroup, t ciraconfigs.Feature, l logger.Interface)
- func NewDeviceRoutes(handler *gin.RouterGroup, t devices.Feature, l logger.Interface)
- func NewDomainRoutes(handler *gin.RouterGroup, t domains.Feature, l logger.Interface)
- func NewIEEE8021xConfigRoutes(handler *gin.RouterGroup, t ieee8021xconfigs.Feature, l logger.Interface)
- func NewProfileRoutes(handler *gin.RouterGroup, t profiles.Feature, l logger.Interface)
- func NewWirelessConfigRoutes(handler *gin.RouterGroup, t wificonfigs.Feature, l logger.Interface)
- func RepositoryError(status string) error
- type CIRAConfigCountResponse
- type DeviceCountResponse
- type DeviceStatResponse
- type DomainCountResponse
- type IEEE8021xConfigCountResponse
- type LoginRoute
- type OData
- type ProfileCountResponse
- type VersionRoute
- type WirelessConfigRoutes
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGithub = consoleerrors.CreateConsoleError("LatestReleaseHandler") ErrFailedToFetch = errors.New("repositoryError") )
View Source
var ErrLogin = consoleerrors.CreateConsoleError("LoginHandler")
View Source
var ErrValidation8021xConfig = dto.NotValidError{Console: consoleerrors.CreateConsoleError("8021xConfigAPI")}
View Source
var ErrValidationDevices = dto.NotValidError{Console: consoleerrors.CreateConsoleError("ProfileAPI")}
View Source
var ErrValidationDomains = dto.NotValidError{Console: consoleerrors.CreateConsoleError("DomainsAPI")}
View Source
var ErrValidationProfile = dto.NotValidError{Console: consoleerrors.CreateConsoleError("ProfileAPI")}
View Source
var ErrValidationWifiConfig = dto.NotValidError{Console: consoleerrors.CreateConsoleError("WifiConfigsAPI")}
Functions ¶
func ErrorResponse ¶
func NewAmtRoutes ¶
func NewAmtRoutes(handler *gin.RouterGroup, d devices.Feature, amt amtexplorer.Feature, l logger.Interface)
func NewCIRAConfigRoutes ¶
func NewCIRAConfigRoutes(handler *gin.RouterGroup, t ciraconfigs.Feature, l logger.Interface)
func NewDeviceRoutes ¶
func NewDomainRoutes ¶
func NewIEEE8021xConfigRoutes ¶
func NewIEEE8021xConfigRoutes(handler *gin.RouterGroup, t ieee8021xconfigs.Feature, l logger.Interface)
func NewProfileRoutes ¶
func NewWirelessConfigRoutes ¶
func NewWirelessConfigRoutes(handler *gin.RouterGroup, t wificonfigs.Feature, l logger.Interface)
func RepositoryError ¶
Types ¶
type CIRAConfigCountResponse ¶
type CIRAConfigCountResponse struct { Count int `json:"totalCount"` Data []dto.CIRAConfig `json:"data"` }
type DeviceCountResponse ¶
type DeviceCountResponse struct { Count int `json:"totalCount"` Data []dto.Device `json:"data"` }
type DeviceStatResponse ¶
type DomainCountResponse ¶
type DomainCountResponse struct { Count int `json:"totalCount"` Data []dto.Domain `json:"data"` }
type IEEE8021xConfigCountResponse ¶
type IEEE8021xConfigCountResponse struct { Count int `json:"totalCount"` Data []dto.IEEE8021xConfig `json:"data"` }
type LoginRoute ¶
func NewLoginRoute ¶
func NewLoginRoute(configData *config.Config) *LoginRoute
NewVersionRoute creates a new version route
func (LoginRoute) JWTAuthMiddleware ¶
func (lr LoginRoute) JWTAuthMiddleware() gin.HandlerFunc
JWT Middleware
func (LoginRoute) Login ¶
func (lr LoginRoute) Login(c *gin.Context)
FetchLatestRelease fetches the latest release information from GitHub API
type ProfileCountResponse ¶
type ProfileCountResponse struct { Count int `json:"totalCount"` Data []dto.Profile `json:"data"` }
type VersionRoute ¶
func NewVersionRoute ¶
func NewVersionRoute(configData *config.Config) *VersionRoute
NewVersionRoute creates a new version route
func (VersionRoute) FetchLatestRelease ¶
FetchLatestRelease fetches the latest release information from GitHub API
func (VersionRoute) LatestReleaseHandler ¶
func (vr VersionRoute) LatestReleaseHandler(c *gin.Context)
LatestReleaseHandler is the Gin handler function to check for the latest release
type WirelessConfigRoutes ¶
type WirelessConfigRoutes struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.