Documentation
¶
Index ¶
- type AgentConfig
- func (*AgentConfig) Dependencies() []asset.Asset
- func (a *AgentConfig) Files() []*asset.File
- func (a *AgentConfig) Generate(_ context.Context, dependencies asset.Parents) error
- func (a *AgentConfig) Load(f asset.FileFetcher) (bool, error)
- func (*AgentConfig) Name() string
- func (a *AgentConfig) PersistToFile(directory string) error
- type AgentHosts
- func (a *AgentHosts) Dependencies() []asset.Asset
- func (a *AgentHosts) Files() []*asset.File
- func (a *AgentHosts) Generate(_ context.Context, dependencies asset.Parents) error
- func (a *AgentHosts) HostConfigFiles() (HostConfigFileMap, error)
- func (a *AgentHosts) Load(f asset.FileFetcher) (bool, error)
- func (a *AgentHosts) Name() string
- type FencingCredentials
- func (*FencingCredentials) Dependencies() []asset.Asset
- func (f *FencingCredentials) Files() []*asset.File
- func (f *FencingCredentials) Generate(_ context.Context, dependencies asset.Parents) error
- func (f *FencingCredentials) Load(fetcher asset.FileFetcher) (bool, error)
- func (*FencingCredentials) Name() string
- type FencingCredentialsConfig
- type HostConfigFileMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
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) 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 ¶
AgentHosts generates the hosts information from the AgentConfig and OptionalInstallConfig assets.
func (*AgentHosts) Dependencies ¶
func (a *AgentHosts) Dependencies() []asset.Asset
Dependencies returns all of the dependencies directly needed the asset.
func (*AgentHosts) Files ¶
func (a *AgentHosts) Files() []*asset.File
Files returns the files generated by the asset.
func (*AgentHosts) HostConfigFiles ¶
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 ¶
func (a *AgentHosts) Load(f asset.FileFetcher) (bool, error)
Load currently does nothing.
type FencingCredentials ¶
type FencingCredentials struct {
File *asset.File
Config *FencingCredentialsConfig
}
FencingCredentials generates the fencing-credentials.yaml file for TNF clusters. This file contains BMC credentials for each control plane node, used by assisted-service to configure Pacemaker fencing.
func (*FencingCredentials) Dependencies ¶
func (*FencingCredentials) Dependencies() []asset.Asset
Dependencies returns all of the dependencies directly needed to generate the asset.
func (*FencingCredentials) Files ¶
func (f *FencingCredentials) Files() []*asset.File
Files returns the files generated by the asset.
func (*FencingCredentials) Generate ¶
Generate generates the FencingCredentials manifest for TNF clusters.
func (*FencingCredentials) Load ¶
func (f *FencingCredentials) Load(fetcher asset.FileFetcher) (bool, error)
Load returns the asset from disk.
func (*FencingCredentials) Name ¶
func (*FencingCredentials) Name() string
Name returns a human friendly name for the asset.
type FencingCredentialsConfig ¶
type FencingCredentialsConfig struct {
// Credentials contains the list of fencing credentials for TNF clusters.
Credentials []*types.Credential `yaml:"credentials"`
}
FencingCredentialsConfig represents the structure of the fencing-credentials.yaml file.
type HostConfigFileMap ¶
HostConfigFileMap is a map from a filepath ("<host>/<file>") to file content for hostconfig files.