configurationmanager

package
v0.0.0-...-f6ab670 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package configurationmanager helps us to handle agent config in ssm-setup-cli

Package configurationmanager helps us to handle agent config in ssm-setup-cli

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureAgent

func ConfigureAgent(log log.T, manager IConfigurationManager, folderPath string) error

ConfigureAgent verifies the agent is not already configured, checks if configuration is available and configures the agent

func New

func New() *configurationManager

New returns a new instance of configuration manager

Types

type IConfigurationManager

type IConfigurationManager interface {
	// IsConfigAvailable returns true if config file is available else false
	IsConfigAvailable(folderPath string) (bool, error)
	// ConfigureAgent copies the config in the folder to the applicable location to configure the agent
	ConfigureAgent(folderPath string) error
	// CreateUpdateAgentConfigWithOnPremIdentity copies the config in the folder to the applicable location to configure the agent
	CreateUpdateAgentConfigWithOnPremIdentity() error
}

IConfigurationManager contains functions for handling agent configurations

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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