// Package platform talks to the CARLOS Platform account Base runs on. package platform import "context" // Client is the part of Platform's CLI API that Base uses. type Client interface { // SetEnv sets plain environment variables in an app's config environment. SetEnv(ctx context.Context, app, environment string, vars map[string]string) error // CreateInstance creates an instance of app at host, bound to the config // environment. An instance of app already at host and bound to the same // environment (Platform's 409, then a matching record) counts as // success; any other conflict is an error. CreateInstance(ctx context.Context, app, host, environment string) error // DeleteInstance retires the instance's route. Its data is kept. DeleteInstance(ctx context.Context, app, host string) error }