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, teamName string, isConsole bool) 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"`
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 ¶
type ValidateAPIKeyResponse struct {
UserID string `json:"user_id"`
UserName string `json:"user_name"`
TeamID string `json:"team_id"`
TeamName string `json:"team_name"`
TeamMode string `json:"team_mode"`
ClientID string `json:"client_id"`
}
ValidateAPIKeyResponse returns the user and team associated with a key
func ValidateKey ¶
func ValidateKey(baseURL string, key string, teamId string) (*ValidateAPIKeyResponse, error)
Click to show internal directories.
Click to hide internal directories.