implementer

package
v0.0.0-...-3047eb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyImplementer

type PolicyImplementer struct {
	// contains filtered or unexported fields
}

PolicyImplementer is used to implement a Nuage Policy

func (*PolicyImplementer) CompareEgressACLEntries

func (implementer *PolicyImplementer) CompareEgressACLEntries(acl1 *vspk.EgressACLEntryTemplate, acl2 *vspk.EgressACLEntryTemplate) int

CompareEgressACLEntries returns 0 is the two ingress ACLs are the same

func (*PolicyImplementer) CompareIngressACLEntries

func (implementer *PolicyImplementer) CompareIngressACLEntries(acl1 *vspk.IngressACLEntryTemplate, acl2 *vspk.IngressACLEntryTemplate) int

CompareIngressACLEntries returns 0 is the two ingress ACLs are the same

func (*PolicyImplementer) DeletePolicy

func (implementer *PolicyImplementer) DeletePolicy(policyID string, enterpriseName string,
	domainName string) error

DeletePolicy deletes a Nuage policy using the policy ID

func (*PolicyImplementer) ImplementPolicy

func (implementer *PolicyImplementer) ImplementPolicy(policy *policies.NuagePolicy) error

ImplementPolicy implements a Nuage policy

func (*PolicyImplementer) Init

func (implementer *PolicyImplementer) Init(vsdCredentials *VSDCredentials) error

Init initializes the policy implementer and establishes session with VSD

func (*PolicyImplementer) UpdatePolicy

func (implementer *PolicyImplementer) UpdatePolicy(policy *policies.NuagePolicy, op policies.PolicyUpdateOperation) error

UpdatePolicy updates the default policy

type VSDCredentials

type VSDCredentials struct {
	URL          string
	UserCertFile string
	UserKeyFile  string
}

VSDCredentials stores information required to establish session with VSD

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL