func (m *MachinesClient) Get(ctx context.Context, machineID *identity.ID) (*apitypes.MachineSegment, error) {
	req, err := m.client.NewRequest("GET", "/machines/"+(*machineID).String(), nil, nil)
	if err != nil {
		log.Printf("Error building GET Machines Request: %s", err)
		return nil, err
	}

	resp := &apitypes.MachineSegment{}
	_, err = m.client.Do(ctx, req, resp)
	if err != nil {
		log.Printf("Failed to retrieve machine: %s", err)
		return nil, err
	}

	return resp, nil
}
// Get requests a single machine from the registry
Get requests a single machine from the registry
// Get requests a single machine from the registry
func (m *MachinesClient) Get(ctx context.Context, machineID *identity.ID) (*apitypes.MachineSegment, error) {
	req, err := m.client.NewRequest("GET", "/machines/"+(*machineID).String(), nil, nil)
	if err != nil {
		log.Printf("Error building GET Machines Request: %s", err)
		return nil, err
	}
	resp := &apitypes.MachineSegment{}
	_, err = m.client.Do(ctx, req, resp)
	if err != nil {
		log.Printf("Failed to retrieve machine: %s", err)
		return nil, err
	}
	return resp, nil
}
func ( m * MachinesClient ) Get ( ctx context . Context , machineID * identity . ID ) ( * apitypes . MachineSegment , error ) { req , err := m . client . NewRequest ( " " , " " + ( * machineID ) . String ( ) , nil , nil ) if err != nil { log . Printf ( " " , err ) return nil , err } resp := & apitypes . MachineSegment { } _ , err = m . client . Do ( ctx , req , resp ) if err != nil { log . Printf ( " " , err ) return nil , err } return resp , nil }
Get requests a single machine from the registry
Get requests a single machine from the registry