isp

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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

type ArkISPServiceClient struct {
	*common.ArkClient
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

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