jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds-labs] [JCLOUDS-500] Initial commit for docker (#57)
Date Fri, 21 Mar 2014 17:22:56 GMT
> +
> +   @Inject
> +   public DockerComputeServiceAdapter(DockerApi api, ApiContext<DockerApi> context)
{
> +      this.api = checkNotNull(api, "api");
> +      this.context = context;
> +   }
> +
> +   @Override
> +   public NodeAndInitialCredentials<Container> createNodeWithGroupEncodedIntoName(String
group, String name,
> +                                                                                  Template
template) {
> +      checkNotNull(template, "template was null");
> +      checkNotNull(template.getOptions(), "template options was null");
> +
> +      String imageId = checkNotNull(template.getImage().getId(), "template image id
must not be null");
> +      String defaultIdentity = context.getProviderMetadata().getApiMetadata().getDefaultIdentity().get();
> +      String defaultCredential = context.getProviderMetadata().getApiMetadata().getDefaultCredential().get();

Thanks for clarifying that!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r10845140
Mime
View raw message