model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	ID       string         `json:"id"`
	IDAbbrev string         `json:"idabbrev,omitempty" yaml:",omitempty"`
	Message  *CommitMessage `json:"message,omitempty" yaml:",omitempty"`
	User     *CommitUser    `json:"user,omitempty" yaml:",omitempty"`
	Time     time.Time      `json:"time,omitempty"`
}

type CommitMessage

type CommitMessage struct {
	Short string `json:"short"`
	Full  string `json:"full"`
}

type CommitUser

type CommitUser struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type GitInfo

type GitInfo struct {
	Branch string `json:"branch"`
	Commit Commit `json:"commit"`
}

func (*GitInfo) GetJSON added in v0.2.0

func (c *GitInfo) GetJSON() ([]byte, error)

func (*GitInfo) GetYAML added in v0.2.0

func (c *GitInfo) GetYAML() ([]byte, error)

Jump to

Keyboard shortcuts

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