io.digdag.spi.SecretControlStore Maven / Gradle / Ivy
package io.digdag.spi;
import com.google.common.base.Optional;
import java.util.List;
public interface SecretControlStore
{
void setProjectSecret(int projectId, String scope, String key, String value);
void deleteProjectSecret(int projectId, String scope, String key);
List listProjectSecrets(int projectId, String scope);
interface SecretLockAction
{
T call(SecretControlStore store, Optional lockedValue);
}
T lockProjectSecret(int projectId, String scope, String key, SecretLockAction action);
}