ladon_clt

package
v0.0.0-...-c7600f7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(httpClient base_client.HTTPClient, baseUrl string) *Client

func (*Client) GetRoleAccessPolicy

func (c *Client) GetRoleAccessPolicy(ctx context.Context, role, path, method string) (bool, error)

func (*Client) GetUserAccessPolicy

func (c *Client) GetUserAccessPolicy(ctx context.Context, token string, pathMethodMap map[string][]string) (map[string][]string, error)

type ClientItf

type ClientItf interface {
	GetRoleAccessPolicy(ctx context.Context, role, path, method string) (bool, error)
	GetUserAccessPolicy(ctx context.Context, token string, pathMethodMap map[string][]string) (map[string][]string, error)
}

Jump to

Keyboard shortcuts

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