endpoints

package
v1.3.0-rc.0...-12c9840 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageType      = "image"
	ProductType    = "product"
	AddonType      = "addon"
	MysqlAddonName = "mysql-edge"
)
View Source
const (
	DefaultPageSize = 20
	DefaultPageNo   = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Endpoints

func (*Endpoints) CreateEdgeApp

func (e *Endpoints) CreateEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateEdgeApp Create Edge application

func (*Endpoints) CreateEdgeConfigSet

func (e *Endpoints) CreateEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateEdgeConfigSet Create edge configSet

func (*Endpoints) CreateEdgeConfigSetItem

func (e *Endpoints) CreateEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateEdgeConfigSet Create edge configSet

func (*Endpoints) CreateEdgeSite

func (e *Endpoints) CreateEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateEdgeSite Create edge site

func (*Endpoints) DeleteEdgeApp

func (e *Endpoints) DeleteEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteEdgeApp Delete Edge application

func (*Endpoints) DeleteEdgeConfigSet

func (e *Endpoints) DeleteEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteEdgeConfigSet Delete edge configSet

func (*Endpoints) DeleteEdgeConfigSetItem

func (e *Endpoints) DeleteEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteEdgeConfigSetItem Delete edge configSet

func (*Endpoints) DeleteEdgeSite

func (e *Endpoints) DeleteEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteEdgeSite Delete edge site

func (*Endpoints) EdgeOrgPermCheck

func (e *Endpoints) EdgeOrgPermCheck(userID, orgID, action string) error

func (*Endpoints) EdgePermissionCheck

func (e *Endpoints) EdgePermissionCheck(userID, orgID, projectID, action string) error

EdgePermissionCheck Edge Permission check

func (*Endpoints) GetEdgeApp

func (e *Endpoints) GetEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetEdgeApp Get edge application

func (*Endpoints) GetEdgeAppStatus

func (e *Endpoints) GetEdgeAppStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetEdgeAppStatus Get Edge application status

func (*Endpoints) GetEdgeConfigSet

func (e *Endpoints) GetEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetEdgeConfigSet Get edge configSet

func (*Endpoints) GetEdgeConfigSetItem

func (e *Endpoints) GetEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetEdgeConfigSetItem Get edge configSet

func (*Endpoints) GetEdgeSite

func (e *Endpoints) GetEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetIdentity

func (*Endpoints) GetInitEdgeSiteShell

func (e *Endpoints) GetInitEdgeSiteShell(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetInitEdgeSiteShell Get edge site init shell

func (*Endpoints) IsManager

func (e *Endpoints) IsManager(userID string, scopeType apistructs.ScopeType, scopeID string) error

func (*Endpoints) ListEdgeApp

func (e *Endpoints) ListEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListEdgeApp List Edge application

func (*Endpoints) ListEdgeConfigSet

func (e *Endpoints) ListEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListEdgeConfigSet List edge configSet

func (*Endpoints) ListEdgeConfigSetItem

func (e *Endpoints) ListEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListEdgeConfigSetItem List edge configSet item

func (*Endpoints) ListEdgeSite

func (e *Endpoints) ListEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListEdgeSite List edge site

func (*Endpoints) OfflineAppSite

func (e *Endpoints) OfflineAppSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

OfflineAppSite Offline site which deploy specified application

func (*Endpoints) OfflineEdgeHost

func (e *Endpoints) OfflineEdgeHost(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

OfflineEdgeHost Offline edge host

func (*Endpoints) RestartAppSite

func (e *Endpoints) RestartAppSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RestartAppSite Restart site which deploy specified application

func (*Endpoints) Routes

func (e *Endpoints) Routes() []httpserver.Endpoint

Routes Return routes

func (*Endpoints) UpdateEdgeApp

func (e *Endpoints) UpdateEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateEdgeApp Update Edge application

func (*Endpoints) UpdateEdgeConfigSet

func (e *Endpoints) UpdateEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateEdgeConfigSet Update edge configSet

func (*Endpoints) UpdateEdgeConfigSetItem

func (e *Endpoints) UpdateEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateEdgeConfigSetItem Update edge configSet

func (*Endpoints) UpdateEdgeSite

func (e *Endpoints) UpdateEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateEdgeSite Update edge site

type Option

type Option func(*Endpoints)

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle With bundle module.

func WithClusterSvc

func WithClusterSvc(clusterSvc clusterpb.ClusterServiceServer) Option

WithClusterSvc With cluster-manager ClusterService

func WithDBEngine

func WithDBEngine(dbEngine *dbengine.DBEngine) Option

func WithOrg

func WithOrg(org org.ClientInterface) Option

Jump to

Keyboard shortcuts

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