Documentation ¶
Index ¶
- Variables
- func GetOrgID(req *http.Request) (uint64, error)
- func GetOrgIDStr(req *http.Request) (string, error)
- func IsManager(bdl *bundle.Bundle, userID string, scopeType apistructs.ScopeType, ...) error
- func NewBundle() *bundle.Bundle
- func OrgPermCheck(bdl *bundle.Bundle, userID, orgID, action string) error
- func PermissionCheck(bdl *bundle.Bundle, userID, orgID, projectID, action string) error
- type AdminManager
- func (am *AdminManager) AppendAdminEndpoint()
- func (am *AdminManager) AppendApproveEndpoint()
- func (am *AdminManager) AppendAuditEndpoint()
- func (am *AdminManager) AppendClusterEndpoint()
- func (am *AdminManager) AppendHostEndpoint()
- func (am *AdminManager) AppendNoticeEndpoint()
- func (am *AdminManager) AppendUserEndpoint()
- func (am *AdminManager) CreateNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) DeleteNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) DereferenceCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) ExportExcelAudit(ctx context.Context, w http.ResponseWriter, req *http.Request, ...) error
- func (am *AdminManager) GetApprove(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) GetHost(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) HealthyCheck(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) InspectCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) ListApprove(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) ListAudits(ctx context.Context, req *http.Request, vars map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) ListCluster(ctx context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) ListNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) ListUser(ctx context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) PublishNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) Routers() []httpserver.Endpoint
- func (am *AdminManager) SearchUser(ctx context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) UnpublishNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) UpdateApprove(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- func (am *AdminManager) UpdateNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
- type ClusterInfoResponse
- type ManageConfigResponse
- type Option
- type SchedConfigResponse
- type USERID
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUserID = errors.New("invalid user id")
Functions ¶
Types ¶
type AdminManager ¶
type AdminManager struct {
// contains filtered or unexported fields
}
func NewAdminManager ¶
func NewAdminManager(options ...Option) *AdminManager
func (*AdminManager) AppendAdminEndpoint ¶
func (am *AdminManager) AppendAdminEndpoint()
func (*AdminManager) AppendApproveEndpoint ¶
func (am *AdminManager) AppendApproveEndpoint()
func (*AdminManager) AppendAuditEndpoint ¶
func (am *AdminManager) AppendAuditEndpoint()
func (*AdminManager) AppendClusterEndpoint ¶
func (am *AdminManager) AppendClusterEndpoint()
func (*AdminManager) AppendHostEndpoint ¶
func (am *AdminManager) AppendHostEndpoint()
func (*AdminManager) AppendNoticeEndpoint ¶
func (am *AdminManager) AppendNoticeEndpoint()
func (*AdminManager) AppendUserEndpoint ¶
func (am *AdminManager) AppendUserEndpoint()
func (*AdminManager) CreateNotice ¶
func (am *AdminManager) CreateNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) DeleteNotice ¶
func (am *AdminManager) DeleteNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) DereferenceCluster ¶
func (am *AdminManager) DereferenceCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
func (*AdminManager) ExportExcelAudit ¶
func (am *AdminManager) ExportExcelAudit( ctx context.Context, w http.ResponseWriter, req *http.Request, resources map[string]string) error
func (*AdminManager) GetApprove ¶
func (am *AdminManager) GetApprove(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) GetHost ¶
func (am *AdminManager) GetHost(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
func (*AdminManager) HealthyCheck ¶
func (am *AdminManager) HealthyCheck( ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
func (*AdminManager) InspectCluster ¶
func (am *AdminManager) InspectCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)
func (*AdminManager) ListApprove ¶
func (am *AdminManager) ListApprove(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) ListAudits ¶
func (am *AdminManager) ListAudits(ctx context.Context, req *http.Request, vars map[string]string) (httpserver.Responser, error)
func (*AdminManager) ListCluster ¶
func (am *AdminManager) ListCluster(ctx context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) ListNotice ¶
func (am *AdminManager) ListNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) ListUser ¶
func (am *AdminManager) ListUser(ctx context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) PublishNotice ¶
func (am *AdminManager) PublishNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) Routers ¶
func (am *AdminManager) Routers() []httpserver.Endpoint
func (*AdminManager) SearchUser ¶
func (am *AdminManager) SearchUser(ctx context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) UnpublishNotice ¶
func (am *AdminManager) UnpublishNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) UpdateApprove ¶
func (am *AdminManager) UpdateApprove(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
func (*AdminManager) UpdateNotice ¶
func (am *AdminManager) UpdateNotice(contenxt context.Context, req *http.Request, resources map[string]string) (httpserver.Responser, error)
type ClusterInfoResponse ¶
type ClusterInfoResponse struct { Id int32 `json:"id"` Name string `json:"name"` DisplayName string `json:"displayName"` Type string `json:"type"` Description string `json:"description"` WildcardDomain string `json:"wildcardDomain"` SchedConfig *SchedConfigResponse `json:"schedConfig"` ManageConfig *ManageConfigResponse `json:"manageConfig"` }
type ManageConfigResponse ¶
type Option ¶
type Option func(am *AdminManager)
func WithBundle ¶
func WithClusterSvc ¶
func WithClusterSvc(clusterSvc clusterpb.ClusterServiceServer) Option
func WithETCDStore ¶
type SchedConfigResponse ¶
Click to show internal directories.
Click to hide internal directories.