Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 088281e3f2e370391a32139f8b64760681a3c0f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*******************************************************************************
 * Copyright (c) 2015, 2016 Red Hat.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Red Hat - Initial Contribution
 *******************************************************************************/

package org.eclipse.linuxtools.docker.core;

import java.util.List;

/**
 * Manager that takes care of loading and saving connections settings in a file.
 */
public interface IDockerConnectionStorageManager {

	/**
	 * Loads connections from the underlying file
	 * 
	 * @return {@link List} of {@link IDockerConnection}
	 */
	List<IDockerConnection> loadConnections();

	/**
	 * Saves the given {@link List} of {@link IDockerConnection} into a file
	 * 
	 * @param connections
	 *            the connections to save
	 */
	void saveConnections(List<IDockerConnection> connections);

}

Back to the top