mattercheck

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 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/05/23 21:40:39 INFO  https://mattermost.example.com v3.9.0-enterprise -- up-to-date
2017/05/23 21:40:39 INFO  http://127.0.0.1:8080 v3.9.0-team -- up-to-date

or

$ mattercheck http://127.0.0.1:8080
2017/05/23 21:14:07 WARN  http://127.0.0.1:8080 v3.8.2-team -- found update to v3.9.0-team
2017/05/23 21:14:07 WARN  http://127.0.0.1:8080 v3.8.2-team -- changelog       https://docs.mattermost.com/administration/changelog.html#release-v3-9-0
2017/05/23 21:14:07 WARN  http://127.0.0.1:8080 v3.8.2-team -- download        https://releases.mattermost.com/3.9.0/mattermost-team-3.9.0-linux-amd64.tar.gz
2017/05/23 21:14:07 WARN  http://127.0.0.1:8080 v3.8.2-team -- SHA256 checksum c6179f7b2282cfbc8f0a691a90b41b554b62726f1dfb036fc59eed635556c8d9
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