Documentation ¶
Index ¶
- type Collection
- type DB
- func (db DB) Add(files ...string) error
- func (db DB) Commit(message ...string) error
- func (db DB) ForceUpdate() error
- func (db DB) GetBranchName() string
- func (db DB) GetRemoteName() string
- func (db DB) Init() error
- func (db DB) MustAdd(message ...string)
- func (db DB) MustCommit(message ...string)
- func (db DB) MustForceUpdate()
- func (db DB) MustInit()
- func (db DB) MustPush()
- func (db DB) MustUnpushedCommits() []string
- func (db *DB) NewCollection(path string) *Collection
- func (db *DB) NewObject(path string) *Object
- func (db DB) Push() error
- func (db *DB) SetBranchName(name string)
- func (db *DB) SetRemoteName(name string)
- func (db *DB) SetSSHKey(user string, pemBytes []byte, password string) error
- func (db *DB) SetUser(name, email string)
- func (db DB) UnpushedCommits() ([]string, error)
- type Marshaler
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { Path string JSONPCallbackName string // contains filtered or unexported fields }
func (Collection) MustRead ¶
func (c Collection) MustRead(dest interface{})
func (Collection) MustWrite ¶
func (c Collection) MustWrite(content interface{}, funcs ...interface{})
func (Collection) Read ¶
func (c Collection) Read(dest interface{}) error
func (Collection) Write ¶
func (c Collection) Write(content interface{}, funcs ...interface{}) (err error)
type DB ¶
type DB struct { Remote string Local string RemoteName string BranchName string UserName string UserEmail string // contains filtered or unexported fields }
func (DB) ForceUpdate ¶
func (DB) GetBranchName ¶
func (DB) GetRemoteName ¶
func (DB) MustCommit ¶
func (DB) MustForceUpdate ¶
func (db DB) MustForceUpdate()
func (DB) MustUnpushedCommits ¶
func (*DB) NewCollection ¶
func (db *DB) NewCollection(path string) *Collection
func (*DB) SetBranchName ¶
func (*DB) SetRemoteName ¶
func (DB) UnpushedCommits ¶
Click to show internal directories.
Click to hide internal directories.