vertex

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package vertex implements the inference.Provider interface for Google Cloud Vertex AI using Workload Identity Federation with GitHub OIDC.

Index

Constants

View Source
const (
	// SecretProjectID is the repo secret name for the GCP project ID.
	SecretProjectID = "FULLSEND_GCP_PROJECT_ID"

	// VariableRegion is the repo variable name for the GCP region.
	VariableRegion = "FULLSEND_GCP_REGION"

	// SecretWIFProvider is the repo secret for the full WIF provider resource name.
	SecretWIFProvider = "FULLSEND_GCP_WIF_PROVIDER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectID   string // required
	Region      string // required: GCP region (e.g. global)
	WIFProvider string // full WIF provider resource name
}

Config holds the inputs for Vertex credential provisioning.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider implements inference.Provider for Vertex AI.

func New

func New(cfg Config) *Provider

New creates a Vertex Provider with the given config.

func NewAnalyzeOnly

func NewAnalyzeOnly() *Provider

NewAnalyzeOnly creates a Provider that only supports SecretNames() and Name(). Calling Provision() on this provider returns an error.

func (*Provider) Name

func (p *Provider) Name() string

Name returns "vertex".

func (*Provider) Provision

func (p *Provider) Provision(ctx context.Context) (map[string]string, error)

Provision acquires GCP credentials and returns them as secrets.

func (*Provider) SecretNames

func (p *Provider) SecretNames() []string

SecretNames returns the secret names this provider manages.

func (*Provider) Variables

func (p *Provider) Variables() map[string]string

Variables returns non-secret name/value pairs to store as repo variables.

Jump to

Keyboard shortcuts

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