client

package
v0.9.215 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_GLOBAL_ENDPOINT = "aihc.baidubce.com"
	DEFAULT_REGION_ENDPOINT = "aihc." + bce.DEFAULT_REGION + ".baidubce.com"
)

Variables

This section is empty.

Functions

func IsRegionedEndpoint

func IsRegionedEndpoint(endpoint string) bool

func NewBceClient

func NewBceClient(ak, sk, sessionToken, endpoint string) (*bce.BceClient, error)

Types

type Client

type Client struct {
	DefaultClient *bce.BceClient
	RegionClient  *bce.BceClient
	GlobalClient  *bce.BceClient
}

Client of BBC service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk, endpoint string) (*Client, error)

NewClient make the BBC service client with default configuration. Use `cli.Config.xxx` to access the config or change it to non-default value.

func NewClientWithSTS

func NewClientWithSTS(ak, sk, sessionToken, endpoint string) (*Client, error)

NewClientWithSTS make the aihc inference service client with STS configuration.

Jump to

Keyboard shortcuts

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