|
| 1 | +/** |
| 2 | + * Copyright (c) 2018-2020, Mihai Emil Andronache |
| 3 | + * All rights reserved. |
| 4 | + * Redistribution and use in source and binary forms, with or without |
| 5 | + * modification, are permitted provided that the following conditions are met: |
| 6 | + * 1)Redistributions of source code must retain the above copyright notice, |
| 7 | + * this list of conditions and the following disclaimer. |
| 8 | + * 2)Redistributions in binary form must reproduce the above copyright notice, |
| 9 | + * this list of conditions and the following disclaimer in the documentation |
| 10 | + * and/or other materials provided with the distribution. |
| 11 | + * 3)Neither the name of docker-java-api nor the names of its |
| 12 | + * contributors may be used to endorse or promote products derived from |
| 13 | + * this software without specific prior written permission. |
| 14 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 15 | + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 16 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 17 | + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 18 | + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 19 | + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 20 | + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 21 | + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 22 | + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 23 | + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 24 | + * POSSIBILITY OF SUCH DAMAGE. |
| 25 | + */ |
| 26 | +package com.amihaiemil.docker; |
| 27 | + |
| 28 | +import java.net.URI; |
| 29 | + |
| 30 | +/** |
| 31 | + * RESTful Execs API. |
| 32 | + * @author Mihai Andronache (amihaiemil@gmail.com) |
| 33 | + * @version $Id$ |
| 34 | + * @since 0.0.12 |
| 35 | + */ |
| 36 | +final class RtExecs implements Execs { |
| 37 | + |
| 38 | + /** |
| 39 | + * Base URI for Images API. |
| 40 | + */ |
| 41 | + private final URI baseUri; |
| 42 | + |
| 43 | + /** |
| 44 | + * Docker API. |
| 45 | + */ |
| 46 | + private final Docker docker; |
| 47 | + |
| 48 | + /** |
| 49 | + * Ctor. |
| 50 | + * @param uri The URI for this Images API. |
| 51 | + * @param dkr The docker entry point. |
| 52 | + * @checkstyle ParameterNumber (10 lines) |
| 53 | + */ |
| 54 | + RtExecs(final URI uri, final Docker dkr) { |
| 55 | + this.baseUri = uri; |
| 56 | + this.docker = dkr; |
| 57 | + } |
| 58 | + |
| 59 | + @Override |
| 60 | + public Exec get(final String execId) { |
| 61 | + return null; |
| 62 | + } |
| 63 | + |
| 64 | + @Override |
| 65 | + public Docker docker() { |
| 66 | + return this.docker; |
| 67 | + } |
| 68 | +} |
0 commit comments