common

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInferenceStatusWIFProvider

func ParseInferenceStatusWIFProvider(output string) (string, error)

ParseInferenceStatusWIFProvider extracts the WIF provider from fullsend inference status JSON output.

func ProvisionInference

func ProvisionInference(
	binary, token, target, project string,
	runCLI CLIRunnerFunc,
	logf func(string, ...any),
) (string, error)

ProvisionInference runs inference provision and returns the WIF provider resource name. Mirrors the per-repo driver's provisionPerRepoInference.

func RunGitHubSetup

func RunGitHubSetup(
	binary, token, target, mintURL, gcpProjectID string,
	runCLI CLIRunnerFunc,
	logf func(string, ...any),
) error

RunGitHubSetup runs fullsend github setup for the given target with the provided mint URL. If gcpProjectID is non-empty, inference provisioning is performed first and the resulting WIF provider is threaded to setup.

func RunGitHubSetupWithOpts added in v0.43.0

func RunGitHubSetupWithOpts(
	binary, token, target, mintURL, gcpProjectID string,
	opts GitHubSetupOpts,
	runCLI CLIRunnerFunc,
	logf func(string, ...any),
) error

RunGitHubSetupWithOpts is like RunGitHubSetup but accepts GitHubSetupOpts to control vendoring and fullsend-ref behaviour.

Types

type CLIRunnerFunc

type CLIRunnerFunc = func(binary, token string, args ...string) (string, error)

CLIRunnerFunc is the signature for running a fullsend CLI command.

type GitHubSetupOpts added in v0.43.0

type GitHubSetupOpts struct {
	// Vendor controls whether --vendor is passed. When false,
	// FullsendRef must be set so the shim references a remote ref
	// instead of a vendored binary.
	Vendor bool

	// FullsendRef is passed as --fullsend-ref when non-empty. Used in
	// non-vendored mode to pin the reusable workflow ref (e.g. "main").
	FullsendRef string
}

GitHubSetupOpts configures how RunGitHubSetupWithOpts invokes `fullsend github setup`. Use DefaultGitHubSetupOpts() for vendored-mode defaults (zero value is non-vendored).

func DefaultGitHubSetupOpts added in v0.43.0

func DefaultGitHubSetupOpts() GitHubSetupOpts

DefaultGitHubSetupOpts returns vendored-mode defaults.

Jump to

Keyboard shortcuts

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