func NewClient(cfg *config.Config) *Client {
	c := &Client{
		client: &http.Client{
			Transport: &http.Transport{
				Dial: func(network, address string) (net.Conn, error) {
					return net.Dial("unix", cfg.SocketPath)
				},
			},
		},
	}

	c.Orgs = &OrgsClient{client: c}
	c.Users = &UsersClient{client: c}
	c.Machines = &MachinesClient{client: c}
	c.Profiles = &ProfilesClient{client: c}
	c.Teams = &TeamsClient{client: c}
	c.Memberships = &MembershipsClient{client: c}
	c.Invites = &InvitesClient{client: c}
	c.Keypairs = &KeypairsClient{client: c}
	c.Session = &SessionClient{client: c}
	c.Projects = &ProjectsClient{client: c}
	c.Services = &ServicesClient{client: c}
	c.Environments = &EnvironmentsClient{client: c}
	c.Credentials = &CredentialsClient{client: c}
	c.Policies = &PoliciesClient{client: c}
	c.Worklog = &WorklogClient{client: c}
	c.Version = &VersionClient{client: c}

	return c
}
// NewClient returns a new Client.
NewClient returns a new Client.
// NewClient returns a new Client .
func NewClient(cfg *config.Config) *Client {
	c := &Client{
		client: &http.Client{
			Transport: &http.Transport{
				Dial: func(network, address string) (net.Conn, error) {
					return net.Dial("unix", cfg.SocketPath)
				},
			},
		},
	}
	c.Orgs = &OrgsClient{client: c}
	c.Users = &UsersClient{client: c}
	c.Machines = &MachinesClient{client: c}
	c.Profiles = &ProfilesClient{client: c}
	c.Teams = &TeamsClient{client: c}
	c.Memberships = &MembershipsClient{client: c}
	c.Invites = &InvitesClient{client: c}
	c.Keypairs = &KeypairsClient{client: c}
	c.Session = &SessionClient{client: c}
	c.Projects = &ProjectsClient{client: c}
	c.Services = &ServicesClient{client: c}
	c.Environments = &EnvironmentsClient{client: c}
	c.Credentials = &CredentialsClient{client: c}
	c.Policies = &PoliciesClient{client: c}
	c.Worklog = &WorklogClient{client: c}
	c.Version = &VersionClient{client: c}
	return c
}
func NewClient ( cfg * config . Config ) * Client { c := & Client { client : & http . Client { Transport : & http . Transport { Dial : func ( network , address string ) ( net . Conn , error ) { return net . Dial ( " " , cfg . SocketPath ) } , } , } , } c . Orgs = & OrgsClient { client : c } c . Users = & UsersClient { client : c } c . Machines = & MachinesClient { client : c } c . Profiles = & ProfilesClient { client : c } c . Teams = & TeamsClient { client : c } c . Memberships = & MembershipsClient { client : c } c . Invites = & InvitesClient { client : c } c . Keypairs = & KeypairsClient { client : c } c . Session = & SessionClient { client : c } c . Projects = & ProjectsClient { client : c } c . Services = & ServicesClient { client : c } c . Environments = & EnvironmentsClient { client : c } c . Credentials = & CredentialsClient { client : c } c . Policies = & PoliciesClient { client : c } c . Worklog = & WorklogClient { client : c } c . Version = & VersionClient { client : c } return c }
NewClient returns a new Client.
NewClient returns a new Client .