github.com/didip/deis@v1.4.1/deisctl/backend/fleet/fleet.go (about)

     1  package fleet
     2  
     3  import "github.com/coreos/fleet/client"
     4  
     5  // FleetClient used to wrap Fleet API calls
     6  type FleetClient struct {
     7  	Fleet client.API
     8  }
     9  
    10  // NewClient returns a client used to communicate with Fleet
    11  // using the Registry API
    12  func NewClient() (*FleetClient, error) {
    13  	client, err := getRegistryClient()
    14  	if err != nil {
    15  		return nil, err
    16  	}
    17  	// set global client
    18  	cAPI = client
    19  	return &FleetClient{Fleet: client}, nil
    20  }