INNER CODE UNIT · Go

init

hb-chen/micro-starter · profile/profile.go:33

func init() {
	if err := profile.Register("starter-local", Local); err != nil {
		logger.Fatalf("Error profile register: %v", err)
	}

	if err := profile.Register("starter-kubernetes", Kubernetes); err != nil {
		logger.Fatalf("Error profile register: %v", err)
	}

	if err := profile.Register("starter-test", Kubernetes); err != nil {
		logger.Fatalf("Error profile register: %v", err)
	}
}

// Local profile to run locally
var Local = &profile.Profile{
	Name: "starter-local",
	Setup: func(ctx *cli.Context) error {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…