shell

package
v0.0.0-...-1bf96ee Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommonShell

func ExecCommonShell(host host.HostDto, cmd string) (result.ResultDto, error)

func ExecDownloadFile

func ExecDownloadFile(host host.HostDto, resWriter context.ResponseWriter)

func ExecDownloadFileAndSave

func ExecDownloadFileAndSave(host host.HostDto, path string) error

func ExecEditFile

func ExecEditFile(host host.HostDto) (result.ResultDto, error)

func ExecFirewallRule

func ExecFirewallRule() (result.ResultDto, error)

func ExecListFileContext

func ExecListFileContext(host host.HostDto) (result.ResultDto, error)

func ExecListFiles

func ExecListFiles(host host.HostDto) (result.ResultDto, error)

func ExecLocalShell

func ExecLocalShell(jobShell string) (string, error)

func ExecNewFile

func ExecNewFile(host host.HostDto) (result.ResultDto, error)

func ExecRefreshDnsConfig

func ExecRefreshDnsConfig(dnsData dns.DnsDataDto) (result.ResultDto, error)

func ExecRefreshInnerNetConfig

func ExecRefreshInnerNetConfig(innerNet innerNet.SlaveInnerNetDataDto) (result.ResultDto, error)

func ExecRefreshWafConfig

func ExecRefreshWafConfig(waf waf.SlaveWafDataDto) (result.ResultDto, error)

func ExecRemoveFile

func ExecRemoveFile(host host.HostDto) (result.ResultDto, error)

func ExecRenameFile

func ExecRenameFile(host host.HostDto) (result.ResultDto, error)

func ExecShell

func ExecShell(host host.HostDto, cmd string) error

func ExecStartDns

func ExecStartDns(dnsData dns.DnsDataDto) (result.ResultDto, error)

func ExecStartInnerNet

func ExecStartInnerNet(innerNet innerNet.SlaveInnerNetDataDto) (result.ResultDto, error)

func ExecStartWaf

func ExecStartWaf(waf waf.SlaveWafDataDto) (result.ResultDto, error)

func ExecStopDns

func ExecStopDns(dnsData dns.DnsDataDto) (result.ResultDto, error)

func ExecStopInnerNet

func ExecStopInnerNet(innerNet innerNet.SlaveInnerNetDataDto) (result.ResultDto, error)

func ExecStopWaf

func ExecStopWaf(waf waf.SlaveWafDataDto) (result.ResultDto, error)

func ExecUploadFile

func ExecUploadFile(host host.HostDto, file multipart.File, fileHeader *multipart.FileHeader) (result.ResultDto, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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