app

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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 string) (err error)

Types

type AppResp

type AppResp struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	Description  string `json:"remark"`
	Creator      string `json:"creator"`
	UpdateTime   string `json:"update_time"`
	AppKey       string `json:"app_key"`
	AppSecret    string `json:"app_secret"`
	RegisterTime string `json:"register_time"`
	Status       int    `json:"status"`
	AppType      string `json:"app_type"`
	BindNum      int    `json:"bind_num"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*AppResp, error)

func ExtractEnvs

func ExtractEnvs(r pagination.NewPage) ([]AppResp, error)

func Get

func Get(client *golangsdk.ServiceClient, gatewayID, appID string) (*AppResp, error)

func List

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

func ResetSecret

func ResetSecret(client *golangsdk.ServiceClient, opts ResetOpts) (*AppResp, error)

func Update

func Update(client *golangsdk.ServiceClient, appID string, opts CreateOpts) (*AppResp, error)

type CreateOpts

type CreateOpts struct {
	GatewayID   string `json:"-"`
	Name        string `json:"name" required:"true"`
	Description string `json:"remark,omitempty"`
	AppKey      string `json:"app_key,omitempty"`
	AppSecret   string `json:"app_secret,omitempty"`
}

type EnvPage

type EnvPage struct {
	pagination.NewSinglePageBase
}

type ListOpts

type ListOpts struct {
	GatewayID     string `json:"-"`
	ID            string `q:"id"`
	Name          string `q:"mame,"`
	Status        string `q:"status"`
	AppKey        string `q:"app_key"`
	Creator       string `q:"creator"`
	PreciseSearch string `q:"precise_search"`
}

type ResetOpts

type ResetOpts struct {
	GatewayID string `json:"-"`
	AppID     string `json:"-"`
	AppSecret string `json:"app_secret,omitempty"`
}

type ValidationResp

type ValidationResp struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"remark"`
}

func VerifyApp

func VerifyApp(client *golangsdk.ServiceClient, gatewayID, appID string) (*ValidationResp, error)

Jump to

Keyboard shortcuts

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