arklet

package
v0.0.0-...-a5e3c8c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

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