github.com/pbthorste/terraform@v0.8.6-0.20170127005045-deb56bd93da2/builtin/providers/profitbricks/config.go (about)

     1  package profitbricks
     2  
     3  import (
     4  	"github.com/profitbricks/profitbricks-sdk-go"
     5  )
     6  
     7  type Config struct {
     8  	Username string
     9  	Password string
    10  	Retries  int
    11  }
    12  
    13  // Client() returns a new client for accessing digital ocean.
    14  func (c *Config) Client() (*Config, error) {
    15  	profitbricks.SetAuth(c.Username, c.Password)
    16  	profitbricks.SetDepth("5")
    17  
    18  	return c, nil
    19  }