app_code

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, gatewayID, appID, appCodeID string) (err error)

Types

type AppCodePage

type AppCodePage 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 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 List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]CodeResp, error)

type CreateOpts

type CreateOpts struct {
	GatewayID string `json:"-"`
	AppID     string `json:"-"`
	AppCode   string `json:"app_code" required:"true"`
}

type ListOpts

type ListOpts struct {
	GatewayID string `json:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL