auth

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadAction  = "read"
	WriteAction = "write"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func (Client) Create

func (c Client) Create(ctx context.Context, params *CreateParams) error

func (Client) List

func (c Client) List(ctx context.Context, params *ListParams) error

func (Client) Remove

func (c Client) Remove(ctx context.Context, authID string) error

func (Client) SetActive

func (c Client) SetActive(ctx context.Context, authID string, active bool) error

type CreateParams

type CreateParams struct {
	clients.OrgParams
	User        string
	Description string

	ResourcePermissions []*ResourcePermission

	WriteBucketIds []string
	ReadBucketIds  []string

	OperatorPermission bool
	AllAccess          bool
}

type ListParams

type ListParams struct {
	clients.OrgParams
	Id     string
	User   string
	UserID string
}

type ResourcePermission added in v2.2.0

type ResourcePermission struct {
	Name    string
	Read    bool
	Write   bool
	IsCloud bool
	IsOss   bool
}

func BuildResourcePermissions added in v2.2.0

func BuildResourcePermissions() []*ResourcePermission

Jump to

Keyboard shortcuts

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