mirror of https://github.com/portainer/portainer
15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
import { KubernetesStorageClass } from 'Kubernetes/models/storage-class/models';
|
|
|
|
class KubernetesStorageClassConverter {
|
|
/**
|
|
* API StorageClass to front StorageClass
|
|
*/
|
|
static apiToStorageClass(data) {
|
|
const res = new KubernetesStorageClass();
|
|
res.Name = data.metadata.name;
|
|
return res;
|
|
}
|
|
}
|
|
|
|
export default KubernetesStorageClassConverter;
|