schema

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ArrayCountValueTop

func ArrayCountValueTop(arrInit []string, length int, flag bool) (arrTop []string, arrLen []int)

func CheckLive

func CheckLive(hostslist []string, LiveTop int) []string

func EtcdRequest

func EtcdRequest(opt EtcdRequestOption) (string, error)

func ExecCommandPing

func ExecCommandPing(ip string, bsenv string) bool

func GenerateQuery

func GenerateQuery(key string) (query string)

func GetKeys

func GetKeys(content string, silent bool) (map[string]string, error)

func GetVersion

func GetVersion(endpoint string) (string, error)

func PortConnect

func PortConnect(addr Addr, respondingHosts chan<- string, adjustedTimeout int64, wg *sync.WaitGroup)

func PortScan

func PortScan(hostslist []string, ports string, timeout int64, threads int) []string

func ServerAccountRequest

func ServerAccountRequest(opts K8sRequestOption) (string, error)

Types

type Addr

type Addr struct {
	// contains filtered or unexported fields
}

type EtcdRequestOption

type EtcdRequestOption struct {
	Endpoint  string
	Api       string
	Method    string
	PostData  string
	TlsConfig *tls.Config
	Silent    bool
}

type IcmpLoader

type IcmpLoader struct {
	AliveHosts []string
	ExistHosts map[string]struct{}
	// contains filtered or unexported fields
}

func (*IcmpLoader) RunIcmp1

func (l *IcmpLoader) RunIcmp1(hostslist []string, conn *icmp.PacketConn, chanHosts chan string)

func (*IcmpLoader) RunIcmp2

func (l *IcmpLoader) RunIcmp2(hostslist []string, chanHosts chan string)

func (*IcmpLoader) RunPing

func (l *IcmpLoader) RunPing(hostslist []string, chanHosts chan string)

type K8sRequestOption

type K8sRequestOption struct {
	Endpoint string
	Token    string
	Api      string
	Method   string
	PostData string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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