Files
lazyssh/internal/core/ports/services.go
T

32 lines
1023 B
Go
Raw Normal View History

2025-08-17 17:48:24 +01:00
// Copyright 2025.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
2025-08-17 11:09:20 +01:00
package ports
2025-08-26 18:08:13 +01:00
import (
"time"
"github.com/Adembc/lazyssh/internal/core/domain"
)
2025-08-17 11:09:20 +01:00
type ServerService interface {
ListServers(query string) ([]domain.Server, error)
UpdateServer(server domain.Server, newServer domain.Server) error
AddServer(server domain.Server) error
DeleteServer(server domain.Server) error
2025-08-21 08:42:20 +01:00
SetPinned(alias string, pinned bool) error
2025-08-19 09:42:09 +01:00
SSH(alias string) error
2025-08-26 18:08:13 +01:00
Ping(server domain.Server) (bool, time.Duration, error)
2025-08-17 11:09:20 +01:00
}