Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefreshClient ¶
func RefreshClient(client *common.ArkClient, ispAuth *auth.ArkISPAuth) error
RefreshClient refreshes the ArkISPServiceClient with the latest authentication token and cookies.
Types ¶
type ArkISPServiceClient ¶
ArkISPServiceClient is a struct that represents a client for the Ark ISP service.
func FromISPAuth ¶
func FromISPAuth(ispAuth *auth.ArkISPAuth, serviceName string, separator string, basePath string, refreshConnectionCallback func(*common.ArkClient) error) (*ArkISPServiceClient, error)
FromISPAuth creates a new ArkISPServiceClient from an ArkISPAuth instance.
func NewArkISPServiceClient ¶
func NewArkISPServiceClient( serviceName string, tenantSubdomain string, baseTenantURL string, tenantEnv commonmodels.AwsEnv, token string, authHeaderName string, separator string, basePath string, cookieJar *cookiejar.Jar, refreshConnectionCallback func(*common.ArkClient) error, ) (*ArkISPServiceClient, error)
NewArkISPServiceClient creates a new instance of ArkISPServiceClient.
func (*ArkISPServiceClient) TenantEnv ¶
func (client *ArkISPServiceClient) TenantEnv() commonmodels.AwsEnv
TenantEnv returns the tenant environment of the ArkISPServiceClient.
func (*ArkISPServiceClient) TenantID ¶
func (client *ArkISPServiceClient) TenantID() (string, error)
TenantID returns the tenant ID from the JWT token of the ArkISPServiceClient.
Click to show internal directories.
Click to hide internal directories.