ops icon indicating copy to clipboard operation
ops copied to clipboard

consider breaking out ops functionality into a library separate from the cli side

Open eyberg opened this issue 4 years ago • 1 comments

there's definitely arguments here for being able to include the major functionality here into a library so that it can be used w/in say a webserver

eyberg avatar Apr 02 '20 19:04 eyberg

We're already separating by package the library (lepton) from cli side (cmd) what allows its usage in a different application.

It requires some knowledge of the library internals to be used though. I think we should expose a public interface.

See below some brainstorming examples.

ops := ops.New()
imgPath := ops.Image.Create(program,config)
ops.Hypervisor.Run(config)
ops.Provider("gcp").Image.Create(config)
ops.GCP().Instance.Create(config)

fabioDMFerreira avatar May 21 '21 08:05 fabioDMFerreira