accesskey

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyID added in v1.1.1

type AccessKeyID string

type Option

type Option func(*Service)

Option 定义 Member 对象配置选项

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) (*Service, error)

New 新建 Audit 实例

func (*Service) CreateAccessKey

func (s *Service) CreateAccessKey(ctx context.Context, req apistructs.AccessKeyCreateRequest) (model.AccessKey, error)

func (*Service) DeleteByAccessKeyID

func (s *Service) DeleteByAccessKeyID(ctx context.Context, ak string) error

func (*Service) GetByAccessKeyID

func (s *Service) GetByAccessKeyID(ctx context.Context, ak string) (model.AccessKey, error)

func (*Service) UpdateAccessKey

func (s *Service) UpdateAccessKey(ctx context.Context, ak string, req apistructs.AccessKeyUpdateRequest) (model.AccessKey, error)

Jump to

Keyboard shortcuts

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