cfc

package
v0.9.38 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DEFAULT_SERVICE_DOMAIN = "cfc." + bce.DEFAULT_REGION + ".baidubce.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*bce.BceClient
}

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

func NewClient

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

func (*Client) CreateAlias

func (c *Client) CreateAlias(args *api.CreateAliasArgs) (*api.CreateAliasResult, error)

CreateAlias - create an alias which bind one specific cfc function version

PARAMS:

  • args: the arguments to create an alias

RETURNS:

  • *api.CreateAliasResult: the result of create alias
  • error: nil if success otherwise the specific error

func (*Client) CreateFunction

func (c *Client) CreateFunction(args *api.CreateFunctionArgs) (*api.CreateFunctionResult, error)

CreateFunction - create a cfc function with specific parameters

PARAMS:

  • args: the arguments to create a cfc function

RETURNS:

  • *api.CreateFunctionResult: the result of create a cfc function, it contains function information
  • error: nil if success otherwise the specific error

func (*Client) CreateTrigger

func (c *Client) CreateTrigger(args *api.CreateTriggerArgs) (*api.CreateTriggerResult, error)

CreateTrigger - create a specific trigger

PARAMS:

  • args: the arguments to create a trigger

RETURNS:

  • *api.CreateTriggerResult: the result of create a trigger
  • error: nil if success otherwise the specific error

func (*Client) DeleteAlias

func (c *Client) DeleteAlias(args *api.DeleteAliasArgs) error

DeleteAlias - delete an alias

PARAMS:

  • args: the arguments to delete an alias

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteFunction

func (c *Client) DeleteFunction(args *api.DeleteFunctionArgs) error

DeleteFunction - delete a specific cfc function

PARAMS:

  • args: the arguments to delete cfc function

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteReservedConcurrentExecutions

func (c *Client) DeleteReservedConcurrentExecutions(args *api.DeleteReservedConcurrentExecutionsArgs) error

DeleteReservedConcurrentExecutions - delete one cfc function reserved concurrent executions setting

PARAMS:

  • args: the arguments to delete reserved concurrent executions setting

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) DeleteTrigger

func (c *Client) DeleteTrigger(args *api.DeleteTriggerArgs) error

DeleteTrigger - delete a trigger

PARAMS:

  • args: the arguments to delete a trigger

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) GetAlias

func (c *Client) GetAlias(args *api.GetAliasArgs) (*api.GetAliasResult, error)

GetAlias - get alias information which bind one cfc function

PARAMS:

  • args: the arguments to get an alias

RETURNS:

  • *api.GetAliasResult: the result of get alias
  • error: nil if success otherwise the specific error

func (*Client) GetFunction

func (c *Client) GetFunction(args *api.GetFunctionArgs) (*api.GetFunctionResult, error)

GetFunction - get a specific cfc function

PARAMS:

  • args: the arguments to get a specific cfc function

RETURNS:

  • *api.GetFunctionResult: the result of get function
  • error: nil if success otherwise the specific error

func (*Client) GetFunctionConfiguration

func (c *Client) GetFunctionConfiguration(args *api.GetFunctionConfigurationArgs) (*api.GetFunctionConfigurationResult, error)

GetFunctionConfiguration - get a specific cfc function configuration

PARAMS:

  • args: the arguments to get function configuration

RETURNS:

  • *api.GetFunctionConfigurationResult: the result of function configuration
  • error: nil if success otherwise the specific error

func (*Client) Invocations

func (c *Client) Invocations(args *api.InvocationsArgs) (*api.InvocationsResult, error)

Invocations - invocation a cfc function with specific parameters

PARAMS:

  • args: the arguments to invocation cfc function

RETURNS:

  • *api.InvocationsResult: the result of invocation cfc function
  • error: nil if success otherwise the specific error

func (*Client) Invoke

func (c *Client) Invoke(args *api.InvocationsArgs) (*api.InvocationsResult, error)

Invoke - invoke a cfc function, the same as Invocations

PARAMS:

  • args: the arguments to invocation cfc function

