Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct {
ID string `json:"id"`
OrgID *string `json:"org_id,omitempty"`
OwnerID *string `json:"owner_id,omitempty"`
OwnerType string `json:"owner_type"`
KeyPrefix string `json:"key_prefix"`
Name string `json:"name"`
Scopes []string `json:"scopes"`
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
CreatedAt time.Time `json:"created_at"`
}
type CreateAPIKeyRequest ¶
type CreateAPIKeyResponse ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, req CreateAPIKeyRequest) (*CreateAPIKeyResponse, error)
Click to show internal directories.
Click to hide internal directories.