{"modulePath":"github.com/dockerstack/amazon-ecs-agent","version":"v1.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package version\n\nPackage version contains constants to indicate the current version of the agent. It is autogenerated\n\n## Constants\n\n```go\nconst GitDirty = true\n```\nGitDirty indicates the cleanliness of the git repo when this agent was built\n\n```go\nconst GitShortHash = \"UNKNOWN\"\n```\nGitShortHash is the short hash of this agent build\n\n```go\nconst Version = \"1.2.1\"\n```\nVersion is the version of the Agent\n\n## Functions\n\n```go\nfunc GitHashString() string\n```\n\n```go\nfunc PrintVersion(extra ...Versioner)\n```\nPrintVersions prints the version information on stdout as a multi-line string. The output will look similar to the following:\n\n\tAmazon ECS Agent:\n\t    Version: 0.0.3\n\t    Commit: 4bdc7fc\n\t    DockerVersion: 1.5.0\n\n```go\nfunc String() string\n```\nString produces a human-readable string showing the agent version.\n\n## Types\n\n```go\ntype Versioner interface {\n\tVersion() (string, error)\n}\n```\n\n","path":"github.com/dockerstack/amazon-ecs-agent/agent/version","name":"version","synopsis":"Package version contains constants to indicate the current version of the agent.","isRedistributable":true}
