versioning

package
v0.0.0-...-abfb793 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

Updating to a new version

To update the cluster-state-service to a new version, run the update-version script in the scripts directory.

Usage

From the root of the project run the update-version script with the version number as the argument. Example:

$ ./scripts/update-version 0.1.0

This should update/create the versioning/version.go file with the appropriate version number.

Documentation

Overview

This is an autogenerated file and should not be edited. Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/apache2.0/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package version contains constants to indicate the current version of the agent. It is autogenerated

Index

Constants

View Source
const GitDirty = true

GitDirty indicates the cleanliness of the git repo when this agent was built

View Source
const GitShortHash = "UNKNOWN"

GitShortHash is the short hash of this agent build

View Source
const Version = "0.3.0"

Please DO NOT commit any changes to this file (specifically the hash) except for those created by running ./scripts/update-version at the root of the repository. Only the 'Version' const should change in checked-in source code Version is the version of the Agent

Variables

This section is empty.

Functions

func GitHashString

func GitHashString() string

func PrintVersion

func PrintVersion(extra ...Versioner)

PrintVersions prints the version information on stdout as a multi-line string. The output will look similar to the following:

ECS Cluster State Service:
    Version: 0.0.1
    Commit: 55347bc

func String

func String() string

String produces a human-readable string showing the agent version.

Types

type Versioner

type Versioner interface {
	Version() (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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