github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/pkg/providers/virtualbox/get_instance_logs.go (about)

     1  package virtualbox
     2  
     3  import (
     4  	"github.com/emc-advanced-dev/pkg/errors"
     5  	"github.com/solo-io/unik/pkg/providers/common"
     6  )
     7  
     8  func (p *VirtualboxProvider) GetInstanceLogs(id string) (string, error) {
     9  	instance, err := p.GetInstance(id)
    10  	if err != nil {
    11  		return "", errors.New("retrieving instance "+id, err)
    12  	}
    13  	return common.GetInstanceLogs(instance)
    14  }