Documentation ¶
Index ¶
- Constants
- Variables
- type CreateNodeService
- type CreateNodeServiceData
- type DeleteNodeService
- type DeleteNodeServiceData
- type DeleteNodeServices
- type DeleteNodeServicesData
- type GetAllUsers
- type GetAllUsersData
- type GetNodeService
- type GetNodeServiceData
- type GetNodeServices
- type GetNodeServicesData
- type GetRole
- type GetRoleData
- type GetServiceDashboardIndex
- type GetServiceDashboardIndexData
- type GetServiceIndex
- type GetServiceIndexData
- type GetServices
- type GetServicesData
- type GetUser
- type GetUserData
- type GetUsers
- type GetUsersData
- type IssueToken
- type IssueTokenData
- type Login
- type LoginData
- type LoginWithToken
- type LoginWithTokenData
- type NodeService
- type ProjectService
- type Service
- type ServiceData
- type Spec
- type UpdateNodeService
- type UpdateNodeServiceData
- type UpdateService
- type UpdateServiceData
- type UserAuthority
Constants ¶
View Source
const UserKind = "User"
Variables ¶
View Source
var CodeMap = codeMap{
0: "Unknown",
20: "Ok",
21: "OkNotFound",
22: "OkCreated",
23: "OkUpdated",
24: "OkDeleted",
30: "OkAccepted",
31: "OkCreateAccepted",
32: "OkUpdateAccepted",
33: "OkDeleteAccepted",
100: "ClientBadRequest",
101: "ClientInvalidRequest",
102: "ClientNotFound",
103: "ClientInvalidAuth",
110: "ClientConflict",
111: "ClientAlreadyExists",
150: "ServerInternalError",
161: "RemoteTimeout",
162: "RemoteError",
}
View Source
var UserCmd map[string]base_index_model.Cmd = map[string]base_index_model.Cmd{ "create_user": base_index_model.Cmd{ Arg: base_const.ArgRequired, ArgType: base_const.ArgTypeFile, ArgKind: UserKind, Help: "helptext", }, "update_user": base_index_model.Cmd{ Arg: base_const.ArgRequired, ArgType: base_const.ArgTypeFile, ArgKind: UserKind, Help: "helptext", }, "get_users": base_index_model.Cmd{ Arg: base_const.ArgOptional, ArgType: base_const.ArgTypeString, ArgKind: UserKind, Help: "helptext", }, "get_user": base_index_model.Cmd{ Arg: base_const.ArgRequired, ArgType: base_const.ArgTypeString, ArgKind: UserKind, Help: "helptext", }, "delete_user": base_index_model.Cmd{ Arg: base_const.ArgRequired, ArgType: base_const.ArgTypeString, ArgKind: UserKind, Help: "helptext", }, }
Functions ¶
This section is empty.
Types ¶
type CreateNodeService ¶
type CreateNodeService struct {
Spec string `validate:"required" flagKind:"file"`
}
type CreateNodeServiceData ¶
type CreateNodeServiceData struct{}
type DeleteNodeService ¶
type DeleteNodeServiceData ¶
type DeleteNodeServiceData struct{}
type DeleteNodeServices ¶
type DeleteNodeServices struct {
Spec string `validate:"required" flagKind:"file"`
}
type DeleteNodeServicesData ¶
type DeleteNodeServicesData struct{}
type GetAllUsers ¶
type GetAllUsers struct {
Name string
}
type GetAllUsersData ¶
type GetAllUsersData struct {
Name string
}
type GetNodeService ¶
type GetNodeServiceData ¶
type GetNodeServiceData struct {
NodeService NodeService
}
type GetNodeServices ¶
type GetNodeServicesData ¶
type GetNodeServicesData struct {
NodeServices []NodeService
}
type GetRoleData ¶
type GetRoleData struct {
Name string
}
type GetServiceDashboardIndex ¶
type GetServiceDashboardIndex struct {
Name string
}
type GetServiceDashboardIndexData ¶
type GetServiceDashboardIndexData struct { Index base_index_model.DashboardIndex Data interface{} }
type GetServiceIndex ¶
type GetServiceIndex struct {
Name string
}
type GetServiceIndexData ¶
type GetServiceIndexData struct {
Index base_index_model.Index
}
type GetServices ¶
type GetServices struct{}
type GetServicesData ¶
type GetServicesData struct {
Services []Service
}
type GetUserData ¶
type GetUserData struct {
Name string
}
type GetUsersData ¶
type GetUsersData struct {
Name string
}
type IssueToken ¶
type IssueTokenData ¶
type IssueTokenData struct {
Token string
}
type LoginData ¶
type LoginData struct { Token string Authority UserAuthority }
type LoginWithToken ¶
type LoginWithToken struct { }
type LoginWithTokenData ¶
type LoginWithTokenData struct {
Authority UserAuthority
}
type NodeService ¶
type ProjectService ¶
type ServiceData ¶
type UpdateNodeService ¶
type UpdateNodeService struct {
NodeService
}
type UpdateNodeServiceData ¶
type UpdateNodeServiceData struct{}
type UpdateService ¶
type UpdateService struct { Name string Icon string Token string Scope string SyncRootCluster bool ProjectRoles []string Endpoints []string QueryMap map[string]base_spec_model.QueryModel }
type UpdateServiceData ¶
type UpdateServiceData struct {
Name string
}
type UserAuthority ¶
type UserAuthority struct { Name string ProjectName string ServiceMap map[string]ServiceData ProjectServiceMap map[string]ProjectService ActionProjectService ProjectService }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.