inference

package
v0.9.207 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_SERVICE_DOMAIN = "aihc.baidubce.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*bce.BceClient
}

Client of aihc inference service is a kind of BceClient, so derived from BceClient

func NewClient

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

NewClient make the aihc inference service client with default configuration.

func NewClientWithSTS

func NewClientWithSTS(accessKey, secretKey, sessionToken, endPoint string) (*Client, error)

NewClientWithSTS make the aihc inference service client with STS configuration.

func (*Client) AppDetails

func (c *Client) AppDetails(args *api.AppDetailsArgs, region string) (*api.AppDetailsResult, error)

AppDetails - the details of app with the specific parameters

PARAMS:

  • args: the arguments to app details
  • region: the region of service

RETURNS:

  • *api.AppDetailsResult: the result of app details, contains apps status
  • error: nil if success otherwise the specific error

func (*Client) BlockPod

func (c *Client) BlockPod(args *api.BlockPodArgs, region string) (*api.BlockPodResult, error)

BlockPod - block pod with the specific parameters

PARAMS:

  • args: the arguments to block pod
  • region: the region of service

RETURNS:

  • *api.BlockPodResult: the result of block pod
  • error: nil if success otherwise the specific error

func (*Client) ChangeDetail

func (c *Client) ChangeDetail(args *api.ChangeDetailArgs, region string) (*api.ChangeDetailResult, error)

ChangeDetail - app change detail with the specific parameters

PARAMS:

  • args: the arguments to app change details
  • region: the region of service

RETURNS:

  • *api.ChangeDetailResult: the result of app change detail, contains app change detail info
  • error: nil if success otherwise the specific error

func (*Client) CreateApp

func (c *Client) CreateApp(args *api.CreateAppArgs, region string, extraInfo map[string]string) (*api.CreateAppResult, error)

CreateApp - create app with the specific parameters

PARAMS:

  • args: the arguments to create app
  • region: the region of service
  • extraInfo: the extra internal args, users can ignore it, set nil

RETURNS:

  • *api.CreateAppResult: the result of create app, contains new app id
  • error: nil if success otherwise the specific error

func (*Client) DeleteApp

func (c *Client) DeleteApp(args *api.DeleteAppArgs, region string) (*api.DeleteAppResult, error)

DeleteApp - delete app with the specific parameters

PARAMS:

  • args: the arguments to delete app
  • region: the region of service

RETURNS:

  • *api.DeleteAppResult: the result of delete app
  • error: nil if success otherwise the specific error

func (*Client) DeletePod

func (c *Client) DeletePod(args *api.DeletePodArgs, region string) (*api.DeletePodResult, error)

DeletePod - delete pod with the specific parameters

PARAMS:

  • args: the arguments to delete pod
  • region: the region of service

RETURNS:

  • *api.DeletePodResult: the result of delete pod
  • error: nil if success otherwise the specific error

func (*Client) ListApp

func (c *Client) ListApp(args *api.ListAppArgs, region string, extraInfo map[string]string) (*api.ListAppResult, error)

ListApp - list app with the specific parameters

PARAMS:

  • args: the arguments to list app
  • region: the region of service
  • extraInfo: the extra internal args, users can ignore it, set nil

RETURNS:

  • *api.ListAppResult: the result of list app, contains apps info
  • error: nil if success otherwise the specific error

func (*Client) ListAppStats

func (c *Client) ListAppStats(args *api.ListAppStatsArgs, region string) (*api.ListAppStatsResult, error)

ListAppStats - list app stats with the specific parameters

PARAMS:

  • args: the arguments to list app
  • region: the region of service

RETURNS:

  • *api.ListAppStatsResult: the result of list app stats, contains apps status
  • error: nil if success otherwise the specific error

func (*Client) ListBriefResPool

func (c *Client) ListBriefResPool(args *api.ListBriefResPoolArgs, region string) (*api.ListBriefResPoolResult, error)

ListBriefResPool - list res pool brief info with the specific parameters

PARAMS:

  • args: the arguments to list res pool brief info
  • region: the region of service

RETURNS:

  • *api.ListBriefResPoolResult: the result of list res pool brief, contains res pool brief info
  • error: nil if success otherwise the specific error

func (*Client) ListChange

func (c *Client) ListChange(args *api.ListChangeArgs, region string) (*api.ListChangeResult, error)

ListChange - list app change with the specific parameters

PARAMS:

  • args: the arguments to list app change
  • region: the region of service

RETURNS:

  • *api.ListChangeResult: the result of list app change, contains app change info
  • error: nil if success otherwise the specific error

func (*Client) ListPod

func (c *Client) ListPod(args *api.ListPodArgs, region string) (*api.ListPodResult, error)

ListPod - list pod of app with the specific parameters

PARAMS:

  • args: the arguments to list pod of app
  • region: the region of service

RETURNS:

  • *api.ListPodResult: the result of list pod of app, contains pod info
  • error: nil if success otherwise the specific error

func (*Client) PubAccess

func (c *Client) PubAccess(args *api.PubAccessArgs, region string) (*api.PubAccessResult, error)

PubAccess - operate public access of app with the specific parameters

PARAMS:

  • args: the arguments to operate public access
  • region: the region of service

RETURNS:

  • *api.PubAccessResult: the result of operating public access of app
  • error: nil if success otherwise the specific error

func (*Client) ResPoolDetail

func (c *Client) ResPoolDetail(args *api.ResPoolDetailArgs, region string) (*api.ResPoolDetailResult, error)

ResPoolDetail - res pool detail with the specific parameters

PARAMS:

  • args: the arguments to res pool detail
  • region: the region of service

RETURNS:

  • *api.ResPoolDetailResult: the result of res pool detail, contains res pool detail info
  • error: nil if success otherwise the specific error

func (*Client) ScaleApp

func (c *Client) ScaleApp(args *api.ScaleAppArgs, region string) (*api.ScaleAppResult, error)

ScaleApp - scale app with the specific parameters

PARAMS:

  • args: the arguments to app details
  • region: the region of service

RETURNS:

  • *api.ScaleAppResult: the result of scale app
  • error: nil if success otherwise the specific error

func (*Client) UpdateApp

func (c *Client) UpdateApp(args *api.UpdateAppArgs, region string) (*api.UpdateAppResult, error)

UpdateApp - update app with the specific parameters

PARAMS:

  • args: the arguments to app details
  • region: the region of service

RETURNS:

  • *api.UpdateAppResult: the result of update app, contains app id
  • error: nil if success otherwise the specific error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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