agentconfig

package
v1.14.16-dcf8320c8c4e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 4

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(_ context.Context, dependencies asset.Parents) error

Generate generates the Agent Config manifest.

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 AgentHosts added in v0.9.153

type AgentHosts struct {
	Hosts []agent.Host
	// contains filtered or unexported fields
}

AgentHosts generates the hosts information from the AgentConfig and OptionalInstallConfig assets.

func (*AgentHosts) Dependencies added in v0.9.153

func (a *AgentHosts) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed the asset.

func (*AgentHosts) Files added in v0.9.153

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

Files returns the files generated by the asset.

func (*AgentHosts) Generate added in v0.9.153

func (a *AgentHosts) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the Hosts data.

func (*AgentHosts) HostConfigFiles added in v0.9.153

func (a *AgentHosts) 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 (*AgentHosts) Load added in v0.9.153

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

Load currently does nothing.

func (*AgentHosts) Name added in v0.9.153

func (a *AgentHosts) Name() string

Name returns a human friendly name.

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