faas

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(accessKeyId, secretAccessKey string) (*Client, error)

func (*Client) GetCustomDomain

func (c *Client) GetCustomDomain(req *GetCustomDomainRequest) (*GetCustomDomainResponse, error)

func (*Client) GetCustomDomainWithContext

func (c *Client) GetCustomDomainWithContext(ctx context.Context, req *GetCustomDomainRequest) (*GetCustomDomainResponse, error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

func (*Client) UpdateCustomDomain

func (c *Client) UpdateCustomDomain(req *UpdateCustomDomainRequest) (*UpdateCustomDomainResponse, error)

func (*Client) UpdateCustomDomainWithContext

func (c *Client) UpdateCustomDomainWithContext(ctx context.Context, req *UpdateCustomDomainRequest) (*UpdateCustomDomainResponse, error)

type CustomDomainAuthConfig

type CustomDomainAuthConfig struct {
	AuthType  string                     `json:"authType"`
	JwtConfig *CustomDomainAuthJwtConfig `json:"jwtConfig,omitempty"`
}

type CustomDomainAuthJwtClaimTran

type CustomDomainAuthJwtClaimTran struct {
	ClaimName     string `json:"claimName"`
	TargetName    string `json:"targetName"`
	TransLocation string `json:"transLocation"`
}

type CustomDomainAuthJwtConfig

type CustomDomainAuthJwtConfig struct {
	Jwks        string                              `json:"jwks"`
	TokenConfig *CustomDomainAuthJwtTokenConfig     `json:"tokenConfig,omitempty"`
	ClaimTrans  []*CustomDomainAuthJwtClaimTran     `json:"claimTrans,omitempty"`
	MatchMode   *CustomDomainAuthJwtMatchModeConfig `json:"matchMode,omitempty"`
}

type CustomDomainAuthJwtMatchModeConfig

type CustomDomainAuthJwtMatchModeConfig struct {
	Mode string   `json:"mode"`
	Path []string `json:"path"`
}

type CustomDomainAuthJwtTokenConfig

type CustomDomainAuthJwtTokenConfig struct {
	Location     string  `json:"location"`
	Name         string  `json:"name"`
	RemovePrefix *string `json:"removePrefix,omitempty"`
}

type CustomDomainCertConfig

type CustomDomainCertConfig struct {
	CertName    string `json:"certName"`
	Certificate string `json:"certificate"`
	PrivateKey  string `json:"privateKey"`
}

type CustomDomainRecord

type CustomDomainRecord struct {
	DomainName   string                   `json:"domainName"`
	Protocol     string                   `json:"protocol"`
	AuthConfig   *CustomDomainAuthConfig  `json:"authConfig,omitempty"`
	CertConfig   *CustomDomainCertConfig  `json:"certConfig,omitempty"`
	RouteConfig  *CustomDomainRouteConfig `json:"routeConfig,omitempty"`
	DomainStatus string                   `json:"domainStatus"`
	CnameValid   bool                     `json:"cnameValid"`
	CreatedAt    string                   `json:"createdAt"`
	UpdatedAt    string                   `json:"updatedAt"`
}

type CustomDomainRouteConfig

type CustomDomainRouteConfig struct {
	Routes []*CustomDomainRoutePathConfig `json:"routes"`
}

type CustomDomainRoutePathConfig

type CustomDomainRoutePathConfig struct {
	EnableJwt          int32    `json:"enableJwt"`
	FunctionId         int64    `json:"functionId"`
	FunctionName       string   `json:"functionName"`
	FunctionUniqueName string   `json:"functionUniqueName"`
	Methods            []string `json:"methods"`
	Path               string   `json:"path"`
	Qualifier          string   `json:"qualifier,omitempty"`
}

type GetCustomDomainRequest

type GetCustomDomainRequest struct {
	RegionId   *string `json:"-"                    url:"-"`
	DomainName *string `json:"domainName,omitempty" url:"-"`
	CnameCheck *bool   `json:"cnameCheck,omitempty" url:"cnameCheck,omitempty"`
}

type GetCustomDomainResponse

type GetCustomDomainResponse struct {
	ReturnObj *CustomDomainRecord `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCustomDomainResponse) GetError

func (r *GetCustomDomainResponse) GetError() string

func (*GetCustomDomainResponse) GetErrorMessage

func (r *GetCustomDomainResponse) GetErrorMessage() string

func (*GetCustomDomainResponse) GetMessage

func (r *GetCustomDomainResponse) GetMessage() string

func (*GetCustomDomainResponse) GetStatusCode

func (r *GetCustomDomainResponse) GetStatusCode() string

type UpdateCustomDomainRequest

type UpdateCustomDomainRequest struct {
	RegionId    *string                  `json:"-"`
	DomainName  *string                  `json:"domainName,omitempty"`
	Protocol    *string                  `json:"protocol,omitempty"`
	AuthConfig  *CustomDomainAuthConfig  `json:"authConfig,omitempty"`
	CertConfig  *CustomDomainCertConfig  `json:"certConfig,omitempty"`
	RouteConfig *CustomDomainRouteConfig `json:"routeConfig,omitempty"`
}

type UpdateCustomDomainResponse

type UpdateCustomDomainResponse struct {
	ReturnObj *CustomDomainRecord `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCustomDomainResponse) GetError

func (r *UpdateCustomDomainResponse) GetError() string

func (*UpdateCustomDomainResponse) GetErrorMessage

func (r *UpdateCustomDomainResponse) GetErrorMessage() string

func (*UpdateCustomDomainResponse) GetMessage

func (r *UpdateCustomDomainResponse) GetMessage() string

func (*UpdateCustomDomainResponse) GetStatusCode

func (r *UpdateCustomDomainResponse) GetStatusCode() string

Jump to

Keyboard shortcuts

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