Documentation
¶
Overview ¶
SPDX-License-Identifier: LGPL-2.1-or-later
SPDX-License-Identifier: LGPL-2.1-or-later
SPDX-License-Identifier: LGPL-2.1-or-later
Index ¶
- Constants
- type BlueChiAgentConfig
- type BlueChiControllerConfig
- type Client
- type SSHClient
- func (c *SSHClient) Connect() error
- func (c *SSHClient) CreateAgentConfig(file string, cfg BlueChiAgentConfig) error
- func (c *SSHClient) CreateControllerConfig(file string, cfg BlueChiControllerConfig) error
- func (c *SSHClient) Disconnect() error
- func (c *SSHClient) InstallBlueChi(installCtrl bool, installAgent bool) error
- func (c *SSHClient) RemoveAgentConfig(file string) error
- func (c *SSHClient) RemoveControllerConfig(file string) error
- func (c *SSHClient) RestartBlueChiAgent() error
- func (c *SSHClient) RestartBlueChiController() error
- func (c *SSHClient) StopBlueChiAgent() error
- func (c *SSHClient) StopBlueChiController() error
Constants ¶
View Source
const ( BlueChiControllerConfdDirectory = "/etc/bluechi/controller.conf.d/" BlueChiAgentConfdDirectory = "/etc/bluechi/agent.conf.d/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlueChiAgentConfig ¶
type BlueChiAgentConfig struct { NodeName *string ManagerHost *string ManagerPort *int64 ManagerAddress *string HeartbeatInterval *int64 LogLevel *string LogTarget *string LogIsQuiet *bool }
func (BlueChiAgentConfig) Serialize ¶
func (cfg BlueChiAgentConfig) Serialize() string
type BlueChiControllerConfig ¶
type BlueChiControllerConfig struct { AllowedNodeNames []string ManagerPort *int64 LogLevel *string LogTarget *string LogIsQuiet *bool }
func (BlueChiControllerConfig) Serialize ¶
func (cfg BlueChiControllerConfig) Serialize() string
type Client ¶
type Client interface { Connect() error Disconnect() error InstallBlueChi(bool, bool) error CreateControllerConfig(string, BlueChiControllerConfig) error RemoveControllerConfig(string) error RestartBlueChiController() error StopBlueChiController() error CreateAgentConfig(string, BlueChiAgentConfig) error RemoveAgentConfig(string) error RestartBlueChiAgent() error StopBlueChiAgent() error }
type SSHClient ¶
type SSHClient struct { Host string User string Password string PKPath string InsecureIgnoreHostKey bool // contains filtered or unexported fields }
func (*SSHClient) CreateAgentConfig ¶
func (c *SSHClient) CreateAgentConfig(file string, cfg BlueChiAgentConfig) error
func (*SSHClient) CreateControllerConfig ¶
func (c *SSHClient) CreateControllerConfig(file string, cfg BlueChiControllerConfig) error
func (*SSHClient) Disconnect ¶
func (*SSHClient) InstallBlueChi ¶
func (*SSHClient) RemoveAgentConfig ¶
func (*SSHClient) RemoveControllerConfig ¶
func (*SSHClient) RestartBlueChiAgent ¶
func (*SSHClient) RestartBlueChiController ¶
func (*SSHClient) StopBlueChiAgent ¶
func (*SSHClient) StopBlueChiController ¶
Click to show internal directories.
Click to hide internal directories.