model

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 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 {
	Hash       string    `json:"hash"`
	Type       string    `json:"type"`
	Component  string    `json:"component"`
	Content    string    `json:"content"`
	Remote     string    `json:"remote"`
	Repository string    `json:"repository"`
	Date       time.Time `json:"date"`
	Breaking   bool      `json:"breaking"`
	Revert     bool      `json:"revert"`
}

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