client

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIPCacheNotFoundErr

func IsIPCacheNotFoundErr(err error) bool

IsIPCacheNotFoundErr is true if the IPCache fetch error was a 404

Types

type Cilium

type Cilium struct {
	*clientPkg.Client
}

Cilium is an abstraction to communicate with the cilium-agent.

func NewClient

func NewClient() (*Cilium, error)

NewClient returns a new Cilium client that will connect to the cilium-agent.

func (*Cilium) GetEndpoint

func (c *Cilium) GetEndpoint(id uint64) (*models.Endpoint, error)

GetEndpoint returns the endpoint with the given ID from the cilium-agent.

func (*Cilium) GetFqdnCache

func (c *Cilium) GetFqdnCache() ([]*models.DNSLookup, error)

GetFqdnCache retrieves the list of DNS lookups intercepted from all endpoints.

func (*Cilium) GetIPCache

func (c *Cilium) GetIPCache() ([]*models.IPListEntry, error)

GetIPCache retrieves the contents of the Cilium ipcache

func (*Cilium) GetIdentity

func (c *Cilium) GetIdentity(id uint64) (*models.Identity, error)

GetIdentity returns security identity information for a given identity.

func (*Cilium) GetServiceCache

func (c *Cilium) GetServiceCache() ([]*models.Service, error)

GetServiceCache retrieves the contents of the Cilium service cache.

type Client

type Client interface {
	EndpointList() ([]*models.Endpoint, error)
	GetEndpoint(id uint64) (*models.Endpoint, error)
	GetIdentity(id uint64) (*models.Identity, error)
	GetFqdnCache() ([]*models.DNSLookup, error)
	GetIPCache() ([]*models.IPListEntry, error)
	GetServiceCache() ([]*models.Service, error)
}

Client is the interface for Cilium API.

Jump to

Keyboard shortcuts

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