Versions in this module Expand all Collapse all v0 v0.1.6 Mar 8, 2024 v0.1.5 Oct 31, 2023 v0.1.4 Aug 10, 2023 v0.1.3 Jul 17, 2023 v0.1.2 Jul 11, 2023 v0.1.1 Jul 6, 2023 v0.1.0 May 15, 2023 v0.0.9 Jul 22, 2022 v0.0.8 Jan 12, 2022 v0.0.7 Dec 13, 2021 v0.0.6 Dec 13, 2021 v0.0.5 Aug 5, 2021 Changes in this version type IAMBackendClient + GetApplyURL func(body interface{}) (string, error) v0.0.4 Mar 8, 2021 Changes in this version + func AsCurlCommand(request *gorequest.SuperAgent) (string, error) + type CallbackFunc func(response gorequest.Response, v interface{}, body []byte, errs []error) + func NewMetricCallback(system string, start time.Time) CallbackFunc + type ESBClient interface + GetApplyURL func(bkToken string, bkUsername string, body interface{}) (string, error) + func NewESBClient(host string, appCode string, appSecret string) ESBClient + type ESBResponse struct + Code int + Data map[string]interface{} + Message string + Result bool + func (r *ESBResponse) Error() error + type IAMBackendBaseResponse struct + Code int + Data json.RawMessage + Message string + func (r *IAMBackendBaseResponse) Error() error + func (r *IAMBackendBaseResponse) String() string + type IAMBackendClient interface + GetToken func() (token string, err error) + Ping func() error + PolicyAuth func(body interface{}) (data map[string]interface{}, err error) + PolicyAuthByActions func(body interface{}) (data map[string]interface{}, err error) + PolicyAuthByResources func(body interface{}) (data map[string]interface{}, err error) + PolicyGet func(policyID int64) (data map[string]interface{}, err error) + PolicyList func(body interface{}) (data map[string]interface{}, err error) + PolicyQuery func(body interface{}) (map[string]interface{}, error) + PolicyQueryByActions func(body interface{}) ([]map[string]interface{}, error) + PolicySubjects func(policyIDs []int64) (data []map[string]interface{}, err error) + func NewIAMBackendClient(host string, system string, appCode string, appSecret string) IAMBackendClient + type Method string + var GET Method = "GET" + var POST Method = "POST"