Documentation ¶
Index ¶
- func TriremeWithPKI(keyFile, certFile, caCertFile string, networks []string) (trireme.Trireme, monitor.Monitor)
- func TriremeWithPSK(networks []string) (trireme.Trireme, monitor.Monitor)
- type CustomPolicyResolver
- func (p *CustomPolicyResolver) HandleDeletePU(context string) error
- func (p *CustomPolicyResolver) HandleDestroyPU(context string) error
- func (p *CustomPolicyResolver) ResolvePolicy(context string, runtimeInfo policy.RuntimeReader) (*policy.PUPolicy, error)
- func (p *CustomPolicyResolver) SetPolicyUpdater(pu trireme.PolicyUpdater) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomPolicyResolver ¶
type CustomPolicyResolver struct {
// contains filtered or unexported fields
}
CustomPolicyResolver holds the configuration of the policy engine
func NewCustomPolicyResolver ¶
func NewCustomPolicyResolver() *CustomPolicyResolver
NewCustomPolicyResolver creates a new policy engine for the Trireme package
func (*CustomPolicyResolver) HandleDeletePU ¶
func (p *CustomPolicyResolver) HandleDeletePU(context string) error
HandleDeletePU implements the corresponding interface. We have no state in this example
func (*CustomPolicyResolver) HandleDestroyPU ¶
func (p *CustomPolicyResolver) HandleDestroyPU(context string) error
HandleDestroyPU implements the corresponding interface. We have no state in this example
func (*CustomPolicyResolver) ResolvePolicy ¶
func (p *CustomPolicyResolver) ResolvePolicy(context string, runtimeInfo policy.RuntimeReader) (*policy.PUPolicy, error)
ResolvePolicy implements the Trireme interface. Here we just create a simple policy that accepts packets with the same labels as the target container.
func (*CustomPolicyResolver) SetPolicyUpdater ¶
func (p *CustomPolicyResolver) SetPolicyUpdater(pu trireme.PolicyUpdater) error
SetPolicyUpdater is used in order to register a pointer to the policyUpdater
Click to show internal directories.
Click to hide internal directories.