Documentation ¶
Index ¶
- Variables
- func AccessToken(args *AccessTokenProperties) (*client.CreateUser200Response, error)
- func BaserowClient(server string) *client.APIClient
- func ResToReqTable(req tableFieldRes) tableFieldReq
- type AccessTokenProperties
- type FieldDefinition
- type OntologyTableManager
- func (tbm *OntologyTableManager) CheckAllTableFields(tbl *client.Table) (bool, error)
- func (tbm *OntologyTableManager) CreateFields(tbl *client.Table) error
- func (ont *OntologyTableManager) FieldChangeSpecs() map[string]map[string]interface{}
- func (ont *OntologyTableManager) FieldDefs() []map[string]interface{}
- func (ont *OntologyTableManager) FieldNames() []string
- type PhenotypeTableManager
- type StrainTableManager
- type TableManager
- func (tbm *TableManager) CreateTable(table string, fields []string) (*client.Table, error)
- func (tbm *TableManager) CreateTableURL() string
- func (tbm *TableManager) ListRowsWithSearchURL(param string, tableId int) string
- func (tbm *TableManager) ListTableFields(tbl *client.Table) ([]tableFieldRes, error)
- func (tbm *TableManager) RemoveField(tbl *client.Table, req string) (string, error)
- func (tbm *TableManager) SearchRows(param string, tableId int) (int, error)
- func (tbm *TableManager) TableFieldsChangeURL(req tableFieldReq) string
- func (tbm *TableManager) TableFieldsResp(tbl *client.Table) (*http.Response, error)
- func (tbm *TableManager) TableFieldsURL(tbl *client.Table) string
- func (tbm *TableManager) TableNameToId(name string) (int, error)
- func (tbm *TableManager) TablesURL() string
- func (tbm *TableManager) UpdateField(tbl *client.Table, field string, updateSpec map[string]interface{}) (string, error)
- type WorkspaceManager
- type WorkspaceResp
- type WorkspaceUserResp
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AccessToken ¶
func AccessToken( args *AccessTokenProperties, ) (*client.CreateUser200Response, error)
func BaserowClient ¶
func ResToReqTable ¶
func ResToReqTable(req tableFieldRes) tableFieldReq
Types ¶
type AccessTokenProperties ¶
type AccessTokenProperties struct {
Email, Password, Server string
}
type FieldDefinition ¶
type OntologyTableManager ¶
type OntologyTableManager struct {
*TableManager
}
func (*OntologyTableManager) CheckAllTableFields ¶
func (tbm *OntologyTableManager) CheckAllTableFields( tbl *client.Table, ) (bool, error)
func (*OntologyTableManager) CreateFields ¶
func (tbm *OntologyTableManager) CreateFields(tbl *client.Table) error
func (*OntologyTableManager) FieldChangeSpecs ¶
func (ont *OntologyTableManager) FieldChangeSpecs() map[string]map[string]interface{}
func (*OntologyTableManager) FieldDefs ¶
func (ont *OntologyTableManager) FieldDefs() []map[string]interface{}
func (*OntologyTableManager) FieldNames ¶
func (ont *OntologyTableManager) FieldNames() []string
type PhenotypeTableManager ¶
type PhenotypeTableManager struct {
*TableManager
}
func (*PhenotypeTableManager) FieldChangeSpecs ¶
func (pheno *PhenotypeTableManager) FieldChangeSpecs() map[string]map[string]interface{}
func (*PhenotypeTableManager) FieldNames ¶
func (pheno *PhenotypeTableManager) FieldNames() []string
func (*PhenotypeTableManager) LinkFieldChangeSpecs ¶
func (pheno *PhenotypeTableManager) LinkFieldChangeSpecs( idMaps map[string]int, ) map[string]map[string]interface{}
type StrainTableManager ¶
type StrainTableManager struct {
*TableManager
}
func (*StrainTableManager) FieldChangeSpecs ¶
func (strn *StrainTableManager) FieldChangeSpecs() map[string]map[string]interface{}
func (*StrainTableManager) FieldNames ¶
func (strn *StrainTableManager) FieldNames() []string
func (*StrainTableManager) LinkFieldChangeSpecs ¶
func (strn *StrainTableManager) LinkFieldChangeSpecs( idMaps map[string]int, ) map[string]map[string]interface{}
type TableManager ¶
type TableManager struct { FieldDefinition Logger *logrus.Entry Client *client.APIClient Ctx context.Context Token string DatabaseId int32 }
func (*TableManager) CreateTable ¶
func (*TableManager) CreateTableURL ¶
func (tbm *TableManager) CreateTableURL() string
func (*TableManager) ListRowsWithSearchURL ¶
func (tbm *TableManager) ListRowsWithSearchURL( param string, tableId int, ) string
func (*TableManager) ListTableFields ¶
func (tbm *TableManager) ListTableFields( tbl *client.Table, ) ([]tableFieldRes, error)
func (*TableManager) RemoveField ¶
func (*TableManager) SearchRows ¶
func (tbm *TableManager) SearchRows(param string, tableId int) (int, error)
func (*TableManager) TableFieldsChangeURL ¶
func (tbm *TableManager) TableFieldsChangeURL( req tableFieldReq, ) string
func (*TableManager) TableFieldsResp ¶
func (*TableManager) TableFieldsURL ¶
func (tbm *TableManager) TableFieldsURL(tbl *client.Table) string
func (*TableManager) TableNameToId ¶
func (tbm *TableManager) TableNameToId(name string) (int, error)
func (*TableManager) TablesURL ¶
func (tbm *TableManager) TablesURL() string
func (*TableManager) UpdateField ¶
type WorkspaceManager ¶
func (*WorkspaceManager) ListWorkspaceURL ¶
func (wkm *WorkspaceManager) ListWorkspaceURL() string
func (*WorkspaceManager) ListWorkspaceUserURL ¶
func (wkm *WorkspaceManager) ListWorkspaceUserURL(id int, email string) string
func (*WorkspaceManager) ListWorkspaces ¶
func (wkm *WorkspaceManager) ListWorkspaces() ([]WorkspaceResp, error)
func (*WorkspaceManager) SearchWorkspaceUser ¶
func (wkm *WorkspaceManager) SearchWorkspaceUser( workspace, email string, ) (bool, int, error)
type WorkspaceResp ¶
type WorkspaceResp struct { Name string `json:"name"` Id int `json:"id"` Users []WorkspaceUserResp `json:"users"` }
type WorkspaceUserResp ¶
Click to show internal directories.
Click to hide internal directories.