Documentation
¶
Index ¶
- type AgentService
- func (s AgentService) CheckAgentStatus(cmd *cobra.Command, args []string) error
- func (s AgentService) CreateAgent(cmd *cobra.Command, args []string) error
- func (s AgentService) CreateAgentBatch(cmd *cobra.Command, args []string) error
- func (s AgentService) DescribeAgent(cmd *cobra.Command, args []string) error
- func (s AgentService) EditAgent(cmd *cobra.Command, args []string) error
- func (s AgentService) ListAgents(cmd *cobra.Command, args []string) error
- func (s AgentService) RemoveAgent(cmd *cobra.Command, args []string) error
- type AgentServiceInterface
- type AgentServiceMock
- func (m *AgentServiceMock) CheckAgentStatus(cmd *cobra.Command, args []string) error
- func (m *AgentServiceMock) CreateAgent(cmd *cobra.Command, args []string) error
- func (m *AgentServiceMock) CreateAgentBatch(cmd *cobra.Command, args []string) error
- func (m *AgentServiceMock) DescribeAgent(cmd *cobra.Command, args []string) error
- func (m *AgentServiceMock) EditAgent(cmd *cobra.Command, args []string) error
- func (m *AgentServiceMock) ListAgents(cmd *cobra.Command, args []string) error
- func (m *AgentServiceMock) RemoveAgent(cmd *cobra.Command, args []string) error
- type AuthService
- type AuthServiceInterface
- type AuthServiceMock
- type LocationService
- type LocationServiceInterface
- type LocationServiceMock
- type OperatorService
- type OperatorServiceInterface
- type OperatorServiceMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentService ¶
type AgentService struct {
// contains filtered or unexported fields
}
func NewAgentService ¶
func NewAgentService( configuration *configuration.Config, ) AgentService
func (AgentService) CheckAgentStatus ¶
func (s AgentService) CheckAgentStatus(cmd *cobra.Command, args []string) error
func (AgentService) CreateAgent ¶
func (s AgentService) CreateAgent(cmd *cobra.Command, args []string) error
func (AgentService) CreateAgentBatch ¶
func (s AgentService) CreateAgentBatch(cmd *cobra.Command, args []string) error
func (AgentService) DescribeAgent ¶
func (s AgentService) DescribeAgent(cmd *cobra.Command, args []string) error
func (AgentService) EditAgent ¶
func (s AgentService) EditAgent(cmd *cobra.Command, args []string) error
func (AgentService) ListAgents ¶
func (s AgentService) ListAgents(cmd *cobra.Command, args []string) error
func (AgentService) RemoveAgent ¶
func (s AgentService) RemoveAgent(cmd *cobra.Command, args []string) error
type AgentServiceInterface ¶
type AgentServiceInterface interface {
CreateAgent(cmd *cobra.Command, args []string) error
CreateAgentBatch(cmd *cobra.Command, args []string) error
DescribeAgent(cmd *cobra.Command, args []string) error
EditAgent(cmd *cobra.Command, args []string) error
ListAgents(cmd *cobra.Command, args []string) error
RemoveAgent(cmd *cobra.Command, args []string) error
CheckAgentStatus(cmd *cobra.Command, args []string) error
}
type AgentServiceMock ¶
type AgentServiceMock struct {
CreateAgentFunc func(cmd *cobra.Command, args []string) error
CreateAgentBatchFunc func(cmd *cobra.Command, args []string) error
DescribeAgentFunc func(cmd *cobra.Command, args []string) error
EditAgentFunc func(cmd *cobra.Command, args []string) error
ListAgentsFunc func(cmd *cobra.Command, args []string) error
RemoveAgentFunc func(cmd *cobra.Command, args []string) error
CheckAgentStatusFunc func(cmd *cobra.Command, args []string) error
}
func NewAgentServiceMock ¶
func NewAgentServiceMock() *AgentServiceMock
NewAgentServiceMock returns a mock with default outputs for all methods
func (*AgentServiceMock) CheckAgentStatus ¶
func (m *AgentServiceMock) CheckAgentStatus(cmd *cobra.Command, args []string) error
func (*AgentServiceMock) CreateAgent ¶
func (m *AgentServiceMock) CreateAgent(cmd *cobra.Command, args []string) error
func (*AgentServiceMock) CreateAgentBatch ¶
func (m *AgentServiceMock) CreateAgentBatch(cmd *cobra.Command, args []string) error
func (*AgentServiceMock) DescribeAgent ¶
func (m *AgentServiceMock) DescribeAgent(cmd *cobra.Command, args []string) error
func (*AgentServiceMock) EditAgent ¶
func (m *AgentServiceMock) EditAgent(cmd *cobra.Command, args []string) error
func (*AgentServiceMock) ListAgents ¶
func (m *AgentServiceMock) ListAgents(cmd *cobra.Command, args []string) error
func (*AgentServiceMock) RemoveAgent ¶
func (m *AgentServiceMock) RemoveAgent(cmd *cobra.Command, args []string) error
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService( configuration *configuration.Config, authAPI api.AuthAPIInterface, ) *AuthService
type AuthServiceInterface ¶
type AuthServiceMock ¶
type AuthServiceMock struct {
ActivateFunc func(cmd *cobra.Command, args []string) error
SignUpFunc func(cmd *cobra.Command, args []string) error
LoginFunc func(cmd *cobra.Command, args []string) error
LogoutFunc func(cmd *cobra.Command, args []string) error
}
func NewAuthServiceMock ¶
func NewAuthServiceMock() *AuthServiceMock
func (*AuthServiceMock) Activate ¶
func (m *AuthServiceMock) Activate(cmd *cobra.Command, args []string) error
func (*AuthServiceMock) Login ¶
func (m *AuthServiceMock) Login(cmd *cobra.Command, args []string) error
type LocationService ¶
type LocationService struct {
// contains filtered or unexported fields
}
func NewLocationService ¶
func NewLocationService( configuration *configuration.Config, locationAPI api.LocationAPIInterface, userAPI api.UserAPIInterface, ) LocationService
type LocationServiceMock ¶
func NewLocationServiceMock ¶
func NewLocationServiceMock() *LocationServiceMock
type OperatorService ¶
type OperatorService struct {
// contains filtered or unexported fields
}
func NewOperatorService ¶
func NewOperatorService( configuration *configuration.Config, operatorAPI api.OperatorAPIInterface, userAPI api.UserAPIInterface, ) *OperatorService
type OperatorServiceMock ¶
func NewOperatorServiceMock ¶
func NewOperatorServiceMock() *OperatorServiceMock
Click to show internal directories.
Click to hide internal directories.