Documentation ¶
Index ¶
- type Account
- type Author
- type Book
- type Books
- type BuildOptions
- type Builds
- func (b *Builds) Build(bookId, version, path string, opts BuildOptions) error
- func (b *Builds) BuildFolder(bookId, version, path string, opts BuildOptions) error
- func (b *Builds) BuildGit(bookId, version, path, ref string, opts BuildOptions) error
- func (b *Builds) BuildTarGz(bookId, version, path string, opts BuildOptions) error
- func (b *Builds) PublishBuildStream(bookId, version string, reader io.Reader, opts BuildOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOptions ¶
BuildOptions are optional data passed along when doing a build (e.g: branch, message, author, ...)
type Builds ¶
func (*Builds) Build ¶
func (b *Builds) Build(bookId, version, path string, opts BuildOptions) error
Build should only be used by internal clients, Publish by others Build starts a build and will not update the backing git repository
func (*Builds) BuildFolder ¶
func (b *Builds) BuildFolder(bookId, version, path string, opts BuildOptions) error
PublishFolder packages a folder as tar.gz and uploads it to gitbook.io
func (*Builds) BuildGit ¶
func (b *Builds) BuildGit(bookId, version, path, ref string, opts BuildOptions) error
PublishGit packages a git repo as tar.gz and uploads it to gitbook.io
func (*Builds) BuildTarGz ¶
func (b *Builds) BuildTarGz(bookId, version, path string, opts BuildOptions) error
PublishTarGz publishes a book based on a tar.gz file
func (*Builds) PublishBuildStream ¶
Click to show internal directories.
Click to hide internal directories.