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 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)
Click to show internal directories.
Click to hide internal directories.