Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPort = 1238 DefaultInstallPath = "installBiz" DefaultUninstallPath = "uninstallBiz" DefaultSwitchPath = "switchBiz" )
Variables ¶
This section is empty.
Functions ¶
func MockClient ¶
func MockClient()
Types ¶
type ArkletClient ¶
type ArkletClient struct {
// contains filtered or unexported fields
}
ArkletClient support install / uninstall /switch biz
func Client ¶
func Client() *ArkletClient
func (*ArkletClient) InstallBiz ¶
func (client *ArkletClient) InstallBiz(ip string, moduleInfo v1alpha1.ModuleInfo) (*ArkletResponse, error)
func (*ArkletClient) UninstallBiz ¶
func (client *ArkletClient) UninstallBiz(ip string, moduleName string, moduleVersion string) (*ArkletResponse, error)
type ArkletResponse ¶
type ArkletResponse struct { // TODO 根据 arklet response 定义再调整 Code ArkletResponseCode Message string }
type ArkletResponseCode ¶
type ArkletResponseCode string
const ( Success ArkletResponseCode = "SUCCESS" Failed ArkletResponseCode = "FAILED" )
Click to show internal directories.
Click to hide internal directories.