ciexamples

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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 ciexamples embeds the CI pipeline examples under docs/ci-examples, so the dashboard, CLI and API serve exactly the files the documentation links to.

Index

Constants

View Source
const (
	AuthOIDC  = "oidc"
	AuthToken = "token"
)

Auth modes: oidc swaps the job identity for a short-lived token, token uses a stored deployer token.

View Source
const AppPlaceholder = "my-app"

AppPlaceholder is the app name used in every example; Content swaps it for the real app. Repository owners stay as OWNER/REPO so a pasted file can never name a real account.

Variables

This section is empty.

Functions

func Content

func Content(t Template, app string) (string, error)

Content returns the example text with the placeholder app name replaced by app.

Types

type Template

type Template struct {
	ID     string `json:"id"`
	File   string `json:"file"`
	Target string `json:"target"`
	Auth   string `json:"auth"`
}

Template is one provider's example pipeline.

func Templates

func Templates() ([]Template, error)

Templates lists the examples in manifest order.

Jump to

Keyboard shortcuts

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