Documentation ¶
Overview ¶
Copyright 2021 SANGFOR TECHNOLOGIES
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 SANGFOR TECHNOLOGIES ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CliCmd(commandMap map[string]dtstruct.CommandDesc, cliParam *dtstruct.CliParam)
- func FailOver(params martini.Params, r render.Render, req *http.Request, user auth.User)
- func NodeBuild(params martini.Params, r render.Render, req *http.Request, user auth.User)
- func NodeStart(params martini.Params, r render.Render, req *http.Request, user auth.User)
- func NodeStop(params martini.Params, r render.Render, req *http.Request, user auth.User)
- func Operation(params martini.Params, r render.Render, req *http.Request, user auth.User, ...)
- func RegisterAPIRequest() map[string][]interface{}
- func RegisterWebRequest() map[string][]interface{}
- func SwitchOver(params martini.Params, r render.Render, req *http.Request, user auth.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CliCmd ¶
func CliCmd(commandMap map[string]dtstruct.CommandDesc, cliParam *dtstruct.CliParam)
Cli initiates a command line interface, executing requested command.
func Operation ¶
func Operation(params martini.Params, r render.Render, req *http.Request, user auth.User, roleCheck bool, operation func(context.Context, *dtstruct.InstanceKey) (interface{}, error))
Operation do operation on specified instance
func RegisterAPIRequest ¶
func RegisterAPIRequest() map[string][]interface{}
RegisterAPIRequest register api request
func RegisterWebRequest ¶
func RegisterWebRequest() map[string][]interface{}
RegisterWebRequest register web request
Types ¶
This section is empty.