Documentation ¶
Index ¶
- Constants
- func AddDeviceCfg(ctx *Context, dev config.DeviceCfg)
- func AddHMCServerServer(ctx *Context, dev config.HMCCfg)
- func AddInfluxServer(ctx *Context, dev config.InfluxCfg)
- func AgentReloadConf(ctx *Context)
- func BulkExportObjectToFile(ctx *Context, data impexp.ExportData)
- func DeleteDeviceCfg(ctx *Context)
- func DeleteHMCServerServer(ctx *Context)
- func DeleteInfluxServer(ctx *Context)
- func ExportObject(ctx *Context)
- func ExportObjectToFile(ctx *Context, info impexp.ExportInfo)
- func GetContextHandler() macaron.Handler
- func GetDeviceCfg(ctx *Context)
- func GetDeviceCfgAffectOnDel(ctx *Context)
- func GetDeviceCfgByID(ctx *Context)
- func GetHMCServerAffectOnDel(ctx *Context)
- func GetHMCServerServer(ctx *Context)
- func GetHMCServerServerByID(ctx *Context)
- func GetInfluxAffectOnDel(ctx *Context)
- func GetInfluxServer(ctx *Context)
- func GetInfluxServerByID(ctx *Context)
- func ImportDataFile(ctx *Context, uf UploadForm)
- func ImportHMCDevices(ctx *Context, dev config.HMCCfg)
- func NewAPICfgDevice(m *macaron.Macaron) error
- func NewAPICfgHMCServer(m *macaron.Macaron) error
- func NewAPICfgImportExport(m *macaron.Macaron) error
- func NewAPICfgInfluxServer(m *macaron.Macaron) error
- func NewAPIRtAgent(m *macaron.Macaron) error
- func NewAPIRtDevice(m *macaron.Macaron) error
- func PingDeviceCfg(ctx *Context, cfg config.DeviceCfg)
- func PingHMCServer(ctx *Context, cfg config.HMCCfg)
- func PingInfluxServer(ctx *Context, cfg config.InfluxCfg)
- func RTActHMCAPIDebugDev(ctx *Context)
- func RTActivateDev(ctx *Context)
- func RTDeactHMCAPIDebugDev(ctx *Context)
- func RTDeactivateDev(ctx *Context)
- func RTForceGather(ctx *Context)
- func RTForceHMCScan(ctx *Context)
- func RTGetInfo(ctx *Context)
- func RTGetLogFileDev(ctx *Context)
- func RTGetVersion(ctx *Context)
- func RTSetLogLevelDev(ctx *Context)
- func Sessioner(options session.Options) macaron.Handler
- func SetConfDir(dir string)
- func SetLogDir(dir string)
- func SetLogger(l *logrus.Logger)
- func UpdateDeviceCfg(ctx *Context, dev config.DeviceCfg)
- func UpdateHMCServerServer(ctx *Context, dev config.HMCCfg)
- func UpdateInfluxServer(ctx *Context, dev config.InfluxCfg)
- func WebServer(publicPath string, httpPort int, cfg *config.HTTPConfig, id string)
- type Context
- type ImportCheck
- type SessionStore
- type SessionWrapper
- type UploadForm
- type UserLogin
Constants ¶
const (
// SessKeyUserID UserID auth type
SessKeyUserID = "uid"
)
Variables ¶
This section is empty.
Functions ¶
func AddDeviceCfg ¶
AddDeviceCfg Insert new measurement groups to de internal BBDD --pending--
func AddHMCServerServer ¶
AddHMCServerServer Insert new measurement groups to de internal BBDD --pending--
func AddInfluxServer ¶
AddInfluxServer Insert new measurement groups to de internal BBDD --pending--
func BulkExportObjectToFile ¶
func BulkExportObjectToFile(ctx *Context, data impexp.ExportData)
BulkExportObjectToFile export object recursively to file
func DeleteHMCServerServer ¶
func DeleteHMCServerServer(ctx *Context)
DeleteHMCServerServer --pending--
func ExportObjectToFile ¶
func ExportObjectToFile(ctx *Context, info impexp.ExportInfo)
ExportObjectToFile export Object to file
func GetDeviceCfgAffectOnDel ¶
func GetDeviceCfgAffectOnDel(ctx *Context)
GetDeviceCfgAffectOnDel --pending--
func GetHMCServerAffectOnDel ¶
func GetHMCServerAffectOnDel(ctx *Context)
GetHMCServerAffectOnDel --pending--
func GetHMCServerServer ¶
func GetHMCServerServer(ctx *Context)
GetHMCServerServer Return Server Array
func GetHMCServerServerByID ¶
func GetHMCServerServerByID(ctx *Context)
GetHMCServerServerByID --pending--
func GetInfluxAffectOnDel ¶
func GetInfluxAffectOnDel(ctx *Context)
GetInfluxAffectOnDel --pending--
func ImportDataFile ¶
func ImportDataFile(ctx *Context, uf UploadForm)
ImportDataFile import data from uploaded file
func ImportHMCDevices ¶
ImportHMCDevices new snmpdevice to de internal BBDD --pending--
func NewAPICfgDevice ¶
func NewAPICfgDevice(m *macaron.Macaron) error
NewAPICfgDevice DeviceCfg API REST creator
func NewAPICfgHMCServer ¶
func NewAPICfgHMCServer(m *macaron.Macaron) error
NewAPICfgHMCServer HMCServer API REST creator
func NewAPICfgImportExport ¶
func NewAPICfgImportExport(m *macaron.Macaron) error
NewAPICfgImportExport Import/Export REST API creator
func NewAPICfgInfluxServer ¶
func NewAPICfgInfluxServer(m *macaron.Macaron) error
NewAPICfgInfluxServer InfluxServer API REST creator
func NewAPIRtAgent ¶
func NewAPIRtAgent(m *macaron.Macaron) error
NewAPIRtAgent set API for the runtime management
func NewAPIRtDevice ¶
func NewAPIRtDevice(m *macaron.Macaron) error
NewAPIRtDevice Runtime Device REST API creator
func PingDeviceCfg ¶
PingDeviceCfg Return ping result
func PingHMCServer ¶
PingHMCServer Return ping result
func PingInfluxServer ¶
PingInfluxServer Return ping result
func UpdateDeviceCfg ¶
UpdateDeviceCfg --pending--
func UpdateHMCServerServer ¶
UpdateHMCServerServer --pending--
func UpdateInfluxServer ¶
UpdateInfluxServer --pending--
Types ¶
type Context ¶
type Context struct { *macaron.Context SignedInUser string Session SessionStore IsSignedIn bool }
Context for macaron sessions on resitor
type ImportCheck ¶
type ImportCheck struct { IsOk bool Message string Data *impexp.ExportData }
ImportCheck import check struct
type SessionStore ¶
type SessionStore interface { // Set sets value to given key in session. Set(interface{}, interface{}) error // Get gets value by given key in session. Get(interface{}) interface{} // ID returns current session ID. ID() string // Release releases session resource and save data to provider. Release() error // Destory deletes a session. Destory(*Context) error // init Start(*Context) error }
SessionStore where to store sessions
type SessionWrapper ¶
type SessionWrapper struct {
// contains filtered or unexported fields
}
SessionWrapper wrapper for session handlers
func (*SessionWrapper) Get ¶
func (s *SessionWrapper) Get(k interface{}) interface{}
Get Session getter
func (*SessionWrapper) Set ¶
func (s *SessionWrapper) Set(k interface{}, v interface{}) error
Set session setter
type UploadForm ¶
type UploadForm struct { AutoRename bool OverWrite bool ExportFile *multipart.FileHeader }
UploadForm form struct