network_detection

package
v1.20.9 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdbClient

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

CmdbClient client for cmdb

func NewCmdbClient

func NewCmdbClient(conf *config.Config) (*CmdbClient, error)

NewCmdbClient client instance

type ContainerPlatform

type ContainerPlatform interface {
	//get cluster all nodes
	GetNodes(clusterid string) ([]*types.NodeInfo, error)
	//deploy application
	//deploy is defination json
	CeateDeployment(clusterid string, deploy []byte) error
	//fetch deployed deployment info
	FetchDeployment(deploy *types.DeployDetection) (interface{}, error)
	//fetch deloyment't pods
	FetchPods(clusterid, ns, name string) ([]byte, error)
}

ContainerPlatform definition for fetch container info

type NetworkDetection

type NetworkDetection struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

NetworkDetection implementation

func NewNetworkDetection

func NewNetworkDetection(conf *config.Config) *NetworkDetection

NewNetworkDetection new NetworkDetection object

func (*NetworkDetection) Start

func (n *NetworkDetection) Start() error

Start networkdetection work

Jump to

Keyboard shortcuts

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