mirror of
https://github.com/jxxghp/MoviePilot-Plugins.git
synced 2026-05-23 07:26:47 +00:00
- 优化插件目录结构和数据结构, 解耦API层和服务层 - 添加了一些Pydantic模型, 用于校验配置 - 支持独立的订阅链接配置 - 新增覆写代理组和出站代理操作 - 支持 smart 组和代理集合 - 代理组回环检测 - 使用异步调度器 - 显示规则更改日期 - 完善了对嵌套逻辑规则和子规则的配置和验证
16 lines
527 B
Python
16 lines
527 B
Python
from typing import List, Optional, Literal
|
|
|
|
from pydantic import Field
|
|
|
|
from .proxybase import ProxyBase
|
|
|
|
|
|
class SshProxy(ProxyBase):
|
|
type: Literal['ssh'] = 'ssh'
|
|
username: str
|
|
password: Optional[str] = None
|
|
private_key: Optional[str] = Field(None, alias='privateKey')
|
|
private_key_passphrase: Optional[str] = Field(None, alias='private-key-passphrase')
|
|
host_key: Optional[List[str]] = Field(None, alias='host-key')
|
|
host_key_algorithms: Optional[List[str]] = Field(None, alias='host-key-algorithms')
|