RETURNS:

  • *api.InvocationsResult: the result of invocation cfc function
  • error: nil if success otherwise the specific error

func (*Client) ListAliases

func (c *Client) ListAliases(args *api.ListAliasesArgs) (*api.ListAliasesResult, error)

ListAliases - list all alias about a specific cfc function with specific parameters

PARAMS:

  • args: the arguments to list all alias

RETURNS:

  • *api.ListAliasesResult: the result of list all alias
  • error: nil if success otherwise the specific error

func (*Client) ListFunctions

func (c *Client) ListFunctions(args *api.ListFunctionsArgs) (*api.ListFunctionsResult, error)

ListFunctions - list all functions with the specific parameters

PARAMS:

  • args: the arguments to list all functions

RETURNS:

  • *api.ListFunctionsResult: the result of list all functions
  • error: nil if success otherwise the specific error

func (*Client) ListTriggers

func (c *Client) ListTriggers(args *api.ListTriggersArgs) (*api.ListTriggersResult, error)

ListTriggers - list all triggers in one cfc function version

PARAMS:

  • args: the arguments to list all triggers

RETURNS:

  • *api.ListTriggersResult: the result of list all triggers
  • error: nil if success otherwise the specific error

func (*Client) ListVersionsByFunction

func (c *Client) ListVersionsByFunction(args *api.ListVersionsByFunctionArgs) (*api.ListVersionsByFunctionResult, error)

ListVersionsByFunction - list all versions about a specific cfc function

PARAMS:

  • args: the arguments to list all versions

RETURNS:

  • *api.ListVersionsByFunctionResult: the result of all versions information
  • error: nil if success otherwise the specific error

func (*Client) PublishVersion

func (c *Client) PublishVersion(args *api.PublishVersionArgs) (*api.PublishVersionResult, error)

PublishVersion - publish a cfc function as a new version

PARAMS:

  • args: the arguments to publish a version

RETURNS:

  • *api.PublishVersionResult: the result of publish a function version
  • error: nil if success otherwise the specific error

func (*Client) SetReservedConcurrentExecutions

func (c *Client) SetReservedConcurrentExecutions(args *api.ReservedConcurrentExecutionsArgs) error

SetReservedConcurrentExecutions - set a cfc function reserved concurrent executions

PARAMS:

  • args: the arguments to set reserved concurrent executions

RETURNS:

  • error: nil if success otherwise the specific error

func (*Client) UpdateAlias

func (c *Client) UpdateAlias(args *api.UpdateAliasArgs) (*api.UpdateAliasResult, error)

UpdateAlias - update an alias configuration

PARAMS:

  • args: the arguments to update an alias

RETURNS:

  • *api.UpdateAliasResult: the result of update an alias
  • error: nil if success otherwise the specific error

func (*Client) UpdateFunctionCode

func (c *Client) UpdateFunctionCode(args *api.UpdateFunctionCodeArgs) (*api.UpdateFunctionCodeResult, error)

UpdateFunctionCode - update a cfc function code

PARAMS:

  • args: the arguments to update function code

RETURNS:

  • *api.UpdateFunctionCodeResult: the result of update function code
  • error: nil if success otherwise the specific error

func (*Client) UpdateFunctionConfiguration

func (c *Client) UpdateFunctionConfiguration(args *api.UpdateFunctionConfigurationArgs) (*api.UpdateFunctionConfigurationResult, error)

UpdateFunctionConfiguration - update a specific cfc function configuration

PARAMS:

  • args: the arguments to update cfc function

RETURNS:

  • *api.UpdateFunctionConfigurationResult: the result of update function configuration
  • error: nil if success otherwise the specific error

func (*Client) UpdateTrigger

func (c *Client) UpdateTrigger(args *api.UpdateTriggerArgs) (*api.UpdateTriggerResult, error)

UpdateTrigger - update a trigger

PARAMS:

  • args: the arguments to update a trigger

RETURNS:

  • *api.UpdateTriggerResult: the result of update a trigger
  • 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