This repository contains all the entities, actions and features used by all the other packages (including the Recode CLI).
(For the clean architecture aficionados, we are in the innermost circle (ie: the entities one).)
This repository makes use of go generics and, as a result, needs to have go >= 1.18 as a requirement.
This repository is not meant to be used standalone (you could see that there is no main.go file). It is only meant to be imported by other packages.
As an example, all the cloud providers added to the Recode CLI need to conform to the CloudService interface:
// entities/cloud_service.go
type CloudService interface {
    CreateRecodeConfigStorage(stepper.Stepper) error
    RemoveRecodeConfigStorage(stepper.Stepper) error
    
    LookupRecodeConfig(stepper.Stepper) (*Config, error)
    SaveRecodeConfig(stepper.Stepper, *Config) error
    
    CreateCluster(stepper.Stepper, *Config, *Cluster) error
    RemoveCluster(stepper.Stepper, *Config, *Cluster) error
    
    CheckInstanceTypeValidity(stepper.Stepper, string) error
    
    CreateDevEnv(stepper.Stepper, *Config, *Cluster, *DevEnv) error
    RemoveDevEnv(stepper.Stepper, *Config, *Cluster, *DevEnv) error
    
    StartDevEnv(stepper.Stepper, *Config, *Cluster, *DevEnv) error
    StopDevEnv(stepper.Stepper, *Config, *Cluster, *DevEnv) error
}This project is 100% community-driven, meaning that except for bug fixes no more features will be added.
The only features that will be added are the ones that will be posted as an issue and that will receive a significant amount of upvotes (>= 10 currently).
Recode is available as open source under the terms of the MIT License.