client

package
v1.24.18 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Unlicense Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Module for fx.
	Module = fx.Options(
		v1.Module,
		fx.Provide(NewClient),
	)
)

Functions

This section is empty.

Types

type Client

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

Client for auth.

func NewClient

func NewClient(client v1.ServiceClient, config *v1c.Config) *Client

NewClient for auth.

func (*Client) GenerateAccessToken

func (c *Client) GenerateAccessToken(ctx context.Context, length uint32) (string, error)

GenerateAccessToken for client.

func (*Client) GenerateServiceToken

func (c *Client) GenerateServiceToken(ctx context.Context, kind, audience string) (string, error)

GenerateServiceToken for client.

func (*Client) VerifyServiceToken

func (c *Client) VerifyServiceToken(ctx context.Context, token, kind, action string) error

VerifyServiceToken for client.

type Config

type Config struct {
	V1 v1.Config `yaml:"v1" json:"v1" toml:"v1"`
}

Config for client.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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