Documentation ¶
Index ¶
- func CILogin(config *config.Config, apiKey string, name string) error
- func GuestLogin(config *config.Config) (string, error)
- func InteractiveLogin(config *config.Config) error
- func Login(config *config.Config, input io.Reader) error
- func SuccessMessage(displayName string, email string, organizationName string, teamName string, ...) string
- type Links
- type PollAPIKeyResponse
- type ValidateAPIKeyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InteractiveLogin ¶
InteractiveLogin lets the user set configuration on the command line
Types ¶
type PollAPIKeyResponse ¶
type PollAPIKeyResponse struct { Claimed bool `json:"claimed"` UserID string `json:"user_id"` UserName string `json:"user_name"` UserEmail string `json:"user_email"` OrganizationName string `json:"organization_name"` OrganizationID string `json:"organization_id"` TeamID string `json:"team_id"` TeamName string `json:"team_name"` TeamMode string `json:"team_mode"` APIKey string `json:"key"` ClientID string `json:"client_id"` }
PollAPIKeyResponse returns the data of the polling client login
func PollForKey ¶
func PollForKey(pollURL string, interval time.Duration, maxAttempts int) (*PollAPIKeyResponse, error)
PollForKey polls Hookdeck at the specified interval until either the API key is available or we've reached the max attempts.
type ValidateAPIKeyResponse ¶ added in v0.6.1
type ValidateAPIKeyResponse struct { UserID string `json:"user_id"` UserName string `json:"user_name"` UserEmail string `json:"user_email"` OrganizationName string `json:"organization_name"` OrganizationID string `json:"organization_id"` TeamID string `json:"team_id"` TeamName string `json:"team_name_no_org"` TeamMode string `json:"team_mode"` ClientID string `json:"client_id"` }
ValidateAPIKeyResponse returns the user and team associated with a key
func ValidateKey ¶ added in v0.6.1
func ValidateKey(baseURL string, key string, teamId string) (*ValidateAPIKeyResponse, error)
Click to show internal directories.
Click to hide internal directories.