Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiAuth ¶
type ApiAuth struct { ID string `json:"id"` ApiID string `json:"api_id"` ApiName string `json:"api_name"` GroupName string `json:"group_name"` ApiType int `json:"api_type"` ApiDescription string `json:"api_remark"` EnvID string `json:"env_id"` AuthRole string `json:"auth_role"` AuthTime string `json:"auth_time"` AppName string `json:"app_name"` AppDescription string `json:"app_remark"` AppType string `json:"app_type"` AppCreator string `json:"app_creator"` PublishID string `json:"publish_id"` GroupID string `json:"group_id"` AuthTunnel string `json:"auth_tunnel"` AuthWhitelist []string `json:"auth_whitelist"` AuthBlacklist []string `json:"auth_blacklist"` VisitParam string `json:"visit_param"` EnvName string `json:"env_name"` AppID string `json:"app_id"` }
func ExtractAuths ¶
func ExtractAuths(r pagination.NewPage) ([]ApiAuth, error)
func ListAPIBound ¶
func ListAPIBound(client *golangsdk.ServiceClient, opts ListBoundOpts) ([]ApiAuth, error)
func ListAppsBound ¶
func ListAppsBound(client *golangsdk.ServiceClient, opts ListAppsBoundOpts) ([]ApiAuth, error)
type ApiOutline ¶
type ApiOutline struct { AuthType string `json:"auth_type"` RunEnvName string `json:"run_env_name"` GroupName string `json:"group_name"` PublishID string `json:"publish_id"` GroupID string `json:"group_id"` Name string `json:"name"` Description string `json:"remark"` RunEnvID string `json:"run_env_id"` ID string `json:"id"` ReqUri string `json:"req_uri"` }
func ExtractApiOutline ¶
func ExtractApiOutline(r pagination.NewPage) ([]ApiOutline, error)
func ListAPIUnBound ¶
func ListAPIUnBound(client *golangsdk.ServiceClient, opts ListUnboundOpts) ([]ApiOutline, error)
type AppAuthResp ¶
type AppAuthResp struct { ID string `json:"id"` ApiID string `json:"api_id"` AuthResult AuthResult `json:"auth_result"` AuthTime string `json:"auth_time"` AppID string `json:"app_id"` AuthRole string `json:"auth_role"` AuthTunnel string `json:"auth_tunnel"` AuthWhitelist []string `json:"auth_whitelist"` AuthBlacklist []string `json:"auth_blacklist"` VisitParams string `json:"visit_params"` }
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateAuthOpts) ([]AppAuthResp, error)
type AuthResult ¶
type BindingPage ¶
type BindingPage struct {
pagination.NewSinglePageBase
}
type CreateAuthOpts ¶
type ListAppsBoundOpts ¶
type ListBoundOpts ¶
Click to show internal directories.
Click to hide internal directories.