agent

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SBaseAgent

type SBaseAgent struct {
	object.SObject

	ListenInterface *net.Interface
	ListenIPs       []net.IP
	AgentId         string
	AgentName       string
	Zone            *SZoneInfo

	CachePath    string
	CacheManager *storageman.SLocalImageCacheManager
	// contains filtered or unexported fields
}

func (*SBaseAgent) AddImageCacheHandler

func (agent *SBaseAgent) AddImageCacheHandler(prefix string, app *appsrv.Application)

func (*SBaseAgent) DoOnline

func (agent *SBaseAgent) DoOnline(session *mcclient.ClientSession) error

func (*SBaseAgent) FindAccessIP

func (agent *SBaseAgent) FindAccessIP(accessAddr string) (net.IP, error)

func (*SBaseAgent) FindListenIP

func (agent *SBaseAgent) FindListenIP(listenAddr string) (net.IP, error)

func (*SBaseAgent) GetListenIPs

func (agent *SBaseAgent) GetListenIPs() []net.IP

func (*SBaseAgent) GetListenUri

func (agent *SBaseAgent) GetListenUri() string

func (*SBaseAgent) GetManagerUri

func (agent *SBaseAgent) GetManagerUri() string

func (*SBaseAgent) IAgent

func (agent *SBaseAgent) IAgent() iagent.IAgent

func (*SBaseAgent) Init

func (agent *SBaseAgent) Init(iagent iagent.IAgent, ifname string, cachePath string) error

func (*SBaseAgent) Start

func (agent *SBaseAgent) Start() error

func (*SBaseAgent) Stop

func (agent *SBaseAgent) Stop()

type SZoneInfo

type SZoneInfo struct {
	Name string `json:"name"`
	Id   string `json:"id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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