app_auth

package
v0.9.1 Latest Latest
Warning

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

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

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 AuthResult struct {
	Status    string `json:"status"`
	ErrorMsg  string `json:"error_msg"`
	ErrorCode string `json:"error_code"`
	ApiName   string `json:"api_name"`
	AppName   string `json:"app_name"`
}

type BindingPage

type BindingPage struct {
	pagination.NewSinglePageBase
}

type CreateAuthOpts

type CreateAuthOpts struct {
	GatewayID string   `json:"-"`
	EnvID     string   `json:"env_id" required:"true"`
	AppIDs    []string `json:"app_ids" required:"true"`
	ApiIDs    []string `json:"api_ids" required:"true"`
}

type ListAppsBoundOpts

type ListAppsBoundOpts struct {
	GatewayID string `json:"-"`
	AppID     string `q:"app_id"`
	ApiID     string `q:"api_id"`
	ApiName   string `q:"api_name"`
	EnvID     string `q:"env_id"`
}

type ListBoundOpts

type ListBoundOpts struct {
	GatewayID string `json:"-"`
	AppID     string `q:"app_id" required:"true"`
	ApiID     string `q:"api_id"`
	ApiName   string `q:"api_name"`
	GroupID   string `q:"group_id"`
	GroupName string `q:"group_name"`
	EnvID     string `q:"env_id"`
}

type ListUnboundOpts

type ListUnboundOpts struct {
	GatewayID string `json:"-"`
	AppID     string `q:"app_id" required:"true"`
	EnvID     string `q:"env_id" required:"true"`
	GroupID   string `q:"group_id"`
	ApiID     string `q:"api_id"`
	ApiName   string `q:"api_name"`
}

Jump to

Keyboard shortcuts

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