Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NoneKetchup is an undefined ketchup NoneKetchup = Ketchup{} )
View Source
var ( // NoneRepository is an undefined repository NoneRepository = Repository{} )
View Source
var ( // NoneUser is an undefined user NoneUser = User{} )
Functions ¶
Types ¶
type Ketchup ¶ added in v1.1.0
type Ketchup struct { Version string Semver string Repository Repository User User }
Ketchup of app
type KetchupByPriority ¶ added in v1.2.0
type KetchupByPriority []Ketchup
KetchupByPriority sort ketchup by priority (outdated first, name then)
func (KetchupByPriority) Len ¶ added in v1.2.0
func (a KetchupByPriority) Len() int
func (KetchupByPriority) Less ¶ added in v1.2.0
func (a KetchupByPriority) Less(i, j int) bool
func (KetchupByPriority) Swap ¶ added in v1.2.0
func (a KetchupByPriority) Swap(i, j int)
type KetchupByRepositoryID ¶ added in v1.1.0
type KetchupByRepositoryID []Ketchup
KetchupByRepositoryID sort ketchup by repository ID
func (KetchupByRepositoryID) Len ¶ added in v1.1.0
func (a KetchupByRepositoryID) Len() int
func (KetchupByRepositoryID) Less ¶ added in v1.1.0
func (a KetchupByRepositoryID) Less(i, j int) bool
func (KetchupByRepositoryID) Swap ¶ added in v1.1.0
func (a KetchupByRepositoryID) Swap(i, j int)
type Message ¶
Message for render
func NewErrorMessage ¶
NewErrorMessage create a error message
func NewSuccessMessage ¶
NewSuccessMessage create a success message
type Release ¶ added in v1.1.0
type Release struct { Repository Repository `json:"repository"` Version semver.Version `json:"version"` }
Release is when new version is out
func NewRelease ¶ added in v1.1.0
func NewRelease(repository Repository, version semver.Version) Release
NewRelease creates a new version from its objects
type ReleaseByRepositoryID ¶ added in v1.1.0
type ReleaseByRepositoryID []Release
ReleaseByRepositoryID sort release by repository ID
func (ReleaseByRepositoryID) Len ¶ added in v1.1.0
func (a ReleaseByRepositoryID) Len() int
func (ReleaseByRepositoryID) Less ¶ added in v1.1.0
func (a ReleaseByRepositoryID) Less(i, j int) bool
func (ReleaseByRepositoryID) Swap ¶ added in v1.1.0
func (a ReleaseByRepositoryID) Swap(i, j int)
type Repository ¶ added in v1.1.0
type Repository struct { ID uint64 `json:"id"` Name string `json:"name"` Version string `json:"version"` }
Repository of app
Click to show internal directories.
Click to hide internal directories.