Integration with a C application

Rich Megginson rmeggins at redhat.com
Fri May 7 14:16:04 UTC 2010


Adam Young wrote:
> On 05/06/2010 06:49 PM, Rich Megginson wrote:
>   
>> Devan Goodwin wrote:
>>    
>>     
>>> On Thu, May 6, 2010 at 4:41 PM, Rich Megginson<rmeggins at redhat.com>  wrote:
>>>
>>>      
>>>       
>>>> I am interested in integrating my C application with Candlepin.
>>>> Specifically, I would like to be able to activate certain features in
>>>> the product if there is an entitlement for those features.
>>>>
>>>>        
>>>>         
>>> Hi Rich, what kind of functionality/architecture are you thinking?
>>>
>>>      
>>>       
>> For directory server, which I guess would be the Product.  We may
>> develop plugins (Features) that the Owner would have to have an
>> entitlement for in order to use.  When the plugin starts, it would check
>> to see if there is an entitlement for this plugin/Feature.
>>    
>>     
>>> Really depends what you want to do but in general, this would be done
>>> by first modeling your features as Products in Candlepin, who has
>>> access to them as Owner with Users (accounts), and Pools defining what
>>> they have access too and in what quantity. Once that's modelled your C
>>> application would register with Candlepin as a Consumer using simple
>>> REST HTTP calls,
>>>      
>>>       
>> Is there a C API for this?
>>    
>>     
>
> We don't have our own C Api, but you shouldn't need one.  Basically, 
> you'll want to use libcurl to talk to the server, and something like 
> libjson to parse the results.
>   
Ok.  I see these C libraries.  I'll start looking at the APIs.
>>> and similarly "phone home" to Candlepin server to see
>>> what features should be enabled.
>>>
>>>      
>>>       
>> Is there a plan to have a centralized configuration for this, or would
>> each Product have to specify the Candlepin URL and other configuration
>> parameters?
>>     
Is this left up to the individual products to do?

Is there a test server I can use, or would it be easier to just build my 
own server from source for testing purposes?
>>    
>>     
>>> Some wild assumptions on my part in that, some things that probably
>>> need to be refined in the code to allow them, but in any case let us
>>> know some more details if you'd like to chat further and we can try to
>>> help out!
>>>
>>> Cheers,
>>>
>>> Devan
>>>
>>>
>>>
>>>      
>>>       
>> _______________________________________________
>> candlepin mailing list
>> candlepin at lists.fedorahosted.org
>> https://fedorahosted.org/mailman/listinfo/candlepin
>>    
>>     
>
> _______________________________________________
> candlepin mailing list
> candlepin at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/candlepin
>   




More information about the candlepin mailing list