updater

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package updater handles agent updates. It downloads binaries based on provided version for both agent and integrations and replaces them in place. It also downloads built-in integrations if only agent binary is present.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

Updater handles agent and built-in integration updates

func New

func New(logger hclog.Logger, fslocs fsconf.Locs, conf agentconf.Config) *Updater

New creates updater

func (*Updater) DownloadIntegrationsIfMissing

func (s *Updater) DownloadIntegrationsIfMissing() error

DownloadIntegrationsIfMissing downloads integrations if those are not present in integrations dir. This would happen if use only downloaded the agent binary.

func (*Updater) Update

func (s *Updater) Update(version string) error

Update updates both the agent and integrations to the specified version.

Jump to

Keyboard shortcuts

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