@spotinst/spinnaker-deck
Version:
Spinnaker-Deck service, forked with support to Spotinst
12 lines (10 loc) • 337 B
text/typescript
import { REST } from '@spinnaker/core';
import { IKeyPair } from 'amazon/domain';
export class KeyPairsReader {
public static listKeyPairs(): PromiseLike<IKeyPair[]> {
return REST('/keyPairs')
.useCache()
.get()
.then((keyPairs: IKeyPair[]) => keyPairs.sort((a, b) => a.keyName.localeCompare(b.keyName)));
}
}