service

package
v1.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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

func (*AuthService) Activate

func (as *AuthService) Activate(cmd *cobra.Command, args []string) error

func (*AuthService) Login

func (as *AuthService) Login(cmd *cobra.Command, args []string) error

func (*AuthService) Logout

func (as *AuthService) Logout(cmd *cobra.Command, args []string) error

func (*AuthService) SignUp

func (as *AuthService) SignUp(cmd *cobra.Command, args []string) error

type AuthServiceInterface

type AuthServiceInterface interface {
	Activate(cmd *cobra.Command, args []string) error
	SignUp(cmd *cobra.Command, args []string) error
	Login(cmd *cobra.Command, args []string) error
	Logout(cmd *cobra.Command, args []string) error
}

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

func (*AuthServiceMock) Logout

func (m *AuthServiceMock) Logout(cmd *cobra.Command, args []string) error

func (*AuthServiceMock) SignUp

func (m *AuthServiceMock) SignUp(cmd *cobra.Command, args []string) error

type OperatorService

type OperatorService struct {
	// contains filtered or unexported fields
}

func NewOperatorService

func NewOperatorService(
	configuration *configuration.Config,
	operatorAPI api.OperatorAPIInterface,
) *OperatorService

func (*OperatorService) Connect

func (s *OperatorService) Connect(cmd *cobra.Command, args []string) error

type OperatorServiceInterface

type OperatorServiceInterface interface {
	Connect(cmd *cobra.Command, args []string) error
}

type OperatorServiceMock

type OperatorServiceMock struct {
	ConnectFunc func(cmd *cobra.Command, args []string) error
}

func NewOperatorServiceMock

func NewOperatorServiceMock() *OperatorServiceMock

func (*OperatorServiceMock) Connect

func (m *OperatorServiceMock) Connect(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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