controller

package
v0.3.14 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2016 License: Apache-2.0 Imports: 31 Imported by: 2

Documentation

Index

Constants

View Source
const (
	USER        = "hdfs"
	SERVER_NODE = "node"
	SERVER_HDFS = "hdfs"
	DELIMITER   = "/"
)

Variables

View Source
var (
	LayoutFile   string   = "views/layout.html"
	IncludeFiles []string = []string{"views/_head.html", "views/_loader.html", "views/page-user.html", "views/page-group.html", "views/page-servers.html", "views/page-databrowserdesign.html"}
	AppBasePath  string   = func(dir string, err error) string { return dir }(os.Getwd())
	EC_APP_PATH  string   = os.Getenv("EC_APP_PATH")
	EC_DATA_PATH string   = os.Getenv("EC_DATA_PATH")
)

Functions

func DateToString

func DateToString(tm time.Time) string

func GetHomeDir

func GetHomeDir() string

func GetSedotandWindows

func GetSedotandWindows() bool

function for check sedotand.exe

Types

type AdministrationController

type AdministrationController struct {
	App
}

func CreateAdminisrationController

func CreateAdminisrationController(s *knot.Server) *AdministrationController

func (*AdministrationController) ConnectToDataSource

func (a *AdministrationController) ConnectToDataSource() (dbox.IConnection, error)

func (*AdministrationController) SaveAccess

func (a *AdministrationController) SaveAccess(r *knot.WebContext) interface{}

type App

type App struct {
	Server *knot.Server
}

type ApplicationController

type ApplicationController struct {
	App
}

func CreateApplicationController

func CreateApplicationController(s *knot.Server) *ApplicationController

func (*ApplicationController) ConnectToDataSource

func (a *ApplicationController) ConnectToDataSource() (dbox.IConnection, error)

func (*ApplicationController) CreateNewFile

func (a *ApplicationController) CreateNewFile(r *knot.WebContext) interface{}

func (*ApplicationController) DeleteApps

func (a *ApplicationController) DeleteApps(r *knot.WebContext) interface{}

func (*ApplicationController) DeleteFileSelected

func (a *ApplicationController) DeleteFileSelected(r *knot.WebContext) interface{}

func (*ApplicationController) Deploy

func (a *ApplicationController) Deploy(r *knot.WebContext) interface{}

func (*ApplicationController) GetApps

func (a *ApplicationController) GetApps(r *knot.WebContext) interface{}

func (*ApplicationController) GetServerPathSeparator

func (a *ApplicationController) GetServerPathSeparator(server *colonycore.Server) string

func (*ApplicationController) ReadContent

func (a *ApplicationController) ReadContent(r *knot.WebContext) interface{}

func (*ApplicationController) ReadDirectory

func (a *ApplicationController) ReadDirectory(r *knot.WebContext) interface{}

func (*ApplicationController) RenameFileSelected

func (a *ApplicationController) RenameFileSelected(r *knot.WebContext) interface{}

func (*ApplicationController) SaveAccess

func (a *ApplicationController) SaveAccess(r *knot.WebContext) interface{}

func (*ApplicationController) SaveApps

func (a *ApplicationController) SaveApps(r *knot.WebContext) interface{}

func (*ApplicationController) SelectApps

func (a *ApplicationController) SelectApps(r *knot.WebContext) interface{}

type DataBrowserController

type DataBrowserController struct {
	App
}

func CreateDataBrowserController

func CreateDataBrowserController(s *knot.Server) *DataBrowserController

func (*DataBrowserController) CheckConnection

func (d *DataBrowserController) CheckConnection(r *knot.WebContext) interface{}

func (*DataBrowserController) DeleteBrowser

func (d *DataBrowserController) DeleteBrowser(r *knot.WebContext) interface{}

func (*DataBrowserController) DetailDB

func (d *DataBrowserController) DetailDB(r *knot.WebContext) interface{}

func (*DataBrowserController) GetBrowser

func (d *DataBrowserController) GetBrowser(r *knot.WebContext) interface{}

func (*DataBrowserController) GetDesignView

func (d *DataBrowserController) GetDesignView(r *knot.WebContext) interface{}

