tcec2manager/tcec2manager.go
func New(credentials *tcclient.Credentials) *EC2Manager {
	return &EC2Manager{
		Credentials:  credentials,
		BaseURL:      DefaultBaseURL,
		Authenticate: credentials != nil,
	}
}
func New(credentials *tcclient.Credentials) *EC2Manager {
	return &EC2Manager{
		Credentials:  credentials,
		BaseURL:      DefaultBaseURL,
		Authenticate: credentials != nil,
	}
}
// New returns an EC2Manager client, configured to run against production. Pass in
// nil to create a client without authentication. The
// returned client is mutable, so returned settings can be altered.
//
//  eC2Manager := tcec2manager.New(nil)                              // client without authentication
//  eC2Manager.BaseURL = "http://localhost:1234/api/EC2Manager/v1"   // alternative API endpoint (production by default)
//  data, err := eC2Manager.ListWorkerTypes(.....)                   // for example, call the ListWorkerTypes(.....) API endpoint (described further down)...
//  if err != nil {
//  	// handle errors...
//  }