webreq

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// get
	OpListStaticStrategies  = "listStaticStrategies"
	OpListRunningStrategies = "listRunningStrategies"
	OpListApplications      = "listApplications"
	OpListImage             = "listImage"

	OpGetStaticStrategy  = "getStaticStrategies"
	OpGetRunningStrategy = "getRunningStrategies"
	OpGetClusterInfo     = "getClusterInfo"
	//OpGetClusterDevices = "getClusterDevices"
	//OpGetClusterServices = "getClusterServices"
	OpGetClusterResources     = "getClusterResources"
	OpGetStatisticClusterInfo = "getStatisticClusterInfo"
	//OpGetDevicesStatistic = "getDevicesStatistic"
	//OpGetServiceStatistic = "getServicesStatistic"
	OpGetSpecificResources   = "getSpecificResources"
	OpListResourcesStatistic = "listResourcesStatistic"
	OpGetRelationshipGraph   = "getRelationshipGraph"

	// delete
	OpDeleteStaticStrategy  = "deleteStaticStrategy"
	OpDeleteRunningStrategy = "deleteRunningStrategy"
	OpDeleteImage           = "deleteImage"

	// load
	OpLoadStrategy = "loadStrategy"
	OpLoadImage    = "loadImage"

	// upload
	OpUploadStrategy = "uploadStrategy"
	OpUploadImage    = "uploadImage"

	// update
	OpUpdateStaticStrategy  = "updateStaticStrategy"
	OpUpdateRunningStrategy = "updateRunningStrategy"

	// run
	OpRunStrategy    = "runStaticStrategy"
	OpRunApplication = "runApplication"

	//stop
	OpStopRunningStrategy = "stopRunningStrategy"

	//restart
	OpRestartStrategy = "restartStrategy"

	// push
	OpPushStaticStrategy = "pushStaticStrategy"

	// pull
	OpPullStaticStrategy = "pullStaticStrategy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Op       string               `json:"op"`
	Object   string               `json:"object"`
	Data     string               `json:"data"`
	Strategy *strategies.Strategy `json:"strategy"`
}

type Response

type Response struct {
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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