Documentation ¶
Index ¶
- func ErrFuncWrapper(f func(*gin.Context) (interface{}, error)) func(*gin.Context)
- func InitJwtSecret(key []byte)
- func JWTAuth(ctx *gin.Context)
- func SetJwtDat(data string)
- type Client
- func (cli *Client) AliTriggerApply(ctx *gin.Context) (interface{}, error)
- func (cli *Client) Apply(ctx *gin.Context) (interface{}, error)
- func (cli *Client) CheckService(service string) (bool, error)
- func (cli *Client) CheckServiceFunction(service, function string) (bool, error)
- func (cli *Client) CreateFunction(service, function string, req *FunctionReq) (interface{}, error)
- func (cli *Client) CreateService(service string, req *FunctionReq) (interface{}, error)
- func (cli *Client) Domains(ctx *gin.Context) (interface{}, error)
- func (cli *Client) Functions(ctx *gin.Context) (interface{}, error)
- func (cli *Client) Get(ctx *gin.Context) (interface{}, error)
- func (c *Client) GinServer() *gin.Engine
- func (cli *Client) Services(ctx *gin.Context) (interface{}, error)
- func (cli *Client) UpdateFunction(service, function string, req *FunctionReq) (interface{}, error)
- type CustomImage
- type FunctionReq
- type PushData
- type Repo
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrFuncWrapper ¶ added in v0.3.1
func InitJwtSecret ¶ added in v0.3.4
func InitJwtSecret(key []byte)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AliTriggerApply ¶ added in v0.3.1
func (*Client) CheckService ¶ added in v0.3.1
func (*Client) CheckServiceFunction ¶ added in v0.3.1
func (*Client) CreateFunction ¶ added in v0.3.1
func (cli *Client) CreateFunction(service, function string, req *FunctionReq) (interface{}, error)
func (*Client) CreateService ¶ added in v0.3.1
func (cli *Client) CreateService(service string, req *FunctionReq) (interface{}, error)
func (*Client) UpdateFunction ¶
func (cli *Client) UpdateFunction(service, function string, req *FunctionReq) (interface{}, error)
type CustomImage ¶
type FunctionReq ¶ added in v0.3.1
type FunctionReq struct { Service *Service `json:"service"` Custom *CustomImage `json:"custom"` CreateWithHTTPTrigger bool `json:"create_with_http_trigger"` }
type Repo ¶ added in v0.3.1
type Repo struct { Namespace string `json:"namespace"` Name string `json:"name"` CreatedAt string `json:"date_created"` Region string `json:"region"` RepoAuthType string `json:"repo_authentication_type"` RepoFullName string `json:"repo_full_name"` RepoOriginType string `json:"repo_origin_type"` RepoTyoe string `json:"repo_type"` }
Click to show internal directories.
Click to hide internal directories.