UNPKG

@spotinst/spinnaker-deck

Version:

Spinnaker-Deck service, forked with support to Spotinst

18 lines (16 loc) 451 B
import { REST } from '@spinnaker/core'; import { ICloudFoundryCluster } from 'cloudfoundry/domain'; export class CloudFoundryImageReader { public static findImages(account: string): PromiseLike<ICloudFoundryCluster[]> { return REST('/images/find') .query({ account, provider: 'cloudfoundry', }) .get() .then(function (results: any) { return results; }) .catch((): any[] => []); } }