agentconfig

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	File     *asset.File
	Config   *agent.Config
	Template string
}

AgentConfig reads the agent-config.yaml file.

func (*AgentConfig) Dependencies

func (*AgentConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*AgentConfig) Files

func (a *AgentConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*AgentConfig) Generate

func (a *AgentConfig) Generate(dependencies asset.Parents) error

Generate generates the Agent Config manifest.

func (*AgentConfig) HostConfigFiles added in v0.9.2

func (a *AgentConfig) HostConfigFiles() (HostConfigFileMap, error)

HostConfigFiles returns a map from filename to contents of the files used for host-specific configuration by the agent installer client

func (*AgentConfig) Load

func (a *AgentConfig) Load(f asset.FileFetcher) (bool, error)

Load returns agent config asset from the disk.

func (*AgentConfig) Name

func (*AgentConfig) Name() string

Name returns a human friendly name for the asset.

func (*AgentConfig) PersistToFile

func (a *AgentConfig) PersistToFile(directory string) error

PersistToFile writes the agent-config.yaml file to the assets folder

type HostConfigFileMap

type HostConfigFileMap map[string][]byte

HostConfigFileMap is a map from a filepath ("<host>/<file>") to file content for hostconfig files.

Jump to

Keyboard shortcuts

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