Documentation ¶
Overview ¶
Companion package for github.com/fluxninja/aperture/api/gen/proto/go/aperture/policy/language/v1 containing conversions of proto-generated struct into golang ones and other helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromProto ¶
func FromProto(selectorMsg *policylangv1.Selector) (selector, error)
FromProto creates a Selector from a "raw" proto-based Selector
The selector is assumed to be already validated and non-nil.
func MMExprFromLabelMatcher ¶
func MMExprFromLabelMatcher(lm *policylangv1.LabelMatcher) (mm.Expr, error)
MMExprFromLabelMatcher translates proto definition of label matcher into a // single multimatcher expression
LabelMatcher can be nil or a validated LabelMatcher.
func MMExprFromProto ¶
func MMExprFromProto(expr *policylangv1.MatchExpression) (mm.Expr, error)
MMExprFromProto converts proto definition of expression into multimatcher Expression
The expr is assumed to be validated and nonnil.
Types ¶
type ControlPoint ¶
type ControlPoint interface { Type() flowcontrolv1.ControlPointInfo_Type Feature() string ToControlPointInfoProto() *flowcontrolv1.ControlPointInfo }
ControlPoint is the interface for controlPoint.
func NewControlPoint ¶
func NewControlPoint(type_ flowcontrolv1.ControlPointInfo_Type, feature string) ControlPoint
NewControlPoint returns a controlPoint.
type ControlPointID ¶
type ControlPointID interface { Service() string ControlPoint() ControlPoint }
ControlPointID is the interface for controlPointID.
func NewControlPointID ¶
func NewControlPointID(service string, controlPoint ControlPoint) ControlPointID
NewControlPointID returns a controlPointID.