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: utils.go
    path of file: ./repos/cds/engine/hatchery/vsphere
    
    the code of the file until where you have to start completion: package vsphere

import (
	"fmt"

	"github.com/ovh/cds/sdk"
)

// getGraylogEnv fetch the graylog aconfiguration from viper and return environement variable in a slice
func (h *HatcheryVSphere) getGraylogEnv(model sdk.Model) []string {
	env := []string{}

	
    
func (h *HatcheryVSphere) getGraylogEnv(model sdk.Model) []string {
	env := []string{}

	if h.Config.Provision.WorkerLogsOptions.Graylog.Host != "" {
		env = append(env, fmt.Sprintf("CDS_GRAYLOG_HOST=%s", h.Config.Provision.WorkerLogsOptions.Graylog.Host))
	}
	if h.Config.Provision.WorkerLogsOptions.Graylog.Port > 0 {
		env = append(env, fmt.Sprintf("export CDS_GRAYLOG_PORT=%d", h.Config.Provision.WorkerLogsOptions.Graylog.Port))
	}
	if h.Config.Provision.WorkerLogsOptions.Graylog.ExtraKey != "" {
		env = append(env, fmt.Sprintf("export CDS_GRAYLOG_EXTRA_KEY=%s", h.Config.Provision.WorkerLogsOptions.Graylog.ExtraKey))
	}
	if h.Config.Provision.WorkerLogsOptions.Graylog.ExtraValue != "" {
		env = append(env, fmt.Sprintf("export CDS_GRAYLOG_EXTRA_VALUE=%s", h.Config.Provision.WorkerLogsOptions.Graylog.ExtraValue))
	}

	return env
}