All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openshift.internal.restclient.model.kubeclient.KubeClientConfig Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2016 Red Hat, Inc.
 * Distributed under license by Red Hat, Inc. All rights reserved.
 * This program is 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, Inc. - initial API and implementation
 ******************************************************************************/

package com.openshift.internal.restclient.model.kubeclient;

import java.util.ArrayList;
import java.util.Collection;

import com.openshift.restclient.model.kubeclient.ICluster;
import com.openshift.restclient.model.kubeclient.IContext;
import com.openshift.restclient.model.kubeclient.IKubeClientConfig;
import com.openshift.restclient.model.kubeclient.IUser;

/**
 * Kube Client config impl
 * 
 *
 */
public class KubeClientConfig implements IKubeClientConfig {

    private Collection clusters = new ArrayList<>();
    private Collection contexts = new ArrayList<>();
    private String currentContext = "";
    private Collection users = new ArrayList<>();

    public void setApiVersion(String apiVersion) {

    }

    @Override
    public Collection getClusters() {
        return clusters;
    }

    public void setClusters(Collection clusters) {
        this.clusters = clusters;
    }

    @Override
    public Collection getContexts() {
        return contexts;
    }

    public void setContexts(Collection contexts) {
        this.contexts = contexts;
    }

    @Override
    public String getCurrentContext() {
        // TODO Auto-generated method stub
        return currentContext;
    }

    public void setCurrentContext(String currentContext) {
        this.currentContext = currentContext;
    }

    @Override
    public Collection getUsers() {
        return users;
    }

    public void setUsers(Collection users) {
        this.users = users;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy