Documentation
¶
Index ¶
- func ClustersForApps(inv models.Inventory, apps []models.AppKey) ([]string, error)
- func InventoryKeys(inv models.Inventory) []models.AppKey
- func IsOpInProgressErr(err error) bool
- func TargetsForSelection(inv models.Inventory, selectedApps []models.AppKey, selectedClusters []string) []models.Target
- type BulkService
- type DiscoveryService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClustersForApps ¶
func IsOpInProgressErr ¶
Types ¶
type BulkService ¶
type BulkService struct {
// contains filtered or unexported fields
}
func NewBulkService ¶
func NewBulkService(api argocd.API, parallel int) *BulkService
func (*BulkService) Run ¶
func (s *BulkService) Run(ctx context.Context, inv models.Inventory, clustersByContext map[string]models.Cluster, selectedApps []models.AppKey, selectedClusters []string, resourcesByApp map[models.AppKey][]models.SyncResource, action models.Action, opts models.RunOptions, events chan<- models.ProgressEvent) ([]models.Result, error)
Run executes action for all (cluster, app) targets that exist in inventory.
type DiscoveryService ¶
type DiscoveryService struct {
// contains filtered or unexported fields
}
func NewDiscoveryService ¶
func NewDiscoveryService(api argocd.API) *DiscoveryService
Click to show internal directories.
Click to hide internal directories.