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 WithKSNameSpace ¶
func WithTKeelCluster ¶
func WithTKeelNS ¶
Click to show internal directories.
Click to hide internal directories.