Documentation ¶
Index ¶
Constants ¶
View Source
const RuleMatchesHashTag = "__rule-matches-hash__"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FromRules ¶
type FromRules struct {
Rules map[InboundListener]Rules
}
type GatewayRules ¶
type GatewayRules struct { ToRules map[InboundListener]Rules FromRules map[InboundListener]Rules }
type InboundListener ¶
func (InboundListener) MarshalText ¶
func (i InboundListener) MarshalText() ([]byte, error)
func (InboundListener) String ¶
func (i InboundListener) String() string
type PolicyItemWithMeta ¶
type PolicyItemWithMeta struct { core_model.PolicyItem core_model.ResourceMeta }
type Rule ¶
type Rule struct { Subset Subset Conf interface{} Origin []core_model.ResourceMeta }
Rule contains a configuration for the given Subset. When rule is an inbound rule (from), then Subset represents a group of clients. When rule is an outbound (to) then Subset represents destinations.
type SingleItemRules ¶
type SingleItemRules struct {
Rules Rules
}
type Subset ¶
type Subset []Tag
Subset represents a group of proxies
func MeshService ¶
func MeshSubset ¶
func MeshSubset() Subset
func SubsetFromTags ¶
func (Subset) IndexOfPositive ¶
func (Subset) Intersect ¶
Intersect returns true if there exists an element that belongs both to 'other' and current set. Empty set intersects with all sets.
func (Subset) IsSubset ¶
IsSubset returns true if 'other' is a subset of the current set. Empty set is a superset for all subsets.
func (Subset) NumPositive ¶
NumPositive returns a number of tags without negation
Click to show internal directories.
Click to hide internal directories.