config

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

View Source
const (
	WincredCredHelper       = "wincred"
	OsxkeychainCredHelper   = "osxkeychain"
	SecretserviceCredHelper = "secretservice"
	PassCredHelper          = "pass"
	FileCredHelper          = "file"
	SqliteCredHelper        = "sqlite"

	GPTScriptHelperPrefix = "gptscript-credential-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig types.AuthConfig

func (AuthConfig) MarshalJSON

func (a AuthConfig) MarshalJSON() ([]byte, error)

func (*AuthConfig) UnmarshalJSON

func (a *AuthConfig) UnmarshalJSON(data []byte) error

type CLIConfig

type CLIConfig struct {
	Auths            map[string]AuthConfig `json:"auths,omitempty"`
	CredentialsStore string                `json:"credsStore,omitempty"`
	GatewayURL       string                `json:"gatewayURL,omitempty"`
	Integrations     map[string]string     `json:"integrations,omitempty"`
	// contains filtered or unexported fields
}

func ReadCLIConfig

func ReadCLIConfig(gptscriptConfigFile string) (*CLIConfig, error)

func (*CLIConfig) GetAuthConfigs

func (c *CLIConfig) GetAuthConfigs() map[string]types.AuthConfig

func (*CLIConfig) GetFilename

func (c *CLIConfig) GetFilename() string

func (*CLIConfig) Sanitize

func (c *CLIConfig) Sanitize() *CLIConfig

func (*CLIConfig) Save

func (c *CLIConfig) Save() error

Jump to

Keyboard shortcuts

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