Documentation ¶
Index ¶
- func AddRoutes(router *mux.Router)
- func CreateAciGw(obj *AciGw) error
- func CreateAppProfile(obj *AppProfile) error
- func CreateBgp(obj *Bgp) error
- func CreateEndpointGroup(obj *EndpointGroup) error
- func CreateExtContractsGroup(obj *ExtContractsGroup) error
- func CreateGlobal(obj *Global) error
- func CreateNetprofile(obj *Netprofile) error
- func CreateNetwork(obj *Network) error
- func CreatePolicy(obj *Policy) error
- func CreateRule(obj *Rule) error
- func CreateServiceLB(obj *ServiceLB) error
- func CreateTenant(obj *Tenant) error
- func CreateVolume(obj *Volume) error
- func CreateVolumeProfile(obj *VolumeProfile) error
- func DeleteAciGw(key string) error
- func DeleteAppProfile(key string) error
- func DeleteBgp(key string) error
- func DeleteEndpointGroup(key string) error
- func DeleteExtContractsGroup(key string) error
- func DeleteGlobal(key string) error
- func DeleteNetprofile(key string) error
- func DeleteNetwork(key string) error
- func DeletePolicy(key string) error
- func DeleteRule(key string) error
- func DeleteServiceLB(key string) error
- func DeleteTenant(key string) error
- func DeleteVolume(key string) error
- func DeleteVolumeProfile(key string) error
- func GetAciGwCount() int
- func GetAppProfileCount() int
- func GetBgpCount() int
- func GetEndpointGroupCount() int
- func GetExtContractsGroupCount() int
- func GetGlobalCount() int
- func GetNetprofileCount() int
- func GetNetworkCount() int
- func GetOperAciGw(obj *AciGwInspect) error
- func GetOperBgp(obj *BgpInspect) error
- func GetOperEndpoint(obj *EndpointInspect) error
- func GetOperEndpointGroup(obj *EndpointGroupInspect) error
- func GetOperGlobal(obj *GlobalInspect) error
- func GetOperNetwork(obj *NetworkInspect) error
- func GetOperPolicy(obj *PolicyInspect) error
- func GetOperServiceLB(obj *ServiceLBInspect) error
- func GetOperTenant(obj *TenantInspect) error
- func GetPolicyCount() int
- func GetRuleCount() int
- func GetServiceLBCount() int
- func GetTenantCount() int
- func GetVolumeCount() int
- func GetVolumeProfileCount() int
- func Init()
- func RegisterAciGwCallbacks(handler AciGwCallbacks)
- func RegisterAppProfileCallbacks(handler AppProfileCallbacks)
- func RegisterBgpCallbacks(handler BgpCallbacks)
- func RegisterEndpointCallbacks(handler EndpointCallbacks)
- func RegisterEndpointGroupCallbacks(handler EndpointGroupCallbacks)
- func RegisterExtContractsGroupCallbacks(handler ExtContractsGroupCallbacks)
- func RegisterGlobalCallbacks(handler GlobalCallbacks)
- func RegisterNetprofileCallbacks(handler NetprofileCallbacks)
- func RegisterNetworkCallbacks(handler NetworkCallbacks)
- func RegisterPolicyCallbacks(handler PolicyCallbacks)
- func RegisterRuleCallbacks(handler RuleCallbacks)
- func RegisterServiceLBCallbacks(handler ServiceLBCallbacks)
- func RegisterTenantCallbacks(handler TenantCallbacks)
- func RegisterVolumeCallbacks(handler VolumeCallbacks)
- func RegisterVolumeProfileCallbacks(handler VolumeProfileCallbacks)
- func ValidateAciGw(obj *AciGw) error
- func ValidateAppProfile(obj *AppProfile) error
- func ValidateBgp(obj *Bgp) error
- func ValidateEndpointGroup(obj *EndpointGroup) error
- func ValidateExtContractsGroup(obj *ExtContractsGroup) error
- func ValidateGlobal(obj *Global) error
- func ValidateNetprofile(obj *Netprofile) error
- func ValidateNetwork(obj *Network) error
- func ValidatePolicy(obj *Policy) error
- func ValidateRule(obj *Rule) error
- func ValidateServiceLB(obj *ServiceLB) error
- func ValidateTenant(obj *Tenant) error
- func ValidateVolume(obj *Volume) error
- func ValidateVolumeProfile(obj *VolumeProfile) error
- type AciGw
- type AciGwCallbacks
- type AciGwInspect
- type AciGwOper
- type AppProfile
- type AppProfileCallbacks
- type AppProfileInspect
- type AppProfileLinkSets
- type AppProfileLinks
- type Bgp
- type BgpCallbacks
- type BgpInspect
- type BgpOper
- type CallbackHandlers
- type Collections
- type EndpointCallbacks
- type EndpointGroup
- type EndpointGroupCallbacks
- type EndpointGroupInspect
- type EndpointGroupLinkSets
- type EndpointGroupLinks
- type EndpointGroupOper
- type EndpointInspect
- type EndpointOper
- type ExtContractsGroup
- type ExtContractsGroupCallbacks
- type ExtContractsGroupInspect
- type ExtContractsGroupLinkSets
- type Global
- type GlobalCallbacks
- type GlobalInspect
- type GlobalOper
- type HttpApiFunc
- type Netprofile
- type NetprofileCallbacks
- type NetprofileInspect
- type NetprofileLinkSets
- type NetprofileLinks
- type Network
- type NetworkCallbacks
- type NetworkInspect
- type NetworkLinkSets
- type NetworkLinks
- type NetworkOper
- type Policy
- type PolicyCallbacks
- type PolicyInspect
- type PolicyLinkSets
- type PolicyLinks
- type PolicyOper
- type Rule
- type RuleCallbacks
- type RuleInspect
- type RuleLinkSets
- type RuleLinks
- type ServiceLB
- type ServiceLBCallbacks
- type ServiceLBInspect
- type ServiceLBLinks
- type ServiceLBOper
- type Tenant
- type TenantCallbacks
- type TenantInspect
- type TenantLinkSets
- type TenantOper
- type Volume
- type VolumeCallbacks
- type VolumeInspect
- type VolumeLinkSets
- type VolumeLinks
- type VolumeProfile
- type VolumeProfileCallbacks
- type VolumeProfileInspect
- type VolumeProfileLinkSets
- type VolumeProfileLinks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEndpointGroup ¶
func CreateEndpointGroup(obj *EndpointGroup) error
Create a endpointGroup object
func CreateExtContractsGroup ¶
func CreateExtContractsGroup(obj *ExtContractsGroup) error
Create a extContractsGroup object
func CreateVolumeProfile ¶
func CreateVolumeProfile(obj *VolumeProfile) error
Create a volumeProfile object
func DeleteExtContractsGroup ¶
Delete a extContractsGroup object
func GetAciGwCount ¶
func GetAciGwCount() int
func GetAppProfileCount ¶
func GetAppProfileCount() int
func GetBgpCount ¶
func GetBgpCount() int
func GetEndpointGroupCount ¶
func GetEndpointGroupCount() int
func GetExtContractsGroupCount ¶
func GetExtContractsGroupCount() int
func GetGlobalCount ¶
func GetGlobalCount() int
func GetNetprofileCount ¶
func GetNetprofileCount() int
func GetNetworkCount ¶
func GetNetworkCount() int
func GetOperEndpointGroup ¶
func GetOperEndpointGroup(obj *EndpointGroupInspect) error
Get a endpointGroupOper object
func GetOperServiceLB ¶
func GetOperServiceLB(obj *ServiceLBInspect) error
Get a serviceLBOper object
func GetPolicyCount ¶
func GetPolicyCount() int
func GetRuleCount ¶
func GetRuleCount() int
func GetServiceLBCount ¶
func GetServiceLBCount() int
func GetTenantCount ¶
func GetTenantCount() int
func GetVolumeCount ¶
func GetVolumeCount() int
func GetVolumeProfileCount ¶
func GetVolumeProfileCount() int
func RegisterAciGwCallbacks ¶
func RegisterAciGwCallbacks(handler AciGwCallbacks)
func RegisterAppProfileCallbacks ¶
func RegisterAppProfileCallbacks(handler AppProfileCallbacks)
func RegisterBgpCallbacks ¶
func RegisterBgpCallbacks(handler BgpCallbacks)
func RegisterEndpointCallbacks ¶
func RegisterEndpointCallbacks(handler EndpointCallbacks)
func RegisterEndpointGroupCallbacks ¶
func RegisterEndpointGroupCallbacks(handler EndpointGroupCallbacks)
func RegisterExtContractsGroupCallbacks ¶
func RegisterExtContractsGroupCallbacks(handler ExtContractsGroupCallbacks)
func RegisterGlobalCallbacks ¶
func RegisterGlobalCallbacks(handler GlobalCallbacks)
func RegisterNetprofileCallbacks ¶
func RegisterNetprofileCallbacks(handler NetprofileCallbacks)
func RegisterNetworkCallbacks ¶
func RegisterNetworkCallbacks(handler NetworkCallbacks)
func RegisterPolicyCallbacks ¶
func RegisterPolicyCallbacks(handler PolicyCallbacks)
func RegisterRuleCallbacks ¶
func RegisterRuleCallbacks(handler RuleCallbacks)
func RegisterServiceLBCallbacks ¶
func RegisterServiceLBCallbacks(handler ServiceLBCallbacks)
func RegisterTenantCallbacks ¶
func RegisterTenantCallbacks(handler TenantCallbacks)
func RegisterVolumeCallbacks ¶
func RegisterVolumeCallbacks(handler VolumeCallbacks)
func RegisterVolumeProfileCallbacks ¶
func RegisterVolumeProfileCallbacks(handler VolumeProfileCallbacks)
func ValidateAppProfile ¶
func ValidateAppProfile(obj *AppProfile) error
Validate a appProfile object
func ValidateEndpointGroup ¶
func ValidateEndpointGroup(obj *EndpointGroup) error
Validate a endpointGroup object
func ValidateExtContractsGroup ¶
func ValidateExtContractsGroup(obj *ExtContractsGroup) error
Validate a extContractsGroup object
func ValidateNetprofile ¶
func ValidateNetprofile(obj *Netprofile) error
Validate a netprofile object
func ValidateVolumeProfile ¶
func ValidateVolumeProfile(obj *VolumeProfile) error
Validate a volumeProfile object
Types ¶
type AciGw ¶
type AciGw struct { // every object has a key Key string `json:"key,omitempty"` EnforcePolicies string `json:"enforcePolicies,omitempty"` // Enforce security policy IncludeCommonTenant string `json:"includeCommonTenant,omitempty"` // Include common tenant when searching for objects Name string `json:"name,omitempty"` // name of this block(must be 'aciGw') NodeBindings string `json:"nodeBindings,omitempty"` // List of ACI complete nodes to be bound PathBindings string `json:"pathBindings,omitempty"` // List of ACI fabric ports connected to cluster PhysicalDomain string `json:"physicalDomain,omitempty"` // Name of the physical domain }
type AciGwCallbacks ¶
type AciGwInspect ¶
type AppProfile ¶
type AppProfile struct { // every object has a key Key string `json:"key,omitempty"` AppProfileName string `json:"appProfileName,omitempty"` // Application Profile Name EndpointGroups []string `json:"endpointGroups,omitempty"` TenantName string `json:"tenantName,omitempty"` // Tenant Name // add link-sets and links LinkSets AppProfileLinkSets `json:"link-sets,omitempty"` Links AppProfileLinks `json:"links,omitempty"` }
func FindAppProfile ¶
func FindAppProfile(key string) *AppProfile
Return a pointer to appProfile from collection
func (*AppProfile) Delete ¶
func (self *AppProfile) Delete() error
func (*AppProfile) GetKey ¶
func (self *AppProfile) GetKey() string
func (*AppProfile) GetType ¶
func (self *AppProfile) GetType() string
func (*AppProfile) Read ¶
func (self *AppProfile) Read() error
func (*AppProfile) Write ¶
func (self *AppProfile) Write() error
type AppProfileCallbacks ¶
type AppProfileCallbacks interface { AppProfileCreate(appProfile *AppProfile) error AppProfileUpdate(appProfile, params *AppProfile) error AppProfileDelete(appProfile *AppProfile) error }
type AppProfileInspect ¶
type AppProfileInspect struct {
Config AppProfile
}
type AppProfileLinkSets ¶
type AppProfileLinks ¶
type Bgp ¶
type Bgp struct { // every object has a key Key string `json:"key,omitempty"` As string `json:"as,omitempty"` // AS id Hostname string `json:"hostname,omitempty"` // host name Neighbor string `json:"neighbor,omitempty"` // Bgp neighbor NeighborAs string `json:"neighbor-as,omitempty"` // AS id Routerip string `json:"routerip,omitempty"` // Bgp router intf ip }
type BgpCallbacks ¶
type BgpInspect ¶
type CallbackHandlers ¶
type CallbackHandlers struct { AciGwCb AciGwCallbacks AppProfileCb AppProfileCallbacks BgpCb BgpCallbacks EndpointCb EndpointCallbacks EndpointGroupCb EndpointGroupCallbacks ExtContractsGroupCb ExtContractsGroupCallbacks GlobalCb GlobalCallbacks NetprofileCb NetprofileCallbacks NetworkCb NetworkCallbacks PolicyCb PolicyCallbacks RuleCb RuleCallbacks ServiceLBCb ServiceLBCallbacks TenantCb TenantCallbacks VolumeCb VolumeCallbacks VolumeProfileCb VolumeProfileCallbacks }
type Collections ¶
type EndpointCallbacks ¶
type EndpointCallbacks interface {
EndpointGetOper(endpoint *EndpointInspect) error
}
type EndpointGroup ¶
type EndpointGroup struct { // every object has a key Key string `json:"key,omitempty"` CfgdTag string `json:"cfgdTag,omitempty"` // Configured Group Tag ExtContractsGrps []string `json:"extContractsGrps,omitempty"` GroupName string `json:"groupName,omitempty"` // Group name IpPool string `json:"ipPool,omitempty"` // IP-pool NetProfile string `json:"netProfile,omitempty"` // Network profile name NetworkName string `json:"networkName,omitempty"` // Network Policies []string `json:"policies,omitempty"` TenantName string `json:"tenantName,omitempty"` // Tenant // add link-sets and links LinkSets EndpointGroupLinkSets `json:"link-sets,omitempty"` Links EndpointGroupLinks `json:"links,omitempty"` }
func FindEndpointGroup ¶
func FindEndpointGroup(key string) *EndpointGroup
Return a pointer to endpointGroup from collection
func (*EndpointGroup) Delete ¶
func (self *EndpointGroup) Delete() error
func (*EndpointGroup) GetKey ¶
func (self *EndpointGroup) GetKey() string
func (*EndpointGroup) GetType ¶
func (self *EndpointGroup) GetType() string
func (*EndpointGroup) Read ¶
func (self *EndpointGroup) Read() error
func (*EndpointGroup) Write ¶
func (self *EndpointGroup) Write() error
type EndpointGroupCallbacks ¶
type EndpointGroupCallbacks interface { EndpointGroupGetOper(endpointGroup *EndpointGroupInspect) error EndpointGroupCreate(endpointGroup *EndpointGroup) error EndpointGroupUpdate(endpointGroup, params *EndpointGroup) error EndpointGroupDelete(endpointGroup *EndpointGroup) error }
type EndpointGroupInspect ¶
type EndpointGroupInspect struct { Config EndpointGroup Oper EndpointGroupOper }
type EndpointGroupLinkSets ¶
type EndpointGroupLinkSets struct { ExtContractsGrps map[string]modeldb.Link `json:"ExtContractsGrps,omitempty"` MatchRules map[string]modeldb.Link `json:"MatchRules,omitempty"` Policies map[string]modeldb.Link `json:"Policies,omitempty"` Services map[string]modeldb.Link `json:"Services,omitempty"` }
type EndpointGroupLinks ¶
type EndpointGroupOper ¶
type EndpointGroupOper struct { AllocatedIPAddresses string `json:"allocatedIPAddresses,omitempty"` // allocated IP addresses AvailableIPAddresses string `json:"availableIPAddresses,omitempty"` // Available IP addresses Endpoints []EndpointOper `json:"endpoints,omitempty"` ExternalPktTag int `json:"externalPktTag,omitempty"` // external packet tag GroupTag string `json:"groupTag,omitempty"` // Derived EndpointGroup Tag NumEndpoints int `json:"numEndpoints,omitempty"` // number of endpoints PktTag int `json:"pktTag,omitempty"` // internal packet tag }
type EndpointInspect ¶
type EndpointInspect struct {
Oper EndpointOper
}
type EndpointOper ¶
type EndpointOper struct { // oper object key (present for oper only objects) Key string `json:"key,omitempty"` ContainerID string `json:"containerID,omitempty"` // ContainerName string `json:"containerName,omitempty"` // EndpointGroupID int `json:"endpointGroupId,omitempty"` // EndpointGroupKey string `json:"endpointGroupKey,omitempty"` // EndpointID string `json:"endpointID,omitempty"` // HomingHost string `json:"homingHost,omitempty"` // IntfName string `json:"intfName,omitempty"` // IpAddress []string `json:"ipAddress,omitempty"` Labels string `json:"labels,omitempty"` // MacAddress string `json:"macAddress,omitempty"` // Network string `json:"network,omitempty"` // ServiceName string `json:"serviceName,omitempty"` // VirtualPort string `json:"virtualPort,omitempty"` // VtepIP string `json:"vtepIP,omitempty"` // }
type ExtContractsGroup ¶
type ExtContractsGroup struct { // every object has a key Key string `json:"key,omitempty"` Contracts []string `json:"contracts,omitempty"` ContractsGroupName string `json:"contractsGroupName,omitempty"` // Contracts group name ContractsType string `json:"contractsType,omitempty"` // Contracts type TenantName string `json:"tenantName,omitempty"` // Tenant name // add link-sets and links LinkSets ExtContractsGroupLinkSets `json:"link-sets,omitempty"` }
func FindExtContractsGroup ¶
func FindExtContractsGroup(key string) *ExtContractsGroup
Return a pointer to extContractsGroup from collection
func (*ExtContractsGroup) Delete ¶
func (self *ExtContractsGroup) Delete() error
func (*ExtContractsGroup) GetKey ¶
func (self *ExtContractsGroup) GetKey() string
func (*ExtContractsGroup) GetType ¶
func (self *ExtContractsGroup) GetType() string
func (*ExtContractsGroup) Read ¶
func (self *ExtContractsGroup) Read() error
func (*ExtContractsGroup) Write ¶
func (self *ExtContractsGroup) Write() error
type ExtContractsGroupCallbacks ¶
type ExtContractsGroupCallbacks interface { ExtContractsGroupCreate(extContractsGroup *ExtContractsGroup) error ExtContractsGroupUpdate(extContractsGroup, params *ExtContractsGroup) error ExtContractsGroupDelete(extContractsGroup *ExtContractsGroup) error }
type ExtContractsGroupInspect ¶
type ExtContractsGroupInspect struct {
Config ExtContractsGroup
}
type Global ¶
type Global struct { // every object has a key Key string `json:"key,omitempty"` ArpMode string `json:"arpMode,omitempty"` // ARP Mode FwdMode string `json:"fwdMode,omitempty"` // Forwarding Mode Name string `json:"name,omitempty"` // name of this block(must be 'global') NetworkInfraType string `json:"networkInfraType,omitempty"` // Network infrastructure type PvtSubnet string `json:"pvtSubnet,omitempty"` // Private Subnet used by host bridge Vlans string `json:"vlans,omitempty"` // Allowed vlan range Vxlans string `json:"vxlans,omitempty"` // Allwed vxlan range }
type GlobalCallbacks ¶
type GlobalInspect ¶
type GlobalInspect struct { Config Global Oper GlobalOper }
type GlobalOper ¶
type GlobalOper struct { ClusterMode string `json:"clusterMode,omitempty"` // DefaultNetwork string `json:"defaultNetwork,omitempty"` // FreeVXLANsStart int `json:"freeVXLANsStart,omitempty"` // NumNetworks int `json:"numNetworks,omitempty"` // VlansInUse string `json:"vlansInUse,omitempty"` // VxlansInUse string `json:"vxlansInUse,omitempty"` // }
type HttpApiFunc ¶
type Netprofile ¶
type Netprofile struct { // every object has a key Key string `json:"key,omitempty"` DSCP int `json:"DSCP,omitempty"` // DSCP Bandwidth string `json:"bandwidth,omitempty"` // Allocated bandwidth Burst int `json:"burst,omitempty"` // burst size ProfileName string `json:"profileName,omitempty"` // Network profile name TenantName string `json:"tenantName,omitempty"` // Tenant name // add link-sets and links LinkSets NetprofileLinkSets `json:"link-sets,omitempty"` Links NetprofileLinks `json:"links,omitempty"` }
func FindNetprofile ¶
func FindNetprofile(key string) *Netprofile
Return a pointer to netprofile from collection
func (*Netprofile) Delete ¶
func (self *Netprofile) Delete() error
func (*Netprofile) GetKey ¶
func (self *Netprofile) GetKey() string
func (*Netprofile) GetType ¶
func (self *Netprofile) GetType() string
func (*Netprofile) Read ¶
func (self *Netprofile) Read() error
func (*Netprofile) Write ¶
func (self *Netprofile) Write() error
type NetprofileCallbacks ¶
type NetprofileCallbacks interface { NetprofileCreate(netprofile *Netprofile) error NetprofileUpdate(netprofile, params *Netprofile) error NetprofileDelete(netprofile *Netprofile) error }
type NetprofileInspect ¶
type NetprofileInspect struct {
Config Netprofile
}
type NetprofileLinkSets ¶
type NetprofileLinks ¶
type Network ¶
type Network struct { // every object has a key Key string `json:"key,omitempty"` CfgdTag string `json:"cfgdTag,omitempty"` // Configured Network Tag Encap string `json:"encap,omitempty"` // Encapsulation Gateway string `json:"gateway,omitempty"` // Gateway Ipv6Gateway string `json:"ipv6Gateway,omitempty"` // IPv6Gateway Ipv6Subnet string `json:"ipv6Subnet,omitempty"` // IPv6Subnet NetworkName string `json:"networkName,omitempty"` // Network name NwType string `json:"nwType,omitempty"` // Network Type PktTag int `json:"pktTag,omitempty"` // Vlan/Vxlan Tag Subnet string `json:"subnet,omitempty"` // Subnet TenantName string `json:"tenantName,omitempty"` // Tenant Name // add link-sets and links LinkSets NetworkLinkSets `json:"link-sets,omitempty"` Links NetworkLinks `json:"links,omitempty"` }
func FindNetwork ¶
Return a pointer to network from collection
type NetworkCallbacks ¶
type NetworkInspect ¶
type NetworkInspect struct { Config Network Oper NetworkOper }
type NetworkLinkSets ¶
type NetworkLinks ¶
type NetworkOper ¶
type NetworkOper struct { AllocatedAddressesCount int `json:"allocatedAddressesCount,omitempty"` // Vlan/Vxlan Tag AllocatedIPAddresses string `json:"allocatedIPAddresses,omitempty"` // allocated IP addresses AvailableIPAddresses string `json:"availableIPAddresses,omitempty"` // Available IP addresses Endpoints []EndpointOper `json:"endpoints,omitempty"` ExternalPktTag int `json:"externalPktTag,omitempty"` // external packet tag NetworkTag string `json:"networkTag,omitempty"` // Derived Network Tag NumEndpoints int `json:"numEndpoints,omitempty"` // external packet tag PktTag int `json:"pktTag,omitempty"` // internal packet tag }
type Policy ¶
type Policy struct { // every object has a key Key string `json:"key,omitempty"` PolicyName string `json:"policyName,omitempty"` // Policy Name TenantName string `json:"tenantName,omitempty"` // Tenant Name // add link-sets and links LinkSets PolicyLinkSets `json:"link-sets,omitempty"` Links PolicyLinks `json:"links,omitempty"` }
type PolicyCallbacks ¶
type PolicyInspect ¶
type PolicyInspect struct { Config Policy Oper PolicyOper }
type PolicyLinkSets ¶
type PolicyLinks ¶
type PolicyOper ¶
type PolicyOper struct { Endpoints []EndpointOper `json:"endpoints,omitempty"` NumEndpoints int `json:"numEndpoints,omitempty"` // number of endpoints PolicyViolations int `json:"policyViolations,omitempty"` // number of policyViolations }
type Rule ¶
type Rule struct { // every object has a key Key string `json:"key,omitempty"` Action string `json:"action,omitempty"` // Action Direction string `json:"direction,omitempty"` // Direction FromEndpointGroup string `json:"fromEndpointGroup,omitempty"` // From Endpoint Group FromIpAddress string `json:"fromIpAddress,omitempty"` // IP Address FromNetwork string `json:"fromNetwork,omitempty"` // From Network PolicyName string `json:"policyName,omitempty"` // Policy Name Port int `json:"port,omitempty"` // Port No Priority int `json:"priority,omitempty"` // Priority Protocol string `json:"protocol,omitempty"` // Protocol RuleID string `json:"ruleId,omitempty"` // Rule Id TenantName string `json:"tenantName,omitempty"` // Tenant Name ToEndpointGroup string `json:"toEndpointGroup,omitempty"` // To Endpoint Group ToIpAddress string `json:"toIpAddress,omitempty"` // IP Address ToNetwork string `json:"toNetwork,omitempty"` // To Network // add link-sets and links LinkSets RuleLinkSets `json:"link-sets,omitempty"` Links RuleLinks `json:"links,omitempty"` }
type RuleCallbacks ¶
type RuleInspect ¶
type RuleInspect struct {
Config Rule
}
type RuleLinkSets ¶
type ServiceLB ¶
type ServiceLB struct { // every object has a key Key string `json:"key,omitempty"` IpAddress string `json:"ipAddress,omitempty"` // Service ip NetworkName string `json:"networkName,omitempty"` // Service network name Ports []string `json:"ports,omitempty"` Selectors []string `json:"selectors,omitempty"` ServiceName string `json:"serviceName,omitempty"` // service name TenantName string `json:"tenantName,omitempty"` // Tenant Name Links ServiceLBLinks `json:"links,omitempty"` }
func FindServiceLB ¶
Return a pointer to serviceLB from collection
type ServiceLBCallbacks ¶
type ServiceLBInspect ¶
type ServiceLBInspect struct { Config ServiceLB Oper ServiceLBOper }
type ServiceLBLinks ¶
type ServiceLBOper ¶
type ServiceLBOper struct { NumProviders int `json:"numProviders,omitempty"` // number of provider endpoints for the service Providers []EndpointOper `json:"providers,omitempty"` ServiceVip string `json:"serviceVip,omitempty"` // allocated IP addresses }
type Tenant ¶
type Tenant struct { // every object has a key Key string `json:"key,omitempty"` DefaultNetwork string `json:"defaultNetwork,omitempty"` // Network name TenantName string `json:"tenantName,omitempty"` // Tenant Name // add link-sets and links LinkSets TenantLinkSets `json:"link-sets,omitempty"` }
type TenantCallbacks ¶
type TenantInspect ¶
type TenantInspect struct { Config Tenant Oper TenantOper }
type TenantLinkSets ¶
type TenantLinkSets struct { AppProfiles map[string]modeldb.Link `json:"AppProfiles,omitempty"` EndpointGroups map[string]modeldb.Link `json:"EndpointGroups,omitempty"` NetProfiles map[string]modeldb.Link `json:"NetProfiles,omitempty"` Networks map[string]modeldb.Link `json:"Networks,omitempty"` Policies map[string]modeldb.Link `json:"Policies,omitempty"` Servicelbs map[string]modeldb.Link `json:"Servicelbs,omitempty"` VolumeProfiles map[string]modeldb.Link `json:"VolumeProfiles,omitempty"` Volumes map[string]modeldb.Link `json:"Volumes,omitempty"` }
type TenantOper ¶
type TenantOper struct { EndpointGroups []EndpointGroupOper `json:"endpointGroups,omitempty"` Endpoints []EndpointOper `json:"endpoints,omitempty"` Networks []NetworkOper `json:"networks,omitempty"` Policies []PolicyOper `json:"policies,omitempty"` Servicelbs []ServiceLBOper `json:"servicelbs,omitempty"` TotalAppProfiles int `json:"totalAppProfiles,omitempty"` // total number of App-Profiles TotalEPGs int `json:"totalEPGs,omitempty"` // total number of EPGs TotalEndpoints int `json:"totalEndpoints,omitempty"` // total number of endpoints in the tenant TotalNetprofiles int `json:"totalNetprofiles,omitempty"` // total number of Netprofiles TotalNetworks int `json:"totalNetworks,omitempty"` // total number of networks TotalPolicies int `json:"totalPolicies,omitempty"` // total number of totalPolicies TotalServicelbs int `json:"totalServicelbs,omitempty"` // total number of Servicelbs }
type Volume ¶
type Volume struct { // every object has a key Key string `json:"key,omitempty"` DatastoreType string `json:"datastoreType,omitempty"` // MountPoint string `json:"mountPoint,omitempty"` // PoolName string `json:"poolName,omitempty"` // Size string `json:"size,omitempty"` // TenantName string `json:"tenantName,omitempty"` // Tenant Name VolumeName string `json:"volumeName,omitempty"` // Volume Name // add link-sets and links LinkSets VolumeLinkSets `json:"link-sets,omitempty"` Links VolumeLinks `json:"links,omitempty"` }
type VolumeCallbacks ¶
type VolumeInspect ¶
type VolumeInspect struct {
Config Volume
}
type VolumeLinkSets ¶
type VolumeLinks ¶
type VolumeProfile ¶
type VolumeProfile struct { // every object has a key Key string `json:"key,omitempty"` DatastoreType string `json:"datastoreType,omitempty"` // MountPoint string `json:"mountPoint,omitempty"` // PoolName string `json:"poolName,omitempty"` // Size string `json:"size,omitempty"` // TenantName string `json:"tenantName,omitempty"` // Tenant Name VolumeProfileName string `json:"volumeProfileName,omitempty"` // Volume profile Name // add link-sets and links LinkSets VolumeProfileLinkSets `json:"link-sets,omitempty"` Links VolumeProfileLinks `json:"links,omitempty"` }
func FindVolumeProfile ¶
func FindVolumeProfile(key string) *VolumeProfile
Return a pointer to volumeProfile from collection
func (*VolumeProfile) Delete ¶
func (self *VolumeProfile) Delete() error
func (*VolumeProfile) GetKey ¶
func (self *VolumeProfile) GetKey() string
func (*VolumeProfile) GetType ¶
func (self *VolumeProfile) GetType() string
func (*VolumeProfile) Read ¶
func (self *VolumeProfile) Read() error
func (*VolumeProfile) Write ¶
func (self *VolumeProfile) Write() error
type VolumeProfileCallbacks ¶
type VolumeProfileCallbacks interface { VolumeProfileCreate(volumeProfile *VolumeProfile) error VolumeProfileUpdate(volumeProfile, params *VolumeProfile) error VolumeProfileDelete(volumeProfile *VolumeProfile) error }
type VolumeProfileInspect ¶
type VolumeProfileInspect struct {
Config VolumeProfile
}
type VolumeProfileLinkSets ¶
type VolumeProfileLinks ¶
Directories ¶
Path | Synopsis |
---|---|
package client provides contiv REST client implementation.
|
package client provides contiv REST client implementation. |