server

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrFuncWrapper added in v0.3.1

func ErrFuncWrapper(f func(*gin.Context) (interface{}, error)) func(*gin.Context)

func InitJwtSecret added in v0.3.4

func InitJwtSecret(key []byte)

func JWTAuth added in v0.3.4

func JWTAuth(ctx *gin.Context)

func SetJwtDat added in v0.3.6

func SetJwtDat(data string)

Types

type Client

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

func NewClient

func NewClient(cfg *openapi.Config) (*Client, error)

func (*Client) AliTriggerApply added in v0.3.1

func (cli *Client) AliTriggerApply(ctx *gin.Context) (interface{}, error)

func (*Client) Apply added in v0.3.1

func (cli *Client) Apply(ctx *gin.Context) (interface{}, error)

func (*Client) CheckService added in v0.3.1

func (cli *Client) CheckService(service string) (bool, error)

func (*Client) CheckServiceFunction added in v0.3.1

func (cli *Client) CheckServiceFunction(service, function string) (bool, error)

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) Domains added in v0.3.2

func (cli *Client) Domains(ctx *gin.Context) (interface{}, error)

func (*Client) Functions added in v0.3.1

func (cli *Client) Functions(ctx *gin.Context) (interface{}, error)

func (*Client) Get added in v0.3.1

func (cli *Client) Get(ctx *gin.Context) (interface{}, error)

func (*Client) GinServer

func (c *Client) GinServer() *gin.Engine

func (*Client) Services added in v0.3.1

func (cli *Client) Services(ctx *gin.Context) (interface{}, error)

func (*Client) UpdateFunction

func (cli *Client) UpdateFunction(service, function string, req *FunctionReq) (interface{}, error)

type CustomImage

type CustomImage struct {
	Image        string `json:"image"`
	Acceleration string `json:"acceleration"`
}

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 PushData added in v0.3.1

type PushData struct {
	Digest   string `json:"digest"`
	PushedAt string `json:"pushed_at"`
	Tag      string `json:"tag"`
}

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"`
}

type Service added in v0.3.1

type Service struct {
	RoleARN string `json:"role"`
}

Jump to

Keyboard shortcuts

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