portainer/app/kubernetes/models/node/models.js

41 lines
723 B
JavaScript

/**
* KubernetesNode Model
*/
const _KubernetesNode = Object.freeze({
Id: '',
Name: '',
Role: '',
Status: '',
CPU: 0,
Memory: '',
Version: '',
IPAddress: '',
});
export class KubernetesNode {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNode)));
}
}
/**
* KubernetesNodeDetails Model
*/
const _KubernetesNodeDetails = Object.freeze({
CreationDate: '',
OS: {
Architecture: '',
Platform: '',
Image: '',
},
Conditions: [],
Yaml: '',
});
export class KubernetesNodeDetails {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNode)));
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNodeDetails)));
}
}