Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoUpdate ¶
AutoUpdate runs synchronously a verification to ensure the binary is up-to-date. If a new version gets released, the download will happen automatically It's possible to bypass this mechanism by setting the S3UPDATE_DISABLED environment variable.
Types ¶
type Updater ¶
type Updater struct { // CurrentVersion represents the current binary version. // This is generally set at the compilation time with -ldflags "-X main.Version=42" // See the README for additional information CurrentVersion string // S3Bucket represents the S3 bucket containing the different files used by s3update. S3Bucket string // S3Region represents the S3 region you want to work in. S3Region string // S3ReleaseKey represents the raw key on S3 to download new versions. // The value can be something like `cli/releases/cli-{{OS}}-{{ARCH}}` S3ReleaseKey string // S3VersionKey represents the key on S3 to download the current version S3VersionKey string // AWSCredentials represents the config to use to connect to s3 AWSCredentials *credentials.Credentials }
Click to show internal directories.
Click to hide internal directories.