Skip to content

Instantly share code, notes, and snippets.

@smothiki
Last active August 29, 2015 14:23
Show Gist options
  • Save smothiki/9a9137bc2e55c5b03911 to your computer and use it in GitHub Desktop.
Save smothiki/9a9137bc2e55c5b03911 to your computer and use it in GitHub Desktop.
class App:
def _scheduler(self):
module, auth, ApiEndpoint, options,key
def init():
#intialize the name,scheduler,version,bootstrap App
scheduler.init()
def start():
#which gets caled for the first time. might do scale=1
def scale():
#scale the app by calling the scheduler scale
def destroy():
#destroy the app by calling the scheduler destroy
def run():
#run
def deploy():
#deploy the app basically the create pods/containers by calling the scheduler start
def logs():
#get the logs by calling the scheduler logs because each scheduler may have its own way of getting the logs
def Info():
#info
class sceheduler:
def init():
#intialize host and port on which the request needs to be sent for creating containers/pods
def scale():
#scale the app
def destroy():
#destroy all the artifacts created for the app(conainers or pods..)
def logs():
#get the logs of the app
def Info():
#info
def run():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment