mattercheck

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: MIT Imports: 4 Imported by: 0

README

mattercheck -- Mattermost Version Check

GoDoc

Checks versions of running Mattermost platform instances against the latest releases, and reports whether an update is available.

Installation

If you have the Go toolchain installed, simply go-get this package (this will install the latest version in $GOPATH/bin/mattercheck):

go get -u github.com/dmke/mattercheck

You can find binary downloads on https://github.com/dmke/mattercheck/releases.

Usage

mattercheck expect URLs to Mattermost platform installations (the root URL should suffice) as arguments:

$ mattercheck https://mattermost.example.com http://127.0.0.1:8080
2017/06/21 10:52:43 INFO  mattermost=enterprise latest=v3.10.0-enterprise download=https://releases.mattermost.com/3.10.0/mattermost-3.10.0-linux-amd64.tar.gz checksum=3977cb70b88a6def7009176bf23880fe5ad864cead05a1f2cae7792c8ac9148c
2017/06/21 10:52:43 INFO  mattermost=team latest=v3.10.0-team download=https://releases.mattermost.com/3.10.0/mattermost-team-3.10.0-linux-amd64.tar.gz checksum=ed64cb5357a8a3669386fd73b9a3f4934a10f0a9da02dc4be085e3d2e36886ed
2017/05/23 10:52:44 INFO  https://mattermost.example.com running=v3.10.0-enterprise -- up-to-date
2017/05/23 10:52:44 INFO  http://127.0.0.1:8080 running=v3.10.0-team -- up-to-date

or

$ mattercheck http://127.0.0.1:8080
2017/06/21 10:54:31 INFO  mattermost=enterprise latest=v3.10.0-enterprise download=https://releases.mattermost.com/3.10.0/mattermost-3.10.0-linux-amd64.tar.gz checksum=3977cb70b88a6def7009176bf23880fe5ad864cead05a1f2cae7792c8ac9148c
2017/06/21 10:54:31 INFO  mattermost=team latest=v3.10.0-team download=https://releases.mattermost.com/3.10.0/mattermost-team-3.10.0-linux-amd64.tar.gz checksum=ed64cb5357a8a3669386fd73b9a3f4934a10f0a9da02dc4be085e3d2e36886ed
2017/05/23 10:54:31 WARN  http://127.0.0.1:8080 running=v3.9.0-team -- found update
Exit code

mattercheck communicates its status via exit codes, making it suitable for usage in shell scripts jobs (including Cron jobs):

Code Meaning
0 all Mattermost instances are up-to-date
1 at least one instance is out-of-date
2 other error, see output for details

Roadmap

  • some tests would be nice :-)
  • Post update notifications into Mattermost channels
  • -s parameter to silence any output

The source code is licensed under the terms of the MIT License.

"Mattermost" is a trademark or registered trademarks of Mattermost or Mattermost’s licensors.

Documentation

Overview

Package main implements the `mattercheck` command line command. See https://github.com/dmke/mattercheck for usage instructions.

Directories

Path Synopsis
Package instance allows you to retrieve version information of a runnung Mattermost platform installation.
Package instance allows you to retrieve version information of a runnung Mattermost platform installation.
Package releases has information about the Mattermost platform version archive.
Package releases has information about the Mattermost platform version archive.
Package version provides version processing for mattercheck by wrapping the github.com/blang/semver package.
Package version provides version processing for mattercheck by wrapping the github.com/blang/semver package.

Jump to

Keyboard shortcuts

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