Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultAPIURL is the default DotEnv API URL DefaultAPIURL = "https://api.dotenv.cloud" // LegacyAPIURL is the legacy DotEnv API URL for backward compatibility LegacyAPIURL = "https://api.dotenv.cloud" // TestAPIURL is the test/staging API URL TestAPIURL = "https://api.dotenv.test" )
API URLs
View Source
const ( // AuthTypeOAuth represents OAuth authentication AuthTypeOAuth = "oauth" // AuthTypeAPIKey represents API key authentication AuthTypeAPIKey = "api_key" )
Authentication types
View Source
const ( // OAuthClientID is the OAuth2 client ID for the CLI OAuthClientID = "dotenv-cli" // DefaultOAuthPort is the default port for OAuth callback DefaultOAuthPort = "8899" // OAuthTimeout is the timeout for OAuth authentication flow OAuthTimeoutMinutes = 5 )
OAuth constants
View Source
const ( // SystemOrganizationULID is the ULID for the system organization SystemOrganizationULID = "system-organization-000000" // OrganizationRefreshHours is how often to refresh organization data OrganizationRefreshHours = 24 )
Organization constants
View Source
const ( // ConfigVersion is the current configuration version ConfigVersion = "1.0" // ConfigFileName is the name of the configuration file ConfigFileName = "config.yaml" // ConfigDirName is the name of the configuration directory ConfigDirName = ".dotenv" )
Configuration file constants
View Source
const ( // ErrNoCurrentAccount is returned when no account is selected ErrNoCurrentAccount = "no current account selected" // ErrNoOrganization is returned when no organization is selected ErrNoOrganization = "no organization selected" // ErrTokenExpired is returned when the OAuth token is expired ErrTokenExpired = "authentication token expired" // ErrInvalidAPIKey is returned when the API key format is invalid. // #nosec G101 — error message string, not a credential. ErrInvalidAPIKey = "invalid API key format" )
Error messages
View Source
const (
// TokenTypeBearer is the bearer token type used in OAuth
TokenTypeBearer = "Bearer"
)
Token types
View Source
const (
// UserAgent is the User-Agent string used for HTTP requests
UserAgent = "dotenv-cli"
)
User Agent
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.