Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatapathRegenerationLevel ¶
type DatapathRegenerationLevel int
DatapathRegenerationLevel determines what is expected of the datapath when a regeneration event is processed.
const ( // Invalid is the default level to enforce explicit setting of // the regeneration level. Invalid DatapathRegenerationLevel = iota // RegenerateWithoutDatapath indicates that datapath rebuild or reload // is not required to implement this regeneration. RegenerateWithoutDatapath // RegenerateWithDatapath indicates that the datapath must be // recompiled and reloaded to implement this regeneration. RegenerateWithDatapath )
func (DatapathRegenerationLevel) String ¶
func (r DatapathRegenerationLevel) String() string
String converts a DatapathRegenerationLevel into a human-readable string.
type ExternalRegenerationMetadata ¶
type ExternalRegenerationMetadata struct {
// Reason provides context to source for the regeneration, which is
// used to generate useful log messages.
Reason string
// RegenerationLevel forces datapath regeneration according to the
// levels defined in the DatapathRegenerationLevel description.
RegenerationLevel DatapathRegenerationLevel
ParentContext context.Context
}
ExternalRegenerationMetadata contains any information about a regeneration that the endpoint subsystem should be made aware of for a given endpoint.
type Owner ¶
type Owner interface {
// QueueEndpointBuild puts the given endpoint in the processing queue
QueueEndpointBuild(ctx context.Context, epID uint64) (func(), error)
// GetCompilationLock returns the mutex responsible for synchronizing compilation
// of BPF programs.
GetCompilationLock() datapath.CompilationLock
// SendNotification is called to emit an agent notification
SendNotification(msg monitorAPI.AgentNotifyMessage) error
// Datapath returns a reference to the datapath implementation.
Datapath() datapath.Datapath
// GetDNSRules creates a fresh copy of DNS rules that can be used when
// endpoint is restored on a restart.
// The endpoint lock must not be held while calling this function.
GetDNSRules(epID uint16) restore.DNSRules
// RemoveRestoredDNSRules removes any restored DNS rules for
// this endpoint from the DNS proxy.
RemoveRestoredDNSRules(epID uint16)
}
Owner is the interface defines the requirements for anybody owning policies.
Click to show internal directories.
Click to hide internal directories.