public class OpenshiftAPIService extends Object
| Constructor and Description |
|---|
OpenshiftAPIService() |
OpenshiftAPIService(io.fabric8.elasticsearch.plugin.OpenshiftAPIService.OpenShiftClientFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
localSubjectAccessReview(String token,
String project,
String verb,
String resource,
String resourceAPIGroup,
String[] scopes)
Execute a LocalSubectAccessReview
|
Set<Project> |
projectNames(String token) |
String |
userName(String token) |
public OpenshiftAPIService()
public OpenshiftAPIService(io.fabric8.elasticsearch.plugin.OpenshiftAPIService.OpenShiftClientFactory factory)
public boolean localSubjectAccessReview(String token, String project, String verb, String resource, String resourceAPIGroup, String[] scopes)
token - a token to checkproject - the namespace to check againstverb - the verb (e.g. view)resource - the resource (e.g. pods/log)resourceAPIGroup - the group of the resource being checkedscopes - the scopes:
null - use token scopes
empty - remove scopes
list - an array of scopesCopyright © 2015–2018 Red Hat. All rights reserved.