Documentation
¶
Index ¶
- func PrintClusterDetails(cmd *cobra.Command, cluster api.InfraAggregateCluster) error
- func PrintClusters(cmd *cobra.Command, clusters []api.InfraAggregateCluster) error
- 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 AggregateClusterView
- type AuthService
- type AuthServiceInterface
- type AuthServiceMock
- type ConfigService
- func (s *ConfigService) Edit(cmd *cobra.Command, args []string) error
- func (s *ConfigService) Profiles(cmd *cobra.Command, args []string) error
- func (s *ConfigService) SwitchProfile(cmd *cobra.Command, args []string) error
- func (s *ConfigService) Validate(cmd *cobra.Command, args []string) error
- func (s *ConfigService) View(cmd *cobra.Command, args []string) error
- type ConfigServiceInterface
- type ConfigServiceMock
- func (m *ConfigServiceMock) Edit(cmd *cobra.Command, args []string) error
- func (m *ConfigServiceMock) Profiles(cmd *cobra.Command, args []string) error
- func (m *ConfigServiceMock) SwitchProfile(cmd *cobra.Command, args []string) error
- func (m *ConfigServiceMock) Validate(cmd *cobra.Command, args []string) error
- func (m *ConfigServiceMock) View(cmd *cobra.Command, args []string) error
- type LocationService
- type LocationServiceInterface
- type LocationServiceMock
- type OperatorService
- type OperatorServiceInterface
- type OperatorServiceMock
- type ProfileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintClusterDetails ¶
func PrintClusterDetails(cmd *cobra.Command, cluster api.InfraAggregateCluster) error
func PrintClusters ¶
func PrintClusters(cmd *cobra.Command, clusters []api.InfraAggregateCluster) error
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 AggregateClusterView ¶
type AggregateClusterView struct {
ClusterID string
Name string
ClusterType string
PhysicalNodes int
VirtualNodes int
LastUpdate string
}
func ConvertAggregateClustersView ¶
func ConvertAggregateClustersView(clusters []api.InfraAggregateCluster) []AggregateClusterView
func NewAggregateClusterView ¶
func NewAggregateClusterView(cluster api.InfraAggregateCluster) AggregateClusterView
func (AggregateClusterView) GetRow ¶
func (v AggregateClusterView) GetRow() []string
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService( configuration *configuration.Config, authAPI api.AuthAPIInterface, userAPI api.UserAPIInterface, ) *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 ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
func NewConfigService ¶
func NewConfigService( configuration *configuration.Config, ) *ConfigService
func (*ConfigService) Profiles ¶
func (s *ConfigService) Profiles(cmd *cobra.Command, args []string) error
func (*ConfigService) SwitchProfile ¶
func (s *ConfigService) SwitchProfile(cmd *cobra.Command, args []string) error
type ConfigServiceInterface ¶
type ConfigServiceMock ¶
type ConfigServiceMock struct {
ViewFunc func(cmd *cobra.Command, args []string) error
EditFunc func(cmd *cobra.Command, args []string) error
ProfilesFunc func(cmd *cobra.Command, args []string) error
SwitchProfileFunc func(cmd *cobra.Command, args []string) error
ValidateFunc func(cmd *cobra.Command, args []string) error
}
func NewConfigServiceMock ¶
func NewConfigServiceMock() *ConfigServiceMock
func (*ConfigServiceMock) Edit ¶
func (m *ConfigServiceMock) Edit(cmd *cobra.Command, args []string) error
func (*ConfigServiceMock) Profiles ¶
func (m *ConfigServiceMock) Profiles(cmd *cobra.Command, args []string) error
func (*ConfigServiceMock) SwitchProfile ¶
func (m *ConfigServiceMock) SwitchProfile(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
func (LocationService) List ¶
func (s LocationService) List(cmd *cobra.Command, args []string) error
func (LocationService) ListAggregated ¶
func (s LocationService) ListAggregated(cmd *cobra.Command, args []string) error
type LocationServiceMock ¶
type LocationServiceMock struct {
ListFunc func(cmd *cobra.Command, args []string) error
ListAggregatedFunc func(cmd *cobra.Command, args []string) error
}
func NewLocationServiceMock ¶
func NewLocationServiceMock() *LocationServiceMock
func (*LocationServiceMock) List ¶
func (m *LocationServiceMock) List(cmd *cobra.Command, args []string) error
func (*LocationServiceMock) ListAggregated ¶
func (m *LocationServiceMock) ListAggregated(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, userAPI api.UserAPIInterface, ) *OperatorService
type OperatorServiceMock ¶
func NewOperatorServiceMock ¶
func NewOperatorServiceMock() *OperatorServiceMock
type ProfileInfo ¶
type ProfileInfo struct {
Name string `json:"name"`
Type configuration.ProfileType `json:"type"`
Endpoint string `json:"endpoint"`
HasAPIKey bool `json:"has_token"`
UpdatedAt string `json:"updated_at"`
IsDefault bool `json:"is_default"`
}
Click to show internal directories.
Click to hide internal directories.