Documentation ¶
Index ¶
- Variables
- func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error)
- func GetNodeIPs() ([]string, error)
- func GetNodeName() string
- func NewRemoteRuntimeService(endpoint string, connectionTimeout time.Duration) (internalapi.RuntimeService, error)
- func StartCache(ctx context.Context, sidecarMode bool) error
- func StopCache()
- type CRIInfo
- type Config
- type Entity
- func (e *Entity) GetIP() string
- func (e *Entity) GetNetNsFd() (int, error)
- func (e *Entity) GetNetns() int
- func (e *Entity) GetNetnsMountPoint() string
- func (e *Entity) GetNsHandle() (netns.NsHandle, error)
- func (e *Entity) GetPid() int
- func (e *Entity) GetPids() []int
- func (e *Entity) GetPodName() string
- func (e *Entity) GetPodNamespace() string
- func (e *Entity) IsHostNetwork() bool
- type Linux
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InitNetns = 0
)
Functions ¶
func GetAddressAndDialer ¶
func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error)
GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.
func GetNodeIPs ¶ added in v1.0.0
func GetNodeName ¶
func GetNodeName() string
func NewRemoteRuntimeService ¶
func NewRemoteRuntimeService(endpoint string, connectionTimeout time.Duration) (internalapi.RuntimeService, error)
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func GetAllEntity ¶
func GetAllEntity() []*Entity
func GetEntityByNetns ¶
GetEntityByNetns get entity by netns, if netns was deleted asynchrously, return nil; otherwise return error
func GetEntityByPid ¶
func GetHostNetworkEntity ¶ added in v1.0.0
func (*Entity) GetNetNsFd ¶
func (*Entity) GetNetnsMountPoint ¶
func (*Entity) GetPodName ¶
func (*Entity) GetPodNamespace ¶
func (*Entity) IsHostNetwork ¶
Click to show internal directories.
Click to hide internal directories.