Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FastlyToken ¶
type FastlyToken struct { ID string `json:"id"` AccessToken string `json:"access_token"` Name string `json:"name"` UserID string `json:"user_id"` ServiceID string `json:"service_id"` ExpiresAt time.Time `json:"expires_at"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Scope string `json:"scope"` Services []string `json:"services"` }
FastlyToken is the response of Fastly create token API request
func CreateFastlyToken ¶
func CreateFastlyToken(otp string, formData map[string][]string) (*FastlyToken, error)
CreateFastlyToken uses Fastly API to create an API token
Click to show internal directories.
Click to hide internal directories.