github.com/creativeprojects/go-selfupdate@v1.2.0/config.go (about)

     1  package selfupdate
     2  
     3  // Config represents the configuration of self-update.
     4  type Config struct {
     5  	// Source where to load the releases from (example: GitHubSource)
     6  	Source Source
     7  	// Validator represents types which enable additional validation of downloaded release.
     8  	Validator Validator
     9  	// Filters are regexp used to filter on specific assets for releases with multiple assets.
    10  	// An asset is selected if it matches any of those, in addition to the regular tag, os, arch, extensions.
    11  	// Please make sure that your filter(s) uniquely match an asset.
    12  	Filters []string
    13  	// OS is set to the value of runtime.GOOS by default, but you can force another value here
    14  	OS string
    15  	// Arch is set to the value of runtime.GOARCH by default, but you can force another value here
    16  	Arch string
    17  	// Arm 32bits version. Valid values are 0 (unknown), 5, 6 or 7. Default is detected value (if any)
    18  	Arm uint8
    19  	// Draft permits an upgrade to a "draft" version (default to false)
    20  	Draft bool
    21  	// Prerelease permits an upgrade to a "pre-release" version (default to false)
    22  	Prerelease bool
    23  }