summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/SecretStore.java
blob: 076fe7c0c533e6dcf33cb6f93f80e21a17f52be3 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container;

import com.google.common.collect.ImmutableList;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gjoranv
 */
public class SecretStore {
    private final List<Group> groups = new ArrayList<>();

    public void addGroup(String name, String environment) {
        groups.add(new Group(name, environment));
    }

    public List<Group> getGroups() {
        return ImmutableList.copyOf(groups);
    }

    public static class Group {
        public final String name;
        public final String environment;

        Group(String name, String environment) {
            this.name = name;
            this.environment = environment;
        }
    }
}