gitlab

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Windows Platform = "windows"
	Linux   Platform = "linux"
	Darwin  Platform = "darwin"

	Arm64 Arch = "arm64"
	Amd64 Arch = "amd64"
	Arm   Arch = "arm"
)

Functions

func CreateRunner

func CreateRunner(ctx *pulumi.Context, args *GitLabRunnerArgs) (pulumi.StringOutput, error)

CreateRunner creates a GitLab UserRunner via Pulumi and returns auth token. This function should be called during Pulumi stack deployment (inside deploy() functions). Supports both project runners (with ProjectID) and group runners (with GroupID).

func GetToken

func GetToken() string

func Init

func Init(args *GitLabRunnerArgs)

func SetAuthToken

func SetAuthToken(token string)

SetAuthToken sets the authentication token in the global runner args. This is called during Pulumi deployment after the runner is created.

Types

type Arch

type Arch string

type GitLabRunnerArgs

type GitLabRunnerArgs struct {
	GitLabPAT string    // Personal Access Token for Pulumi GitLab provider (input)
	ProjectID string    // GitLab project ID for project runner registration (mutually exclusive with GroupID)
	GroupID   string    // GitLab group ID for group runner registration (mutually exclusive with ProjectID)
	URL       string    // GitLab instance URL (e.g., https://gitlab.com)
	Tags      []string  // Runner tags for job routing (e.g., ["linux", "aws", "spot"])
	Name      string    // Runner name/description (auto-generated from run ID)
	Platform  *Platform // Target platform
	Arch      *Arch     // Target architecture
	User      string    // OS user to run as
	AuthToken string    // Runner authentication token (set by Pulumi during deployment)
}

func GetRunnerArgs

func GetRunnerArgs() *GitLabRunnerArgs

func (*GitLabRunnerArgs) GetSetupScriptTemplate

func (args *GitLabRunnerArgs) GetSetupScriptTemplate() string

func (*GitLabRunnerArgs) GetUserDataValues

func (args *GitLabRunnerArgs) GetUserDataValues() *integrations.UserDataValues

type Platform

type Platform string

Jump to

Keyboard shortcuts

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