Documentation ¶
Index ¶
Constants ¶
View Source
const RevokedReasonExpired string = "expired"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyReporting ¶ added in v0.0.7
type PathConfig ¶ added in v1.4.1
type RequestKey ¶
type RequestKey struct { Name string `json:"name"` CreatedAt int64 `json:"createdAt"` UpdatedAt int64 `json:"updatedAt"` Tags []string `json:"tags"` KeyId string `json:"keyId"` Key string `json:"key"` CostLimitInUsd float64 `json:"costLimitInUsd"` CostLimitInUsdOverTime float64 `json:"costLimitInUsdOverTime"` CostLimitInUsdUnit TimeUnit `json:"costLimitInUsdUnit"` RateLimitOverTime int `json:"rateLimitOverTime"` RateLimitUnit TimeUnit `json:"rateLimitUnit"` Ttl string `json:"ttl"` SettingId string `json:"settingId"` AllowedPaths []PathConfig `json:"allowedPaths"` SettingIds []string `json:"settingIds"` }
func (*RequestKey) Validate ¶
func (rk *RequestKey) Validate() error
type ResponseKey ¶
type ResponseKey struct { Name string `json:"name"` CreatedAt int64 `json:"createdAt"` UpdatedAt int64 `json:"updatedAt"` Tags []string `json:"tags"` KeyId string `json:"keyId"` Revoked bool `json:"revoked"` Key string `json:"key"` RevokedReason string `json:"revokedReason"` CostLimitInUsd float64 `json:"costLimitInUsd"` CostLimitInUsdOverTime float64 `json:"costLimitInUsdOverTime"` CostLimitInUsdUnit TimeUnit `json:"costLimitInUsdUnit"` RateLimitOverTime int `json:"rateLimitOverTime"` RateLimitUnit TimeUnit `json:"rateLimitUnit"` Ttl string `json:"ttl"` SettingId string `json:"settingId"` AllowedPaths []PathConfig `json:"allowedPaths"` SettingIds []string `json:"settingIds"` }
func (*ResponseKey) GetSettingIds ¶ added in v1.7.0
func (rk *ResponseKey) GetSettingIds() []string
type UpdateKey ¶
type UpdateKey struct { Name string `json:"name"` UpdatedAt int64 `json:"updatedAt"` Tags []string `json:"tags"` Revoked *bool `json:"revoked"` RevokedReason string `json:"revokedReason"` SettingId string `json:"settingId"` SettingIds []string `json:"settingIds"` AllowedPaths *[]PathConfig `json:"allowedPaths,omitempty"` }
Click to show internal directories.
Click to hide internal directories.