services

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClustersForApps

func ClustersForApps(inv models.Inventory, apps []models.AppKey) ([]string, error)

func InventoryKeys

func InventoryKeys(inv models.Inventory) []models.AppKey

func IsOpInProgressErr

func IsOpInProgressErr(err error) bool

func TargetsForSelection

func TargetsForSelection(inv models.Inventory, selectedApps []models.AppKey, selectedClusters []string) []models.Target

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

func (*DiscoveryService) DiscoverInventory

func (s *DiscoveryService) DiscoverInventory(ctx context.Context, clusters []models.Cluster) (models.Inventory, map[string]error, error)

DiscoverInventory lists apps from all clusters in parallel and groups them by AppKey.

Jump to

Keyboard shortcuts

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