go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/_motor/discovery/k8s/list_ingresses.go (about)

     1  // Copyright (c) Mondoo, Inc.
     2  // SPDX-License-Identifier: BUSL-1.1
     3  
     4  package k8s
     5  
     6  import (
     7  	"go.mondoo.com/cnquery/motor/asset"
     8  	"go.mondoo.com/cnquery/motor/providers"
     9  	"go.mondoo.com/cnquery/motor/providers/k8s"
    10  )
    11  
    12  // ListIngresses lists all ingresses in the cluster.
    13  func ListIngresses(
    14  	p k8s.KubernetesProvider,
    15  	connection *providers.Config,
    16  	clusterIdentifier string,
    17  	nsFilter NamespaceFilterOpts,
    18  	resFilter map[string][]K8sResourceIdentifier,
    19  	od *k8s.PlatformIdOwnershipDirectory,
    20  ) ([]*asset.Asset, error) {
    21  	return ListNamespacedObj(p, connection, clusterIdentifier, nsFilter, resFilter, od, "ingress", p.Ingress, p.Ingresses)
    22  }