mysql

package
v0.0.0-...-094c5f7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (*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

Put() creates uncommitted objects from meta.RequestVars and stores them in the meta store

func (*MySQLMetaStore) Users

func (s *MySQLMetaStore) Users() ([]*meta.User, error)

Users (get list of users) Not implemented

Jump to

Keyboard shortcuts

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