Documentation ¶
Index ¶
- Constants
- type Endpoints
- func (e *Endpoints) CreateEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) CreateEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) DeleteEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) EdgeOrgPermCheck(userID, orgID, action string) error
- func (e *Endpoints) EdgePermissionCheck(userID, orgID, projectID, action string) error
- func (e *Endpoints) GetEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetEdgeAppStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) GetIdentity(r *http.Request) (apistructs.Identity, httpserver.Responser)
- func (e *Endpoints) GetInitEdgeSiteShell(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) IsManager(userID string, scopeType apistructs.ScopeType, scopeID string) error
- func (e *Endpoints) ListEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) ListEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) OfflineAppSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) OfflineEdgeHost(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) RestartAppSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) Routes() []httpserver.Endpoint
- func (e *Endpoints) UpdateEdgeApp(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateEdgeConfigSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateEdgeConfigSetItem(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (e *Endpoints) UpdateEdgeSite(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- type Option
Constants ¶
const ( ImageType = "image" ProductType = "product" AddonType = "addon" MysqlAddonName = "mysql-edge" )
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 (*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 (*Endpoints) EdgePermissionCheck ¶
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 (*Endpoints) GetIdentity ¶
func (e *Endpoints) GetIdentity(r *http.Request) (apistructs.Identity, httpserver.Responser)
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) 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) 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
type Option ¶
type Option func(*Endpoints)
func WithClusterSvc ¶
func WithClusterSvc(clusterSvc clusterpb.ClusterServiceServer) Option
WithClusterSvc With cluster-manager ClusterService
func WithDBEngine ¶
func WithOrg ¶
func WithOrg(org org.ClientInterface) Option