Documentation
¶
Overview ¶
Package activation contains functionalities for activating sql server client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentStatus ¶
type AgentStatus interface {
Activate(s wlm.WorkloadManagerService, path, name, projectID, instance, instancID string) (bool, error)
IsAgentActive(path string) bool
}
AgentStatus interface.
type MockAgentStatus ¶
type MockAgentStatus struct {
MockActivateError bool
MockIsAgentActiveReturnValue bool
MockActivateResult bool
}
MockAgentStatus mocks agentstatus for testing usage.
func (*MockAgentStatus) Activate ¶
func (m *MockAgentStatus) Activate(s wlm.WorkloadManagerService, path, name, projectID, instance, instancID string) (bool, error)
Activate mock function.
func (*MockAgentStatus) IsAgentActive ¶
func (m *MockAgentStatus) IsAgentActive(path string) bool
IsAgentActive mock function.
type V1 ¶
type V1 struct {
Status Status
}
V1 is the agent current status. Default status is Installed.
func (*V1) Activate ¶
func (a *V1) Activate(s wlm.WorkloadManagerService, path, name, projectID, instance, instancID string) (bool, error)
Activate the agent. Return true if the activation succeed. Also returns true with error if file persistence failed. Otherwise return false.
func (*V1) IsAgentActive ¶
IsAgentActive returns the agent activation status. Return true if the agent is activated. False if the agent is inactive.
Click to show internal directories.
Click to hide internal directories.