Versions in this module Expand all Collapse all v0 v0.0.1-dev Jul 21, 2026 v0.0.0 Jun 25, 2026 Changes in this version + var ErrConfigFileNotFound = errors.New("config file not found") + var ErrEmptyPath = errors.New("empty path") + var ErrEmptyProfile = errors.New("empty profile") + var ErrInvalidProfileName = errors.New("invalid profile name") + var ErrProfileNotFound = errors.New("profile not found") + func DefaultConfigFile() string + func ListProfiles(path string) ([]string, error) + type Profile struct + AccountID string + ActionsIDTokenRequestToken Secret + ActionsIDTokenRequestURL string + AuthType string + AzureClientID string + AzureClientSecret Secret + AzureEnvironment string + AzureLoginAppID string + AzureResourceID string + AzureTenantID string + AzureUseMSI *bool + ClientID string + ClientSecret Secret + ClusterID string + DatabricksCLIPath string + DiscoveryURL string + Extra map[string]string + GoogleCredentials Secret + GoogleServiceAccount string + Host string + MetadataServiceURL Secret + Name string + OIDCTokenEnv string + OIDCTokenFilePath string + Password Secret + ServerlessComputeID string + Token Secret + TokenAudience string + Username string + WarehouseID string + WorkspaceID string + func Resolve(opts ...ResolveOption) (*Profile, error) + func (p *Profile) SaveToFile(path string) error + type ResolveOption func(o *options) error + func WithDefaultProfile() ResolveOption + func WithEnv() ResolveOption + func WithFile(path string) ResolveOption + func WithProfile(profile string) ResolveOption + type Secret string + func (s Secret) GoString() string + func (s Secret) LogValue() slog.Value + func (s Secret) MarshalJSON() ([]byte, error) + func (s Secret) MarshalText() ([]byte, error) + func (s Secret) String() string