get_actions

package
v7.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

查询 IAM 的操作

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Count int64      // 接口操作数量
	List  GetActions // 接口操作列表
}

接口操作信息

func (*Data) MarshalJSON

func (j *Data) MarshalJSON() ([]byte, error)

func (*Data) UnmarshalJSON

func (j *Data) UnmarshalJSON(data []byte) error

type GetAction

type GetAction struct {
	Id        string // 记录 ID
	Name      string // 接口操作名称
	Alias     string // 接口操作别名
	Service   string // 接口操作对应的服务
	Scope     int64  // 接口操作权限粒度,0: 操作级,不限制资源,1: 资源级,只能访问特定资源
	Enabled   bool   // 接口操作是否启用
	CreatedAt string // 接口操作创建时间
	UpdatedAt string // 接口操作上次更新时间
}

返回的接口操作

func (*GetAction) MarshalJSON

func (j *GetAction) MarshalJSON() ([]byte, error)

func (*GetAction) UnmarshalJSON

func (j *GetAction) UnmarshalJSON(data []byte) error

type GetActions

type GetActions = []GetAction

返回的接口操作列表

type GetActionsData

type GetActionsData = Data

返回的接口操作列表信息

type GetActionsResp

type GetActionsResp = Response

返回的接口操作列表响应

type Request

type Request struct {
	Service     string                          // 操作对应的服务别名
	Page        int64                           // 分页页号,从 1 开始,默认 1
	PageSize    int64                           // 分页大小,默认 20,最大 2000
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

type Response struct {
	Data GetActionsData // 接口操作信息
}

获取 API 所用的响应

func (*Response) MarshalJSON

func (j *Response) MarshalJSON() ([]byte, error)

func (*Response) UnmarshalJSON

func (j *Response) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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