Documentation
¶
Index ¶
- func ParseInferenceStatusWIFProvider(output string) (string, error)
- func ProvisionInference(binary, token, target, project string, runCLI CLIRunnerFunc, ...) (string, error)
- func RunGitHubSetup(binary, token, target, mintURL, gcpProjectID string, runCLI CLIRunnerFunc, ...) error
- func RunGitHubSetupWithOpts(binary, token, target, mintURL, gcpProjectID string, opts GitHubSetupOpts, ...) error
- type CLIRunnerFunc
- type GitHubSetupOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseInferenceStatusWIFProvider ¶
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 ¶
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.