model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 2 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 {
	Hash       string `json:"hash"`
	Type       string `json:"type"`
	Component  string `json:"component"`
	Revert     bool   `json:"revert"`
	Breaking   bool   `json:"breaking"`
	Content    string `json:"content"`
	Date       uint64 `json:"date"`
	Remote     string `json:"remote"`
	Repository string `json:"repository"`
}

Commit describes a commit on a repository

func (Commit) Check

func (c Commit) Check() error

Check verifies that Commit is valid

func (Commit) Sanitize

func (c Commit) Sanitize() Commit

Sanitize cleans value of a commit

Jump to

Keyboard shortcuts

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