本文整理了Java中com.netflix.spinnaker.orca.pipeline.model.Stage.decodeBase64()
方法的一些代码示例,展示了Stage.decodeBase64()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stage.decodeBase64()
方法的具体详情如下:
包路径:com.netflix.spinnaker.orca.pipeline.model.Stage
类名称:Stage
方法名:decodeBase64
暂无
代码示例来源:origin: com.netflix.spinnaker.orca/orca-core
public <O> O decodeBase64(String pointer, Class<O> type) {
return decodeBase64(pointer, type, objectMapper);
}
代码示例来源:origin: com.netflix.spinnaker.orca/orca-pipelinetemplate
@Nonnull
@Override
public List<Stage> aroundStages(@Nonnull Stage stage) {
if (front50Service == null) {
return Collections.emptyList();
}
if (!stage.getContext().containsKey("pipelineTemplate")) {
throw new IllegalArgumentException("Missing required task parameter (pipelineTemplate)");
}
if (!(stage.getContext().get("pipelineTemplate") instanceof String)) {
throw new IllegalArgumentException("'pipelineTemplate' context key must be a base64-encoded string: Ensure you're on the most recent version of gate");
}
PipelineTemplate pipelineTemplate = stage.decodeBase64(
"/pipelineTemplate",
PipelineTemplate.class,
pipelineTemplateObjectMapper
);
List<Map<String, Object>> dependentPipelines = front50Service.getPipelineTemplateDependents(pipelineTemplate.getId(), true);
return dependentPipelines.stream()
.map(pipeline -> configureSavePipelineStage(stage, pipeline))
.collect(Collectors.toList());
}
代码示例来源:origin: com.netflix.spinnaker.orca/orca-pipelinetemplate
PipelineTemplate pipelineTemplate = (PipelineTemplate) stage.decodeBase64(
"/pipelineTemplate",
PipelineTemplate.class,
代码示例来源:origin: com.netflix.spinnaker.orca/orca-pipelinetemplate
PipelineTemplate pipelineTemplate = stage.decodeBase64(
"/pipelineTemplate",
PipelineTemplate.class,
Response response = front50Service.savePipelineTemplate((Map<String, Object>) stage.decodeBase64(
"/pipelineTemplate",
Map.class,
代码示例来源:origin: com.netflix.spinnaker.orca/orca-pipelinetemplate
V2PipelineTemplate pipelineTemplate = stage.decodeBase64(
"/pipelineTemplate",
V2PipelineTemplate.class,
(Map<String, Object>) stage.decodeBase64("/pipelineTemplate", Map.class, pipelineTemplateObjectMapper));
代码示例来源:origin: com.netflix.spinnaker.orca/orca-front50
Map<String, Object> pipeline = (Map<String, Object>) stage.decodeBase64("/pipeline", Map.class);
代码示例来源:origin: com.netflix.spinnaker.orca/orca-pipelinetemplate
PipelineTemplate pipelineTemplate = (PipelineTemplate) stage.decodeBase64(
"/pipelineTemplate",
PipelineTemplate.class,
(Map<String, Object>) stage.decodeBase64("/pipelineTemplate", Map.class)
);
代码示例来源:origin: com.netflix.spinnaker.orca/orca-pipelinetemplate
V2PipelineTemplate pipelineTemplate = stage.decodeBase64(
"/pipelineTemplate",
V2PipelineTemplate.class,
version, (Map<String, Object>) stage.decodeBase64("/pipelineTemplate", Map.class, pipelineTemplateObjectMapper));
代码示例来源:origin: com.netflix.spinnaker.orca/orca-front50
pipeline = (Map<String, Object>) stage.decodeBase64("/pipeline", Map.class);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("pipeline must be encoded as base64", e);
内容来源于网络,如有侵权,请联系作者删除!