Documentation ¶
Overview ¶
agent provides a client for integrating with the system management agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgentClient ¶
func NewAgentClient(urlClient interfaces.URLClient) *restClient
NewAgentClient creates an instance of AgentClient
Types ¶
type AgentClient ¶
type AgentClient interface { // Operation issues start/stop/restart operation requests. Operation(ctx context.Context, operation models.Operation) (string, error) // Configuration obtains configuration information from the target service. Configuration(ctx context.Context, services []string) (string, error) // SetConfiguration issues a set configuration request. SetConfiguration(ctx context.Context, services []string, request configuration.SetConfigRequest) (string, error) // Metrics obtains metrics information from the target service. Metrics(ctx context.Context, services []string) (string, error) // Health issues requests to get service health status Health(ctx context.Context, services []string) (string, error) }
Click to show internal directories.
Click to hide internal directories.