func (*DataBrowserController) SaveBrowser

func (d *DataBrowserController) SaveBrowser(r *knot.WebContext) interface{}

func (*DataBrowserController) TestQuery

func (d *DataBrowserController) TestQuery(r *knot.WebContext) interface{}

type DataGrabberController

type DataGrabberController struct {
	App
}

func CreateDataGrabberController

func CreateDataGrabberController(s *knot.Server) *DataGrabberController

func (*DataGrabberController) AutoGenerateDataSources

func (d *DataGrabberController) AutoGenerateDataSources(payload *colonycore.DataGrabberWizardPayload, formatTime string) ([]*colonycore.DataGrabber, error)

func (*DataGrabberController) FindDataGrabber

func (d *DataGrabberController) FindDataGrabber(r *knot.WebContext) interface{}

func (*DataGrabberController) GenerateNewField

func (d *DataGrabberController) GenerateNewField(payload *colonycore.DataGrabber) (bool, error)

func (*DataGrabberController) GetDataGrabber

func (d *DataGrabberController) GetDataGrabber(r *knot.WebContext) interface{}

func (*DataGrabberController) GetLogs

func (d *DataGrabberController) GetLogs(r *knot.WebContext) interface{}

func (*DataGrabberController) GetSampleDataForAddWizard

func (d *DataGrabberController) GetSampleDataForAddWizard() colonycore.DataGrabberWizardPayload

func (*DataGrabberController) GetTransformedData

func (d *DataGrabberController) GetTransformedData(r *knot.WebContext) interface{}

func (*DataGrabberController) RemoveDataGrabber

func (d *DataGrabberController) RemoveDataGrabber(r *knot.WebContext) interface{}

func (*DataGrabberController) RemoveMultipleDataGrabber

func (d *DataGrabberController) RemoveMultipleDataGrabber(r *knot.WebContext) interface{}

func (*DataGrabberController) SaveDataGrabber

func (d *DataGrabberController) SaveDataGrabber(r *knot.WebContext) interface{}

func (*DataGrabberController) SaveDataGrabberWizard

func (d *DataGrabberController) SaveDataGrabberWizard(r *knot.WebContext) interface{}

func (*DataGrabberController) SelectDataGrabber

func (d *DataGrabberController) SelectDataGrabber(r *knot.WebContext) interface{}

func (*DataGrabberController) StartTransformation

func (d *DataGrabberController) StartTransformation(r *knot.WebContext) interface{}

func (*DataGrabberController) Stat

func (d *DataGrabberController) Stat(r *knot.WebContext) interface{}

func (*DataGrabberController) StopTransformation

func (d *DataGrabberController) StopTransformation(r *knot.WebContext) interface{}

func (*DataGrabberController) Transform

func (d *DataGrabberController) Transform(dataGrabber *colonycore.DataGrabber) (bool, []toolkit.M, string)

type DataSourceController

type DataSourceController struct {
	App
}

func CreateDataSourceController

func CreateDataSourceController(s *knot.Server) *DataSourceController

func (*DataSourceController) ConnectToDataSource

func (d *DataSourceController) ConnectToDataSource(_id string) (*colonycore.DataSource, *colonycore.Connection, dbox.IConnection, dbox.IQuery, MetaSave, error)

func (*DataSourceController) ConnectToDataSourceDB

func (d *DataSourceController) ConnectToDataSourceDB(payload toolkit.M) (int, []toolkit.M, *colonycore.DataBrowser, error)

func (*DataSourceController) DoFetchDataSourceMetaData

func (d *DataSourceController) DoFetchDataSourceMetaData(dataConn *colonycore.Connection, from string) (bool, []*colonycore.FieldInfo, error)

func (*DataSourceController) FetchDataSourceLookupData

func (d *DataSourceController) FetchDataSourceLookupData(r *knot.WebContext) interface{}

func (*DataSourceController) FetchDataSourceMetaData

func (d *DataSourceController) FetchDataSourceMetaData(r *knot.WebContext) interface{}

func (*DataSourceController) FetchDataSourceSubData

func (d *DataSourceController) FetchDataSourceSubData(r *knot.WebContext) interface{}

func (*DataSourceController) FindConnection

