Documentation
¶
Index ¶
- Variables
- type Action
- type Classifier
- type Dataplane
- func (d *Dataplane) AddEndpoint(ipStr, tenant, epg string) (err error)
- func (d *Dataplane) Close() error
- func (d *Dataplane) DeleteEndpoint(ip string) (err error)
- func (d *Dataplane) Endpoints() <-chan *EndpointEntry
- func (d *Dataplane) Id() string
- func (d *Dataplane) Init(baseUrl string) error
- func (d *Dataplane) ParsePolicy(policy *Policy) (err error)
- type EndpointEntry
- type GbpServer
- type Match
- type Notifier
- type Parameter
- type Policy
- type PolicyRuleGroup
- type PolicyRuleGroupConstrained
- type ResolvedPolicy
- type Rule
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Classifier ¶
type Classifier struct { Name string `json:"name"` ParameterValues []*Parameter `json:"parameter-value"` Direction string `json:"direction"` Id string `json:"classifier-definition-id"` }
func (*Classifier) String ¶
func (x *Classifier) String() string
func (*Classifier) ToMatch ¶
func (x *Classifier) ToMatch() Match
type Dataplane ¶
type Dataplane struct {
// contains filtered or unexported fields
}
func NewDataplane ¶
func (*Dataplane) AddEndpoint ¶
func (*Dataplane) DeleteEndpoint ¶
func (*Dataplane) Endpoints ¶
func (d *Dataplane) Endpoints() <-chan *EndpointEntry
func (*Dataplane) ParsePolicy ¶
type EndpointEntry ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
func NewNotifier ¶
func (*Notifier) NotifyEndpointDown ¶
func (n *Notifier) NotifyEndpointDown()
func (*Notifier) NotifyEndpointUp ¶
type Policy ¶
type Policy struct { ConsumerTenantId string `json:"consumer-tenant-id"` ConsumerEpgId string `json:"consumer-epg-id"` ProviderTenantId string `json:"provider-tenant-id"` ProviderEpgId string `json:"provider-epg-id"` PolicyRuleGroups []*PolicyRuleGroupConstrained `json:"policy-rule-group-with-endpoint-constraints"` }
type PolicyRuleGroup ¶
type PolicyRuleGroup struct { TenantId string `json:"tenant-id"` ContractId string `json:"contract-id"` SubjectName string `json:"subject-name"` ResolvedRules []*Rule `json:"resolved-rule"` }
func (*PolicyRuleGroup) String ¶
func (x *PolicyRuleGroup) String() string
type PolicyRuleGroupConstrained ¶
type PolicyRuleGroupConstrained struct {
PolicyRuleGroups []*PolicyRuleGroup `json:"policy-rule-group"`
}
func (*PolicyRuleGroupConstrained) String ¶
func (x *PolicyRuleGroupConstrained) String() string
type ResolvedPolicy ¶
type ResolvedPolicy struct {
ResolvedPolicies []*Policy `json:"resolved-policy"`
}
func (*ResolvedPolicy) String ¶
func (x *ResolvedPolicy) String() string
Click to show internal directories.
Click to hide internal directories.