Last active
July 12, 2016 22:25
-
-
Save smothiki/99cd67b1498df0b80006bda50baf9554 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type cluster struct { | |
[] nodes | |
any metadata | |
} | |
get cluster() returns cluster | |
type node struct { | |
platform stirng | |
metrics cpu , memory etc.., | |
events for n time | |
load details if any | |
} | |
get node() return node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type interface componenet{ | |
type string | |
version string | |
subs []subcompoenent | |
metadata if componenet has no subcomps | |
} | |
get component info () return componenet struct | |
get subcomponent(name) return subcomp struct | |
---------------------------- | |
type subcomponents{ | |
name string | |
host string | |
logs string([]) | |
events string([]) | |
get component Info() return subcomp struct | |
get logs() return string([]) | |
get events ()returns string([]) | |
component can be any thing like RC or Daemonset, deployment | |
subcompoenent si basically pod info | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctor Info struct { | |
cluster cluster | |
[] components | |
metadata / comments string | |
} | |
get component()calls get component | |
get doctorinfo() reutrn doctor | |
get cluster() calls cluster get cluster | |
get components() returns components |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add more details if you want.