You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ctrl_init.go
    path of file: ./repos/ziti/zititest/zitilab/actions/edge
    
    the code of the file until where you have to start completion: package edge

import (
	"fmt"
	"github.com/openziti/f
    
func (init *raftInit) Execute(run model.Run) error {
	m := run.GetModel()
	username := m.MustStringVariable("credentials.edge.username")
	password := m.MustStringVariable("credentials.edge.password")

	if username == "" {
		return errors.New("variable credentials/edge/username must be a string")
	}

	if password == "" {
		return errors.New("variable credentials/edge/password must be a string")
	}

	for _, c := range m.SelectComponents(init.componentSpec) {
		ctrlType, ok := c.Type.(*zitilab.ControllerType)
		if !ok {
			return errors.Errorf("component %s is not a controller", c.Id)
		}

		tmpl := "set -o pipefail; %s agent controller init %s %s default.admin 2>&1 | tee logs/controller.edge.init.log"
		if err := host.Exec(c.GetHost(), fmt.Sprintf(tmpl, ctrlType.GetBinaryPath(c), username, password)).Execute(run); err != nil {
			return err
		}
	}

	return nil
}