provider

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package provider provides a factory for creating vault provider clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context) (vault.Provider, error)

NewClient creates a vault provider client based on stored configuration. It reads the provider type from the keychain and returns the appropriate client.

func NewClientFromURL

func NewClientFromURL(repoURL, token string) (vault.Provider, error)

NewClientFromURL creates a vault provider client from a repository URL and token. This is used during initialization to determine the correct provider.

func NewClientWithToken added in v0.1.13

func NewClientWithToken(_ context.Context, token string) (vault.Provider, error)

NewClientWithToken creates a vault provider client from stored configuration but with the supplied token instead of the stored one. It is used to validate a new token before persisting it.

func StoreProviderInfo

func StoreProviderInfo(providerType, repoURL string) error

StoreProviderInfo stores the provider type and repository info in the keychain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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