Documentation ¶
Index ¶
- Constants
- Variables
- type API
- func (api *API) CreateApplication(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) CreateProperty(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) 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) DeleteProperty(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) GenInitCmdFromNode(c *common.Context) (interface{}, 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) 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) GetNodes(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) 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) ListProperty(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) RefreshRegistryPassword(c *common.Context) (interface{}, error)
- func (api *API) UpdateApplication(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) UpdateProperty(c *common.Context) (interface{}, error)
- func (api *API) UpdateRegistry(c *common.Context) (interface{}, error)
- func (api *API) UpdateSecret(c *common.Context) (interface{}, error)
- type SyncAPI
- type SyncAPIImpl
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 = "conf.yml" )
const ( ConfigTypeKV = "kv" ConfigTypeObject = "object" ConfigTypeFunction = "function" )
Variables ¶
var (
CmdExpirationInSeconds = int64(60 * 60)
)
var (
ErrInvalidToken = fmt.Errorf("invalid token")
)
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) 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) GenInitCmdFromNode ¶
GenInitCmdFromNode generate install command
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) 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) 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
type SyncAPI ¶
type SyncAPI interface { Report(msg specV1.Message) (*specV1.Message, error) Desire(msg specV1.Message) (*specV1.Message, error) }
func NewSyncAPI ¶
func NewSyncAPI(cfg *config.CloudConfig) (SyncAPI, error)
type SyncAPIImpl ¶
type SyncAPIImpl struct {
service.SyncService
}