aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/aws/EnclaveAccessService.java
blob: 361898ce05703b058566e8c79c3fd5b38c8feee7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.aws;

import com.yahoo.config.provision.CloudAccount;

import java.util.Set;

/**
 * @author jonmv
 */
public interface EnclaveAccessService {

    /**
     * Ensures the given enclave accounts have access to resources they require to function.
     * @return the degree to which the run was successful - a number between 0 (no success), to 1 (complete success)
     */
    double allowAccessFor(Set<CloudAccount> accounts);

}