secretsources

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HFTokenPath = ".cache/huggingface/token"

Variables

View Source
var GetHuggingfaceToken string

Functions

func CredentialsFill

func CredentialsFill(provider CredentialProvider, sources map[string]string) (map[string]string, error)

CredentialsFill calls the CredentialsProvider for each source and returns a new source map with templating as well as a map of credentials for the templated values.

Types

type CredentialProvider

type CredentialProvider interface {
	Credentials(url string) (map[string]string, error)
}

type GitCredentials

type GitCredentials struct {
	Helper string
}

func (*GitCredentials) Credentials

func (c *GitCredentials) Credentials(url string) (map[string]string, error)

type HuggingfaceCredentials

type HuggingfaceCredentials struct {
	Home string
	// contains filtered or unexported fields
}

func (*HuggingfaceCredentials) Credentials

func (c *HuggingfaceCredentials) Credentials(url string) (map[string]string, error)

Jump to

Keyboard shortcuts

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