claims

package
v0.0.0-...-3c0921f Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseClaimsFlag = "use-claims"
)

Variables

This section is empty.

Functions

func RegisterClientFlags

func RegisterClientFlags(f []cli.Flag) []cli.Flag

func RegisterFlags

func RegisterFlags(f []cli.Flag) []cli.Flag

Types

type Claims

type Claims struct {
	lazymap.LazyMap
	// contains filtered or unexported fields
}

func New

func New(c *cli.Context, cl *Client) *Claims

func (*Claims) Get

func (s *Claims) Get(email string) (*Data, error)

func (*Claims) MakeUserClaimsFromContext

func (s *Claims) MakeUserClaimsFromContext(c *gin.Context) (*Data, error)

func (*Claims) RegisterHandler

func (s *Claims) RegisterHandler(c *cli.Context, r *gin.Engine) error

type ClaimsContext

type ClaimsContext struct{}

type Client

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

func NewClient

func NewClient(c *cli.Context) *Client

func (*Client) Close

func (s *Client) Close()

func (*Client) Get

func (s *Client) Get() (proto.ClaimsProviderClient, error)

type Data

type Data = proto.GetResponse

func GetFromContext

func GetFromContext(c *gin.Context) *Data

Jump to

Keyboard shortcuts

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