ksclient

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KApisClient

type KApisClient struct {
	RestyClient  *resty.Client
	BaseURL      string
	TokenPath    string
	Token        string
	Expire       int64
	RefreshToken string
	TKNameSpace  string
	TKCluster    string
	KSNameSpace  string
	// contains filtered or unexported fields
}

func NewKApisClient

func NewKApisClient(opts ...Option) *KApisClient

func (*KApisClient) SecretTokenBeforeReq

func (c *KApisClient) SecretTokenBeforeReq(client *resty.Client, request *resty.Request) error

func (*KApisClient) TokenBeforeReq

func (c *KApisClient) TokenBeforeReq(client *resty.Client, request *resty.Request) error

type Option

type Option func(client *KApisClient)

func WithBaseTokenPath

func WithBaseTokenPath(base, path string) Option

func WithKSNameSpace

func WithKSNameSpace(nameSpace string) Option

func WithTKeelCluster

func WithTKeelCluster(cluster string) Option

func WithTKeelNS

func WithTKeelNS(ns string) Option

Jump to

Keyboard shortcuts

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