operations

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(cfg *iqshell.Config, info AddInfo)

Add 保存账户信息到账户文件中, 并保存在本地数据库

func Change

func Change(cfg *iqshell.Config, info ChangeInfo)

func Clean

func Clean(cfg *iqshell.Config, info CleanInfo)

func Current

func Current(cfg *iqshell.Config)

Current 当前用户

func List

func List(cfg *iqshell.Config, info ListInfo)

func LookUp

func LookUp(cfg *iqshell.Config, info LookUpInfo)

func Remove

func Remove(cfg *iqshell.Config, info RemoveInfo)

func User

func User(cfg *iqshell.Config, info UserInfo)

Types

type AddInfo

type AddInfo struct {
	Name      string
	AccessKey string
	SecretKey string
	Over      bool
}

func (*AddInfo) Check

func (info *AddInfo) Check() *data.CodeError

type ChangeInfo

type ChangeInfo struct {
	Name string
}

ChangeInfo 切换账户

func (*ChangeInfo) Check

func (info *ChangeInfo) Check() *data.CodeError

type CleanInfo

type CleanInfo struct {
}

func (*CleanInfo) Check

func (info *CleanInfo) Check() *data.CodeError

type ListInfo

type ListInfo struct {
	OnlyListName bool
}

func (*ListInfo) Check

func (info *ListInfo) Check() *data.CodeError

type LookUpInfo

type LookUpInfo struct {
	Name string
}

LookUpInfo 查找某个用户

func (*LookUpInfo) Check

func (info *LookUpInfo) Check() *data.CodeError

type RemoveInfo

type RemoveInfo struct {
	Name string
}

func (*RemoveInfo) Check

func (info *RemoveInfo) Check() *data.CodeError

type UserInfo

type UserInfo struct {
}

func (*UserInfo) Check

func (info *UserInfo) Check() *data.CodeError

Jump to

Keyboard shortcuts

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