mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
* feat: custom user agent (#990)
* fix: move build meta to own package this allows it to be referenced from other packages without causing a cyclic dependency * feat: custom user agent
This commit is contained in:
parent
b196629d04
commit
f508c92ae0
6 changed files with 59 additions and 12 deletions
13
internal/meta/meta.go
Normal file
13
internal/meta/meta.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package meta
|
||||
|
||||
var (
|
||||
// Version is the compile-time set version of Watchtower
|
||||
Version = "v0.0.0-unknown"
|
||||
|
||||
// UserAgent is the http client identifier derived from Version
|
||||
UserAgent string
|
||||
)
|
||||
|
||||
func init() {
|
||||
UserAgent = "Watchtower/" + Version
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue