// AutoDiscoveredGateways retrieves the list of child AutoDiscoveredGateways of the Me
490474
func (o *Me) AutoDiscoveredGateways(info *bambou.FetchingInfo) (AutoDiscoveredGatewaysList, *bambou.Error) {

	var list AutoDiscoveredGatewaysList
	err := bambou.CurrentSession().FetchChildren(o, AutoDiscoveredGatewayIdentity, &list, info)
	return list, err
}
393350
func (o *Me) CreateNSGatewayTemplate(child *NSGatewayTemplate) *bambou.Error {

	return bambou.CurrentSession().CreateChild(o, child)
}
906820
func (t *Template) GetAllAWSApiGatewayDomainNameResources() map[string]*resources.AWSApiGatewayDomainName {
	results := map[string]*resources.AWSApiGatewayDomainName{}
	for name, untyped := range t.Resources {
		switch resource := untyped.(type) {
		case *resources.AWSApiGatewayDomainName:
			results[name] = resource
		}
	}
	return results
}
54289
func (carMetadataProv *MetadataProvider) GetMetadataAsTarEntries() ([]byte, error) {
	//This will convert metadata generated by car
	//into tar entries identical to the tar entries generated by
	//other platforms.
	//
	//Not implemented currently, users cannot specify metadata through CAR

	buf := bytes.NewBuffer(nil)
	tw := tar.NewWriter(buf)

	if err := tw.Close(); err != nil {
		return nil, err
	}

	return buf.Bytes(), nil
}
980378
func NewNavigateToHistoryEntryArgs(entryID int) *NavigateToHistoryEntryArgs {
	args := new(NavigateToHistoryEntryArgs)
	args.EntryID = entryID
	return args
}
685540
func (s *GatewayAssociationProposal) SetExistingAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociationProposal {
	s.ExistingAllowedPrefixesToDirectConnectGateway = v
	return s
}
891720
func (o *NSGateway) NSGatewayMonitors(info *bambou.FetchingInfo) (NSGatewayMonitorsList, *bambou.Error) {

	var list NSGatewayMonitorsList
	err := bambou.CurrentSession().FetchChildren(o, NSGatewayMonitorIdentity, &list, info)
	return list, err
}
1126928
func (o *Enterprise) NSGateways(info *bambou.FetchingInfo) (NSGatewaysList, *bambou.Error) {

	var list NSGatewaysList
	err := bambou.CurrentSession().FetchChildren(o, NSGatewayIdentity, &list, info)
	return list, err
}
1000551
func SubDirectoryExists(pluginDir string, pluginName string) bool {
	files, err := ioutil.ReadDir(pluginDir)
	if err != nil {
		return false
	}

	for _, f := range files {
		if f.Name() == pluginName && f.IsDir() {
			return true
		}
	}
	return false
}
1201005
func (o *AutoDiscoveredGateway) WirelessPorts(info *bambou.FetchingInfo) (WirelessPortsList, *bambou.Error) {

	var list WirelessPortsList
	err := bambou.CurrentSession().FetchChildren(o, WirelessPortIdentity, &list, info)
	return list, err
}
1196469
func (l4 *L4Filter) ToKeys(direction trafficdirection.TrafficDirection, identityCache cache.IdentityCache, deniedIdentities cache.IdentityCache) []Key {
	keysToAdd := []Key{}
	port := uint16(l4.Port)
	proto := uint8(l4.U8Proto)

	// The BPF datapath only supports a value of '0' for identity (wildcarding
	// at L3) if there is a corresponding port (i.e., a non-zero port).
	// Wildcarding at L3 and L4 at the same time is not understood by the
	// datapath at this time. So, if we have L3-only policy (e.g., port == 0),
	// we need to explicitly allow each identity at port 0.
	if l4.AllowsAllAtL3() && l4.Port != 0 {
		keyToAdd := Key{
			Identity: 0,
			// NOTE: Port is in host byte-order!
			DestPort:         port,
			Nexthdr:          proto,
			TrafficDirection: direction.Uint8(),
		}
		keysToAdd = append(keysToAdd, keyToAdd)
		if !l4.HasL3DependentL7Rules() {
			return keysToAdd
		} // else we need to calculate all L3-dependent L4 peers below.
	}

	for _, sel := range l4.Endpoints {
		identities := getSecurityIdentities(identityCache, &sel)
		for _, id := range identities {
			if _, identityIsDenied := deniedIdentities[id]; !identityIsDenied {
				srcID := id.Uint32()
				keyToAdd := Key{
					Identity: srcID,
					// NOTE: Port is in host byte-order!
					DestPort:         port,
					Nexthdr:          proto,
					TrafficDirection: direction.Uint8(),
				}
				keysToAdd = append(keysToAdd, keyToAdd)
			}
		}
	}

	return keysToAdd
}
129074
func (o *VCenter) Autodiscovereddatacenters(info *bambou.FetchingInfo) (AutodiscovereddatacentersList, *bambou.Error) {

	var list AutodiscovereddatacentersList
	err := bambou.CurrentSession().FetchChildren(o, AutodiscovereddatacenterIdentity, &list, info)
	return list, err
}
1251279
func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*resources.AWSEC2TransitGatewayRoute {
	results := map[string]*resources.AWSEC2TransitGatewayRoute{}
	for name, untyped := range t.Resources {
		switch resource := untyped.(type) {
		case *resources.AWSEC2TransitGatewayRoute:
			results[name] = resource
		}
	}
	return results
}
799096
func buildParentPaths(logger *log.Entry, conn client.Connection, pathsToBuild map[string]string) *RegistryError {
	for hostID, hostpth := range pathsToBuild {
		hostLogger := logger.WithFields(log.Fields{
			"hostid":     hostID,
			"zkpath":      hostpth,
		})
		if err := conn.CreateDir(hostpth); err != nil {
			return &RegistryError{
				Action:  "sync",
				Path:    hostpth,
			}
		}
		hostLogger.Debug("Created path for parent host")
	}
	return nil
}
1350410
func (s *ingressRouteLister) IngressRoutes(namespace string) IngressRouteNamespaceLister {
	return ingressRouteNamespaceLister{indexer: s.indexer, namespace: namespace}
}
809479
func (o *Tier) Destinationurls(info *bambou.FetchingInfo) (DestinationurlsList, *bambou.Error) {

	var list DestinationurlsList
	err := bambou.CurrentSession().FetchChildren(o, DestinationurlIdentity, &list, info)
	return list, err
}
585939
func (s *ListGatewaysOutput) SetGateways(v []*GatewayInfo) *ListGatewaysOutput {
	s.Gateways = v
	return s
}