Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(cfg *Config) *Authenticator
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate()
func (*Authenticator) Check ¶
func (a *Authenticator) Check() (bool, error)
type Config ¶
type Config struct { // The API key to use for authentication. APIKey string `yaml:"api_key,omitempty"` // The project ID to use for authentication. ProjectID string `yaml:"project_id,omitempty"` // Whether to enable verbose logging. Verbose bool `yaml:"verbose,omitempty"` // The base URL for API requests. APIBaseURL string `yaml:"api_base_url,omitempty"` // The host header to set for API requests. APIBaseHost string `yaml:"api_base_host,omitempty"` // The URL for the dashboard UI. DashboardURL string `yaml:"dashboard_url,omitempty"` }
Click to show internal directories.
Click to hide internal directories.