cfg_os

package
v0.0.0-...-1489327 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//经过测试,嵌入式设备下,延时大概需要大于300ms
	TIME_DELAY_AFTER_WRITE = 300 //300ms
)

Variables

This section is empty.

Functions

func AddOSconfig

func AddOSconfig(upd Dbconfigs) error

添加操作系统

func ChangeOSconfigStatus

func ChangeOSconfigStatus(id int, status int) error

更改资产状态

func CheckOSConnect

func CheckOSConnect(host string, port string, protocol string, username string, password string) error

func CheckOsExists

func CheckOsExists(upd Dbconfigs) int

func CountOSconfig

func CountOSconfig(condArr map[string]string) int64

统计数量

func DeleteOSconfig

func DeleteOSconfig(ids string) error

func GetOSconfig

func GetOSconfig(id int) (Dbconfigs, error)

得到操作系统配置信息

func ListAllOSconfig

func ListAllOSconfig() (osconf []Dbconfigs)

func ListOSconfig

func ListOSconfig(condArr map[string]string, page int, offset int) (num int64, err error, osconf []Dbconfigs)

获取操作系统配置列表

func UpdateOSconfig

func UpdateOSconfig(id int, upd Dbconfigs) error

修改数据库配置信息

Types

type TelnetClient

type TelnetClient struct {
	Host             string
	Port             string
	IsAuthentication bool
	UserName         string
	Password         string
}

func (*TelnetClient) Telnet

func (this *TelnetClient) Telnet(timeout int) error

Jump to

Keyboard shortcuts

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