Documentation
¶
Index ¶
- Constants
- Variables
- type API
- func (api *API) Active(c *common.Context) (interface{}, error)
- func (api *API) CreateApplication(c *common.Context) (interface{}, error)
- func (api *API) CreateBatch(c *common.Context) (interface{}, error)
- func (api *API) CreateCallback(c *common.Context) (interface{}, error)
- func (api *API) CreateConfig(c *common.Context) (interface{}, error)
- func (api *API) CreateNamespace(c *common.Context) (interface{}, error)
- func (api *API) CreateNode(c *common.Context) (interface{}, error)
- func (api *API) CreateRecord(c *common.Context) (interface{}, error)
- func (api *API) CreateRegistry(c *common.Context) (interface{}, error)
- func (api *API) CreateSecret(c *common.Context) (interface{}, error)
- func (api *API) DeleteApplication(c *common.Context) (interface{}, error)
- func (api *API) DeleteBatch(c *common.Context) (interface{}, error)
- func (api *API) DeleteCallback(c *common.Context) (interface{}, error)
- func (api *API) DeleteConfig(c *common.Context) (interface{}, error)
- func (api *API) DeleteNamespace(c *common.Context) (interface{}, error)
- func (api *API) DeleteNode(c *common.Context) (interface{}, error)
- func (api *API) DeleteRecord(c *common.Context) (interface{}, error)
- func (api *API) DeleteRegistry(c *common.Context) (interface{}, error)
- func (api *API) DeleteSecret(c *common.Context) (interface{}, error)
- func (api *API) Desire(c *common.Context) (interface{}, error)
- func (api *API) DownloadRecords(c *common.Context) (interface{}, error)
- func (api *API) GenCoreApp(nodeName, ns string, isSys bool) (*specV1.Application, error)
- func (api *API) GenFunctionApp(nodeName, ns string, isSys bool) (*specV1.Application, error)
- func (api *API) GenInitCmdFromBatch(c *common.Context) (interface{}, error)
- func (api *API) GenInitCmdFromNode(c *common.Context) (interface{}, error)
- func (api *API) GenRecordRandom(c *common.Context) (interface{}, error)
- func (api *API) GenSysApp(nodeName, ns string, appList []common.SystemApplication) ([]specV1.Application, error)
- func (api *API) GetAppByConfig(c *common.Context) (interface{}, error)
- func (api *API) GetAppByNode(c *common.Context) (interface{}, error)
- func (api *API) GetAppByRegistry(c *common.Context) (interface{}, error)
- func (api *API) GetAppBySecret(c *common.Context) (interface{}, error)
- func (api *API) GetApplication(c *common.Context) (interface{}, error)
- func (api *API) GetBatch(c *common.Context) (interface{}, error)
- func (api *API) GetCallback(c *common.Context) (interface{}, error)
- func (api *API) GetConfig(c *common.Context) (interface{}, error)
- func (api *API) GetNamespace(c *common.Context) (interface{}, error)
- func (api *API) GetNode(c *common.Context) (interface{}, error)
- func (api *API) GetNodeDeployHistory(c *common.Context) (interface{}, error)
- func (api *API) GetNodeStats(c *common.Context) (interface{}, error)
- func (api *API) GetRecord(c *common.Context) (interface{}, error)
- func (api *API) GetRegistry(c *common.Context) (interface{}, error)
- func (api *API) GetResource(c *common.Context) (interface{}, error)
- func (api *API) GetSecret(c *common.Context) (interface{}, error)
- func (api *API) GetSysConfig(c *common.Context) (interface{}, error)
- func (api *API) ImportFunction(c *common.Context) (interface{}, error)
- func (api *API) ListApplication(c *common.Context) (interface{}, error)
- func (api *API) ListBatch(c *common.Context) (interface{}, error)
- func (api *API) ListBucketObjects(c *common.Context) (interface{}, error)
- func (api *API) ListBuckets(c *common.Context) (interface{}, error)
- func (api *API) ListConfig(c *common.Context) (interface{}, error)
- func (api *API) ListFunctionSources(c *common.Context) (interface{}, error)
- func (api *API) ListFunctionVersions(c *common.Context) (interface{}, error)
- func (api *API) ListFunctions(c *common.Context) (interface{}, error)
- func (api *API) ListNode(c *common.Context) (interface{}, error)
- func (api *API) ListObjectSources(c *common.Context) (interface{}, error)
- func (api *API) ListRecord(c *common.Context) (interface{}, error)
- func (api *API) ListRegistry(c *common.Context) (interface{}, error)
- func (api *API) ListSecret(c *common.Context) (interface{}, error)
- func (api *API) ListSysConfig(c *common.Context) (interface{}, error)
- func (api *API) NodeNumberCollector(namespace string) (map[string]int, error)
- func (api *API) ParseTemplate(key string, data map[string]string) ([]byte, error)
- func (api *API) RefreshRegistryPassword(c *common.Context) (interface{}, error)
- func (api *API) Report(c *common.Context) (interface{}, error)
- func (api *API) UpdateApplication(c *common.Context) (interface{}, error)
- func (api *API) UpdateBatch(c *common.Context) (interface{}, error)
- func (api *API) UpdateCallback(c *common.Context) (interface{}, error)
- func (api *API) UpdateConfig(c *common.Context) (interface{}, error)
- func (api *API) UpdateNode(c *common.Context) (interface{}, error)
- func (api *API) UpdateRecord(c *common.Context) (interface{}, error)
- func (api *API) UpdateRegistry(c *common.Context) (interface{}, error)
- func (api *API) UpdateSecret(c *common.Context) (interface{}, error)
Constants ¶
const ( InfoKind = "k" InfoName = "n" InfoNamespace = "ns" InfoTimestamp = "ts" InfoExpiry = "e" )
const ( ConfigDir = "/etc/baetyl" FunctionConfigPrefix = "baetyl-function-config" FunctionCodePrefix = "baetyl-function-code" FunctionDefaultConfigFile = "service.yml" )
const ( ConfigTypeKV = "kv" ConfigTypeObject = "object" ConfigTypeFunction = "function" )
Variables ¶
var ( ErrInvalidToken = fmt.Errorf("invalid token") SystemApps = []common.SystemApplication{ common.BaetylCore, common.BaetylFunction, } )
var (
CmdExpirationInSeconds = int64(60 * 60)
)
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API baetyl api server
func (*API) CreateApplication ¶
CreateApplication create one application
func (*API) CreateBatch ¶
CreateBatch create one node
func (*API) CreateConfig ¶
CreateConfig create one config
func (*API) CreateNamespace ¶
CreateNamespace create one namespace
func (*API) CreateNode ¶
CreateNode create one node
func (*API) CreateRegistry ¶
CreateRegistry create one Registry
func (*API) CreateSecret ¶
CreateSecret create one secret
func (*API) DeleteApplication ¶
DeleteApplication delete the application
func (*API) DeleteConfig ¶
DeleteConfig delete the config
func (*API) DeleteNamespace ¶
func (*API) DeleteNode ¶
DeleteNode delete the node
func (*API) DeleteRegistry ¶
DeleteRegistry delete the Registry
func (*API) DeleteSecret ¶
DeleteSecret delete the secret
func (*API) DownloadRecords ¶
func (*API) GenCoreApp ¶
func (*API) GenFunctionApp ¶
func (*API) GenInitCmdFromBatch ¶
func (*API) GenInitCmdFromNode ¶
GenInitCmdFromNode generate install command
func (*API) GenRecordRandom ¶
func (*API) GenSysApp ¶
func (api *API) GenSysApp(nodeName, ns string, appList []common.SystemApplication) ([]specV1.Application, error)
func (*API) GetAppByNode ¶
GetAppByNode list app
func (*API) GetAppByRegistry ¶
GetAppByRegistry list app
func (*API) GetAppBySecret ¶
GetAppBySecret list app
func (*API) GetApplication ¶
GetApplication get a application
func (*API) GetNamespace ¶
GetNamespace get one namespace
func (*API) GetNodeDeployHistory ¶
GetNodeDeployHistory list node // TODO will support later
func (*API) GetNodeStats ¶
GetNodeStats get a node stats
func (*API) GetRegistry ¶
GetRegistry get a Registry
func (*API) GetSysConfig ¶
GetSysConfig get a system config
func (*API) ImportFunction ¶
ImportFunction ImportFunction
func (*API) ListApplication ¶
ListApplication list application
func (*API) ListBucketObjects ¶
ListBucketObjects ListBucketObjects
func (*API) ListBuckets ¶
ListBuckets ListBuckets
func (*API) ListConfig ¶
ListConfig list config
func (*API) ListFunctionSources ¶
ListFunctionSources ListFunctionSources
func (*API) ListFunctionVersions ¶
ListFunctionVersions list versions of a function
func (*API) ListFunctions ¶
ListFunctions list functions
func (*API) ListObjectSources ¶
func (*API) ListRegistry ¶
ListRegistry list Registry
func (*API) ListSecret ¶
ListSecret list secret
func (*API) NodeNumberCollector ¶
func (*API) ParseTemplate ¶
func (*API) RefreshRegistryPassword ¶
func (*API) UpdateApplication ¶
UpdateApplication update the application
func (*API) UpdateConfig ¶
UpdateConfig update the config
func (*API) UpdateNode ¶
UpdateNode update the node
func (*API) UpdateRegistry ¶
UpdateRegistry update the Registry