assets

package
v0.0.0-...-96442b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package assets provides embedded resources for the divekit CLI including CI templates, scripts, and example files used for project initialization and distribution.

Index

Constants

This section is empty.

Variables

View Source
var DefaultEvaluationCIYaml []byte

DefaultEvaluationCIYaml contains the default GitLab CI configuration for evaluation repositories.

View Source
var DefaultMainCIYaml []byte

DefaultMainCIYaml contains the default GitLab CI configuration for work repositories.

View Source
var DefaultWorkEvalTriggerYaml []byte

DefaultWorkEvalTriggerYaml contains the default trigger job included by work repositories.

View Source
var HasReadmeExampleGo []byte

HasReadmeExampleGo contains a README check example in Go.

View Source
var HasReadmeExampleJS []byte

HasReadmeExampleJS contains a README check example in JavaScript.

View Source
var HasReadmeExampleJava []byte

HasReadmeExampleJava contains a README check example in Java.

View Source
var HasReadmeExampleKotlin []byte

HasReadmeExampleKotlin contains a README check example in Kotlin.

View Source
var HasReadmeExampleLua []byte

HasReadmeExampleLua contains a README check example in Lua.

View Source
var HasReadmeExamplePython []byte

HasReadmeExamplePython contains a README check example in Python.

View Source
var HasReadmeExampleShell []byte

HasReadmeExampleShell contains a README check example in Shell script.

View Source
var HasReadmeExampleTS []byte

HasReadmeExampleTS contains a README check example in TypeScript.

View Source
var JavaTransformers []byte

JavaTransformers contains Lua transformation scripts for Java projects.

View Source
var RunWorkflowHasReadmeGoManifest []byte

RunWorkflowHasReadmeGoManifest contains a Go run workflow manifest example.

View Source
var RunWorkflowHasReadmeGoMod = []byte("module divekit_has_readme_workflow\n\ngo 1.22\n")

RunWorkflowHasReadmeGoMod contains a Go run workflow module file example.

View Source
var RunWorkflowHasReadmeGoWorkflow []byte

RunWorkflowHasReadmeGoWorkflow contains a Go run workflow example.

View Source
var RunWorkflowHasReadmeJSManifest []byte

RunWorkflowHasReadmeJSManifest contains a JavaScript run workflow manifest example.

View Source
var RunWorkflowHasReadmeJSWorkflow []byte

RunWorkflowHasReadmeJSWorkflow contains a JavaScript run workflow example.

View Source
var RunWorkflowHasReadmeJavaManifest []byte

RunWorkflowHasReadmeJavaManifest contains a Java run workflow manifest example.

View Source
var RunWorkflowHasReadmeJavaWorkflow []byte

RunWorkflowHasReadmeJavaWorkflow contains a Java run workflow example.

View Source
var RunWorkflowHasReadmeKotlinManifest []byte

RunWorkflowHasReadmeKotlinManifest contains a Kotlin run workflow manifest example.

View Source
var RunWorkflowHasReadmeKotlinWorkflow []byte

RunWorkflowHasReadmeKotlinWorkflow contains a Kotlin run workflow example.

View Source
var RunWorkflowHasReadmeLua []byte

RunWorkflowHasReadmeLua contains a Lua run workflow example.

View Source
var RunWorkflowHasReadmePythonManifest []byte

RunWorkflowHasReadmePythonManifest contains a Python run workflow manifest example.

View Source
var RunWorkflowHasReadmePythonWorkflow []byte

RunWorkflowHasReadmePythonWorkflow contains a Python run workflow example.

View Source
var RunWorkflowHasReadmeShellManifest []byte

RunWorkflowHasReadmeShellManifest contains a Shell run workflow manifest example.

View Source
var RunWorkflowHasReadmeShellWorkflow []byte

RunWorkflowHasReadmeShellWorkflow contains a Shell run workflow example.

View Source
var RunWorkflowHasReadmeTSManifest []byte

RunWorkflowHasReadmeTSManifest contains a TypeScript run workflow manifest example.

View Source
var RunWorkflowHasReadmeTSWorkflow []byte

RunWorkflowHasReadmeTSWorkflow contains a TypeScript run workflow example.

Functions

func PinsCLIImage

func PinsCLIImage(content []byte) bool

PinsCLIImage reports whether rendering the asset pins a CLI version and with it the CLI runtime image of that version.

func RenderDevelopmentEvaluationPipelineAsset

func RenderDevelopmentEvaluationPipelineAsset(content []byte) ([]byte, error)

RenderDevelopmentEvaluationPipelineAsset renders an asset for a build that has no release version. No CLI runtime image is published for such a build, so the CLI jobs start in the base image of the pipeline, which still provides wget for a CLI fetched from DIVEKIT_CLI_URL.

It fails when the template no longer has the lines it rewrites. Rendering the release image anyway would pin an image that does not exist, and the caller would warn that it had not.

func RenderEvaluationPipelineAsset

func RenderEvaluationPipelineAsset(content []byte, cliVersion string) []byte

RenderEvaluationPipelineAsset replaces runtime placeholders in embedded evaluation pipeline assets before they are written into projects.

It is meant for release versions, which pin the CLI runtime image published for that release. Courses consume the rendered file, so that rendering is nothing but the placeholder substitution. A build without a release version goes through RenderDevelopmentEvaluationPipelineAsset instead.

Types

type EvaluationPipelineTemplateError

type EvaluationPipelineTemplateError struct {
	apperror.Carrier
}

EvaluationPipelineTemplateError reports that the evaluation pipeline template lost a line that rendering for a development build rewrites. Callers match it with errors.As to tell a template drift from other render failures.

func (*EvaluationPipelineTemplateError) Error

func (*EvaluationPipelineTemplateError) Unwrap

Unwrap returns the cause. A nil receiver has no cause, so errors.Is does not panic on a wrapped typed nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL