blob: 4e8348377962257b0efa90cd35f08fc07408eba1 [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301/*
2 Copyright 2020 TATA ELXSI
3
4 Licensed under the Apache License, Version 2.0 (the 'License');
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17 */
18/**
19 * @file Model for K8s related information.
20 */
21
22/** Interface for K8SCLUSTERDATA */
23export interface K8SCLUSTERDATA {
24 credentials: Credentials;
25 description: string;
26 k8s_version: number;
27 name: string;
28 namespace: string;
29 nets: Nets;
30 schema_version: string;
31 vim_account: string;
32 _admin: Admin;
33 _id: string;
34}
35/** Interface for K8SCLUSTERDATA */
36export interface K8SREPODATA {
37 description: string;
38 name: string;
39 schema_version: string;
40 'type': string;
41 url: string;
42 vim_account: string;
43 _admin: Admin;
44 _id: string;
45}
46/** Interface for the Credentials */
47interface Credentials{
48 apiVersion: string;
49 clusters: Clusters[];
50 contexts: Contexts[];
51 'current-context': string;
52 kind: string;
53 preferences: {};
54 users: Users[];
55}
56/** Interface for the Clusters */
57interface Clusters {
58 cluster: Cluster;
59 name: string;
60}
61/** Interface for the Cluster */
62interface Cluster {
63 'certificate-authority-data': string;
64 server: string;
65}
66/** Interface for the Contexts */
67interface Contexts{
68 context: Context;
69 name: string;
70}
71/** Interface for the Contexts */
72interface Context {
73 cluster: string;
74 user: string;
75}
76/** Interface for the Users */
77interface Users{
78 name: string;
79 user: User;
80}
81/** Interface for the Users */
82interface User {
83 'client-certificate-data': string;
84 'client-key-data': string;
85}
86/** Interface for the K8SCLUSTERDATA nets */
87interface Nets{
88 net1: string;
89}
90/** Interface for the K8SCLUSTERDATA _admin */
91interface Admin{
92 created: string;
93 current_operation: number;
94 'helm-chart': HelmChart;
95 'juju-bundle': JujuBundle;
96 operationalState: string;
97 modified: string;
98}
99/** Interface for the K8SCLUSTERDATA _admin Helm chart */
100interface HelmChart {
101 created: boolean;
102 id: string;
103}
104/** Interface for the K8SCLUSTERDATA _admin Juju Bundle */
105interface JujuBundle {
106 error_msg: string;
107}
108/** Interface for the K8SCLUSTERDATA Return to Display */
109export interface K8SCLUSTERDATADISPLAY{
110 name: string;
111 identifier: string;
112 operationalState: string;
113 version: number;
114 created: string;
115 modified: string;
116 pageType: string;
117}
118/** Interface for the K8SCLUSTERDATA Return to Display */
119export interface K8SREPODATADISPLAY {
120 name: string;
121 identifier: string;
122 url: string;
123 'type': string;
124 created: string;
125 modified: string;
126 pageType: string;
127}