source

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

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

func (*Local) DescribeUsers

func (l *Local) DescribeUsers(userIDs []string, limit int, offset int) ([]User, int64, error)

func (*Local) GetSecretAccessKey

func (l *Local) GetSecretAccessKey(accessKeyID string) (*executor.AccessKey, error)

type Qingcloud

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

func (*Qingcloud) DescribeUsers

func (q *Qingcloud) DescribeUsers(userIDs []string, limit int, offset int) ([]User, int64, error)

func (*Qingcloud) GetSecretAccessKey

func (q *Qingcloud) GetSecretAccessKey(accessKeyID string) (*executor.AccessKey, error)

type Source

type Source interface {
	GetSecretAccessKey(accessKeyID string) (*executor.AccessKey, error)
	DescribeUsers(userIDs []string, limit int, offset int) ([]User, int64, error)
}

func SelectSource

func SelectSource(source string, conf *config.Config, ctx context.Context) Source

type User

type User interface {
	ToUserReply() *pbmodel.User
}

Jump to

Keyboard shortcuts

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