func (d *DataSourceController) FindConnection(r *knot.WebContext) interface{}

func (*DataSourceController) GetConnections

func (d *DataSourceController) GetConnections(r *knot.WebContext) interface{}

func (*DataSourceController) GetDataSourceCollections

func (d *DataSourceController) GetDataSourceCollections(r *knot.WebContext) interface{}

func (*DataSourceController) GetDataSources

func (d *DataSourceController) GetDataSources(r *knot.WebContext) interface{}

func (*DataSourceController) RemoveMultipleConnection

func (d *DataSourceController) RemoveMultipleConnection(r *knot.WebContext) interface{}

func (*DataSourceController) RemoveMultipleDataSource

func (d *DataSourceController) RemoveMultipleDataSource(r *knot.WebContext) interface{}

func (*DataSourceController) RunDataSourceQuery

func (d *DataSourceController) RunDataSourceQuery(r *knot.WebContext) interface{}

func (*DataSourceController) SaveConnection

func (d *DataSourceController) SaveConnection(r *knot.WebContext) interface{}

func (*DataSourceController) SaveDataSource

func (d *DataSourceController) SaveDataSource(r *knot.WebContext) interface{}

func (*DataSourceController) SelectConnection

func (d *DataSourceController) SelectConnection(r *knot.WebContext) interface{}

func (*DataSourceController) SelectDataSource

func (d *DataSourceController) SelectDataSource(r *knot.WebContext) interface{}

func (*DataSourceController) TestConnection

func (d *DataSourceController) TestConnection(r *knot.WebContext) interface{}

type FileBrowserController

type FileBrowserController struct {
	App
}

func CreateFileBrowserController

func CreateFileBrowserController(s *knot.Server) *FileBrowserController

func (*FileBrowserController) Delete

func (s *FileBrowserController) Delete(r *knot.WebContext) interface{}

func (*FileBrowserController) Download

func (s *FileBrowserController) Download(r *knot.WebContext) interface{}

func (*FileBrowserController) Edit

func (s *FileBrowserController) Edit(r *knot.WebContext) interface{}

func (*FileBrowserController) GetContent

func (s *FileBrowserController) GetContent(r *knot.WebContext) interface{}

func (*FileBrowserController) GetDir

func (s *FileBrowserController) GetDir(r *knot.WebContext) interface{}

func (*FileBrowserController) GetServers

func (s *FileBrowserController) GetServers(r *knot.WebContext) interface{}

func (*FileBrowserController) NewFile

func (s *FileBrowserController) NewFile(r *knot.WebContext) interface{}

func (*FileBrowserController) NewFolder

func (s *FileBrowserController) NewFolder(r *knot.WebContext) interface{}

func (*FileBrowserController) Permission

func (s *FileBrowserController) Permission(r *knot.WebContext) interface{}

func (*FileBrowserController) Rename

func (s *FileBrowserController) Rename(r *knot.WebContext) interface{}

func (*FileBrowserController) Upload

func (s *FileBrowserController) Upload(r *knot.WebContext) interface{}

type GroupController

type GroupController struct {
	App
}

func CreateGroupController

func CreateGroupController(s *knot.Server) *GroupController

type MetaSave

type MetaSave struct {
	// contains filtered or unexported fields
}

type ServerController

type ServerController struct {
	App
}

func CreateServerController

func CreateServerController(s *knot.Server) *ServerController

func (*ServerController) CheckPing

func (s *ServerController) CheckPing(r *knot.WebContext) interface{}

func (*ServerController) DeleteServers

func (s *ServerController) DeleteServers(r *knot.WebContext) interface{}

func (*ServerController) GetServers

func (s *ServerController) GetServers(r *knot.WebContext) interface{}

func (*ServerController) SSHConnect

func (s *ServerController) SSHConnect(payload *colonycore.Server) (sshclient.SshSetting, *ssh.Client, error)

func (*ServerController) SaveServers

func (s *ServerController) SaveServers(r *knot.WebContext) interface{}

func (*ServerController) SelectServers

func (s *ServerController) SelectServers(r *knot.WebContext) interface{}

func (*ServerController) TestConnection

