opts

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAppId

func WithAppId(id string) func(o *GetAppOptions)

func WithAppName

func WithAppName(name string) func(o *GetAppOptions)

func WithApps

func WithApps(o *GetUserOptions)

func WithBasic

func WithBasic(o *GetAppOptions)

func WithGetTags

func WithGetTags(o *GetAppOptions)

func WithOAuth2 added in v1.4.0

func WithOAuth2(o *GetAppOptions)

func WithUserExt

func WithUserExt(o *GetUserOptions)

func WithUsers

func WithUsers(id ...string) func(o *GetAppOptions)

func WithoutACL

func WithoutACL(o *GetAppOptions)

func WithoutI18n

func WithoutI18n(o *GetAppOptions)

func WithoutOAuth2 added in v1.4.0

func WithoutOAuth2(o *GetAppOptions)

func WithoutProxy

func WithoutProxy(o *GetAppOptions)

func WithoutUserExt

func WithoutUserExt(o *GetUserOptions)

func WithoutUsers

func WithoutUsers(o *GetAppOptions)

Types

type GetAppOptions

type GetAppOptions struct {
	DisableGetOAuth2,
	DisableGetUsers,
	DisableGetAccessController,
	DisableGetI18n,
	DisableGetProxy bool
	Id, Name string
	UserId   []string
	GetTags  bool
}

func NewAppOptions

func NewAppOptions(opts ...WithGetAppOptions) *GetAppOptions

type GetUserOptions

type GetUserOptions struct {
	Id          string
	Username    string
	Email       string
	PhoneNumber string
	Ext         bool
	Err         error
	Apps        bool
}

func NewGetUserOptions

func NewGetUserOptions(opts ...WithGetUserOptions) *GetUserOptions

type WithGetAppOptions

type WithGetAppOptions func(o *GetAppOptions)

type WithGetUserOptions

type WithGetUserOptions func(o *GetUserOptions)

func WithEmail

func WithEmail(email string) WithGetUserOptions

func WithPhoneNumber

func WithPhoneNumber(no string) WithGetUserOptions

func WithUserId

func WithUserId(id string) WithGetUserOptions

func WithUsername

func WithUsername(username string) WithGetUserOptions

Jump to

Keyboard shortcuts

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