Documentation
¶
Index ¶
- func Delete(client *golangsdk.ServiceClient, gatewayID, appID, appCodeID string) (err error)
- type AppCodePage
- type AppCodesOfAppPage
- type CodeResp
- func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*CodeResp, error)
- func ExtractAppCodes(r pagination.NewPage) ([]CodeResp, error)
- func ExtractAppCodesOfApp(r pagination.NewPage) ([]CodeResp, error)
- func GenerateAppCode(client *golangsdk.ServiceClient, gatewayID, appID string) (*CodeResp, error)
- func Get(client *golangsdk.ServiceClient, gatewayID, appID, appCodeID string) (*CodeResp, error)
- func List(client *golangsdk.ServiceClient, opts ListOpts) ([]CodeResp, error)
- func ListAppCodesOfApp(client *golangsdk.ServiceClient, opts ListAppsOpts) ([]CodeResp, error)
- type CreateOpts
- type ListAppsOpts
- type ListOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppCodePage ¶
type AppCodePage struct {
pagination.NewSinglePageBase
}
type AppCodesOfAppPage ¶ added in v0.9.4
type AppCodesOfAppPage struct {
pagination.NewSinglePageBase
}
type CodeResp ¶
type CodeResp struct {
ID string `json:"id"`
AppID string `json:"app_id"`
AppCode string `json:"app_code"`
CreateTime string `json:"create_time"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*CodeResp, error)
func ExtractAppCodes ¶
func ExtractAppCodes(r pagination.NewPage) ([]CodeResp, error)
func ExtractAppCodesOfApp ¶ added in v0.9.4
func ExtractAppCodesOfApp(r pagination.NewPage) ([]CodeResp, error)
func GenerateAppCode ¶
func GenerateAppCode(client *golangsdk.ServiceClient, gatewayID, appID string) (*CodeResp, error)
func Get ¶
func Get(client *golangsdk.ServiceClient, gatewayID, appID, appCodeID string) (*CodeResp, error)
func ListAppCodesOfApp ¶ added in v0.9.4
func ListAppCodesOfApp(client *golangsdk.ServiceClient, opts ListAppsOpts) ([]CodeResp, error)
type CreateOpts ¶
type ListAppsOpts ¶ added in v0.9.4
type ListAppsOpts struct {
GatewayID string `json:"-"`
AppID string `json:"-"`
// Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.
Offset *int `q:"offset"`
// Number of items displayed on each page.
// A value less than or equal to 0 will be automatically converted to 20,
// and a value greater than 500 will be automatically converted to 500.
Limit int `q:"limit"`
}
Click to show internal directories.
Click to hide internal directories.