func (s *ServerController) TestConnection(r *knot.WebContext) interface{}

type UserController

type UserController struct {
	App
}

func CreateUserController

func CreateUserController(s *knot.Server) *UserController

type WebController

type WebController struct {
	App
}

func CreateWebController

func CreateWebController(s *knot.Server) *WebController

func (*WebController) Administration

func (w *WebController) Administration(r *knot.WebContext) interface{}

func (*WebController) Application

func (w *WebController) Application(r *knot.WebContext) interface{}

func (*WebController) DataBrowser

func (w *WebController) DataBrowser(r *knot.WebContext) interface{}

func (*WebController) DataGrabber

func (w *WebController) DataGrabber(r *knot.WebContext) interface{}

func (*WebController) DataSource

func (w *WebController) DataSource(r *knot.WebContext) interface{}

func (*WebController) FileBrowser

func (w *WebController) FileBrowser(r *knot.WebContext) interface{}

func (*WebController) Index

func (w *WebController) Index(r *knot.WebContext) interface{}

func (*WebController) WebGrabber

func (w *WebController) WebGrabber(r *knot.WebContext) interface{}

type WebGrabberController

type WebGrabberController struct {
	App
	// contains filtered or unexported fields
}

func CreateWebGrabberController

func CreateWebGrabberController(s *knot.Server) *WebGrabberController

func GetDirSnapshot

func GetDirSnapshot(nameid string) *WebGrabberController

func NewHistory

func NewHistory(nameid string) *WebGrabberController

func (*WebGrabberController) DaemonStat

func (w *WebGrabberController) DaemonStat(r *knot.WebContext) interface{}

func (*WebGrabberController) DaemonToggle

func (w *WebGrabberController) DaemonToggle(r *knot.WebContext) interface{}

func (*WebGrabberController) FetchContent

func (w *WebGrabberController) FetchContent(r *knot.WebContext) interface{}

func (*WebGrabberController) FindWebGrabber

func (d *WebGrabberController) FindWebGrabber(r *knot.WebContext) interface{}

func (*WebGrabberController) GetConnections

func (d *WebGrabberController) GetConnections(r *knot.WebContext) interface{}

func (*WebGrabberController) GetFetchedData

func (w *WebGrabberController) GetFetchedData(r *knot.WebContext) interface{}

func (*WebGrabberController) GetHistory

func (w *WebGrabberController) GetHistory(r *knot.WebContext) interface{}

func (*WebGrabberController) GetLog

func (w *WebGrabberController) GetLog(r *knot.WebContext) interface{}

func (*WebGrabberController) GetLogHistory

func (w *WebGrabberController) GetLogHistory(datas []interface{}, date string) interface{}

func (*WebGrabberController) GetScrapperData

func (w *WebGrabberController) GetScrapperData(r *knot.WebContext) interface{}

func (*WebGrabberController) GetSnapshot

func (w *WebGrabberController) GetSnapshot(r *knot.WebContext) interface{}

func (*WebGrabberController) OpenHistory

func (w *WebGrabberController) OpenHistory() ([]interface{}, error)

func (*WebGrabberController) OpenSnapShot

func (w *WebGrabberController) OpenSnapShot(Nameid string) ([]interface{}, error)

func (*WebGrabberController) RemoveGrabber

func (w *WebGrabberController) RemoveGrabber(r *knot.WebContext) interface{}

func (*WebGrabberController) RemoveMultipleWebGrabber

func (w *WebGrabberController) RemoveMultipleWebGrabber(r *knot.WebContext) interface{}

func (*WebGrabberController) SaveScrapperData

func (w *WebGrabberController) SaveScrapperData(r *knot.WebContext) interface{}

func (*WebGrabberController) SelectScrapperData

func (w *WebGrabberController) SelectScrapperData(r *knot.WebContext) interface{}

func (*WebGrabberController) StartService

func (w *WebGrabberController) StartService(r *knot.WebContext) interface{}

func (*WebGrabberController) Stat

func (w *WebGrabberController) Stat(r *knot.WebContext) interface{}

func (*WebGrabberController) StopService

func (w *WebGrabberController) StopService(r *knot.WebContext) interface{}

Jump to

Keyboard shortcuts

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