Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 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 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
Click to show internal directories.
Click to hide internal directories.