Documentation ¶
Index ¶
- func NewMySQLSession(cfg *config.MySQLConfig) (*sql.DB, error)
- type MySQLMetaStore
- func (s *MySQLMetaStore) AddProject(name string) error
- func (s *MySQLMetaStore) AddUser(user, pass string) error
- func (s *MySQLMetaStore) Authenticate(user, pass string) (bool, error)
- func (s *MySQLMetaStore) Close()
- func (s *MySQLMetaStore) Commit(v *meta.RequestVars) (*meta.Object, error)
- func (s *MySQLMetaStore) DeleteUser(user string) error
- func (s *MySQLMetaStore) Get(v *meta.RequestVars) (*meta.Object, error)
- func (s *MySQLMetaStore) GetPending(v *meta.RequestVars) (*meta.Object, error)
- func (s *MySQLMetaStore) Objects() ([]*meta.Object, error)
- func (s *MySQLMetaStore) Projects() ([]*meta.Project, error)
- func (s *MySQLMetaStore) Put(v *meta.RequestVars) (*meta.Object, error)
- func (s *MySQLMetaStore) Users() ([]*meta.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMySQLSession ¶
func NewMySQLSession(cfg *config.MySQLConfig) (*sql.DB, error)
Types ¶
type MySQLMetaStore ¶
type MySQLMetaStore struct {
// contains filtered or unexported fields
}
func NewMySQLMetaStore ¶
func NewMySQLMetaStore(cfg *config.MySQLConfig) (*MySQLMetaStore, error)
func (*MySQLMetaStore) AddProject ¶
func (s *MySQLMetaStore) AddProject(name string) error
AddProject (Add a new project)
func (*MySQLMetaStore) AddUser ¶
func (s *MySQLMetaStore) AddUser(user, pass string) error
AddUser (Add a new user) Not implemented in mysql_meta_store
func (*MySQLMetaStore) Authenticate ¶
func (s *MySQLMetaStore) Authenticate(user, pass string) (bool, error)
func (*MySQLMetaStore) Close ¶
func (s *MySQLMetaStore) Close()
Close (method close mysql connection)
func (*MySQLMetaStore) Commit ¶
func (s *MySQLMetaStore) Commit(v *meta.RequestVars) (*meta.Object, error)
Commit() finds uncommitted objects in the meta store using data in meta.RequestVars and commits them
func (*MySQLMetaStore) DeleteUser ¶
func (s *MySQLMetaStore) DeleteUser(user string) error
DeleteUser (Delete a user) Not implemented
func (*MySQLMetaStore) Get ¶
func (s *MySQLMetaStore) Get(v *meta.RequestVars) (*meta.Object, error)
func (*MySQLMetaStore) GetPending ¶
func (s *MySQLMetaStore) GetPending(v *meta.RequestVars) (*meta.Object, error)
Get() retrieves meta information for a committed object given information in meta.RequestVars
func (*MySQLMetaStore) Objects ¶
func (s *MySQLMetaStore) Objects() ([]*meta.Object, error)
Objects (get all oids) return meta object
func (*MySQLMetaStore) Projects ¶
func (s *MySQLMetaStore) Projects() ([]*meta.Project, error)
Projects (get all projects) return meta project object
func (*MySQLMetaStore) Put ¶
func (s *MySQLMetaStore) Put(v *meta.RequestVars) (*meta.Object, error)
Put() creates uncommitted objects from meta.RequestVars and stores them in the meta store
Click to show internal directories.
Click to hide internal directories.