SYMBOL INDEX (1054 symbols across 118 files) FILE: api/docs/docs.go constant docTemplate (line 23) | docTemplate = `{ function init (line 908) | func init() { FILE: api/server/errors/errors.go type Error (line 25) | type Error struct method Error (line 30) | func (e Error) Error() string { function NewError (line 34) | func NewError(err error, code int) Error { FILE: api/server/httputils/docs.go type HttpOK (line 20) | type HttpOK struct type HttpError (line 26) | type HttpError struct FILE: api/server/httputils/httputils.go type Response (line 34) | type Response struct method SetCode (line 40) | func (r *Response) SetCode(c int) { method SetMessage (line 44) | func (r *Response) SetMessage(m interface{}) { method SetMessageWithCode (line 53) | func (r *Response) SetMessageWithCode(m interface{}, c int) { method Error (line 58) | func (r *Response) Error() string { method String (line 62) | func (r *Response) String() string { function NewResponse (line 71) | func NewResponse() *Response { function SetSuccess (line 76) | func SetSuccess(c *gin.Context, r *Response) { function SetFailed (line 83) | func SetFailed(c *gin.Context, r *Response, err error) { function setFailedWithCode (line 95) | func setFailedWithCode(c *gin.Context, r *Response, code int, err error) { function setFailedWithValidationError (line 101) | func setFailedWithValidationError(c *gin.Context, r *Response, e string) { function AbortFailedWithCode (line 108) | func AbortFailedWithCode(c *gin.Context, code int, err error) { function ShouldBindAny (line 116) | func ShouldBindAny(c *gin.Context, jsonObject interface{}, uriObject int... constant userKey (line 136) | userKey = "user" function GetUserFromRequest (line 138) | func GetUserFromRequest(ctx context.Context) (*model.User, error) { function GetUserIdFromContext (line 151) | func GetUserIdFromContext(ctx context.Context) (int64, error) { function SetUserToContext (line 159) | func SetUserToContext(c *gin.Context, user *model.User) { function GetObjectFromRequest (line 163) | func GetObjectFromRequest(c *gin.Context) (string, string, bool) { function getObjectFromRequest (line 169) | func getObjectFromRequest(path string) (obj, sid string, ok bool) { constant objIDsKey (line 188) | objIDsKey = "objIDs" function SetIdRangeContext (line 191) | func SetIdRangeContext(c *gin.Context, ids []int64) { function GetIdRangeFromListReq (line 195) | func GetIdRangeFromListReq(ctx context.Context) (exists bool, ids []int6... constant ResponseCodeKey (line 206) | ResponseCodeKey = "response_code" constant RawErrorKey (line 207) | RawErrorKey = "raw_error" type ctxBind (line 210) | type ctxBind struct method withResponseCode (line 219) | func (cb *ctxBind) withResponseCode(code int) *ctxBind { method withRawError (line 225) | func (cb *ctxBind) withRawError(err error) *ctxBind { function contextBind (line 214) | func contextBind(c *gin.Context) *ctxBind { function GetResponseCode (line 231) | func GetResponseCode(ctx context.Context) (code int) { function GetRawError (line 242) | func GetRawError(ctx context.Context) (err error) { FILE: api/server/httputils/httputils_test.go function Test_getObjectFromRequest (line 21) | func Test_getObjectFromRequest(t *testing.T) { FILE: api/server/middleware/admission.go function Admission (line 22) | func Admission() gin.HandlerFunc { FILE: api/server/middleware/audit.go constant defaultAuditQueueSize (line 37) | defaultAuditQueueSize = 2048 constant defaultAuditWorkers (line 38) | defaultAuditWorkers = 2 constant auditWriteTimeout (line 39) | auditWriteTimeout = 3 * time.Second type auditRecorder (line 42) | type auditRecorder struct method run (line 65) | func (r *auditRecorder) run() { method write (line 71) | func (r *auditRecorder) write(record *model.Audit) { method enqueue (line 80) | func (r *auditRecorder) enqueue(record *model.Audit) { function getAuditRecorder (line 52) | func getAuditRecorder(o *options.Options) *auditRecorder { function Audit (line 90) | func Audit(o *options.Options) gin.HandlerFunc { function buildAuditRecord (line 104) | func buildAuditRecord(c *gin.Context, startTime time.Time) *model.Audit { function parseK8sProxyPath (line 133) | func parseK8sProxyPath(path string) (cluster, resourceName, resourceName... function shouldAudit (line 169) | func shouldAudit(c *gin.Context) bool { function detectObjectType (line 176) | func detectObjectType(c *gin.Context) model.ObjectType { function getAuditStatus (line 189) | func getAuditStatus(c *gin.Context) model.AuditOperationStatus { function responseOK (line 205) | func responseOK(code int) bool { FILE: api/server/middleware/authentication.go function Authentication (line 33) | func Authentication(o *options.Options) gin.HandlerFunc { function validate (line 60) | func validate(c *gin.Context, o *options.Options, keyBytes []byte) error { function extractToken (line 91) | func extractToken(c *gin.Context, ws bool) (string, error) { FILE: api/server/middleware/authorization.go function Authorization (line 43) | func Authorization(o *options.Options) gin.HandlerFunc { FILE: api/server/middleware/cors.go function Cors (line 26) | func Cors() gin.HandlerFunc { FILE: api/server/middleware/limiter.go constant capacity (line 33) | capacity = 100 constant quantum (line 34) | quantum = 20 constant cap (line 35) | cap = 200 function UserRateLimiter (line 40) | func UserRateLimiter() gin.HandlerFunc { function Limiter (line 63) | func Limiter() gin.HandlerFunc { FILE: api/server/middleware/log.go function Logger (line 28) | func Logger(cfg *logutil.LogOptions) gin.HandlerFunc { FILE: api/server/middleware/middleware.go function init (line 30) | func init() { function allowCustomRequest (line 35) | func allowCustomRequest(c *gin.Context) bool { function InstallMiddlewares (line 40) | func InstallMiddlewares(o *options.Options) { FILE: api/server/router/audit/audit.go type auditRouter (line 26) | type auditRouter struct method initRoutes (line 37) | func (a *auditRouter) initRoutes(httpEngine *gin.Engine) { function NewRouter (line 30) | func NewRouter(o *options.Options) { FILE: api/server/router/audit/audit_routes.go type AuditMeta (line 26) | type AuditMeta struct method getAudit (line 30) | func (a *auditRouter) getAudit(c *gin.Context) { method listAudits (line 49) | func (a *auditRouter) listAudits(c *gin.Context) { FILE: api/server/router/auth/auth.go constant AuthBasePath (line 27) | AuthBasePath = "/pixiu/auth" constant PolicySubPath (line 28) | PolicySubPath = "/policy" constant BindingSubPath (line 29) | BindingSubPath = "/binding" type authRouter (line 32) | type authRouter struct method initRoutes (line 43) | func (a *authRouter) initRoutes(ge *gin.Engine) { function NewRouter (line 36) | func NewRouter(o *options.Options) { FILE: api/server/router/auth/auth_routes.go type IdMeta (line 26) | type IdMeta struct method listPolicies (line 30) | func (a *authRouter) listPolicies(c *gin.Context) { method createPolicy (line 48) | func (a *authRouter) createPolicy(c *gin.Context) { method deletePolicy (line 63) | func (a *authRouter) deletePolicy(c *gin.Context) { method listBindings (line 78) | func (a *authRouter) listBindings(c *gin.Context) { method createBinding (line 96) | func (a *authRouter) createBinding(c *gin.Context) { method deleteBinding (line 111) | func (a *authRouter) deleteBinding(c *gin.Context) { FILE: api/server/router/cluster/cluster.go constant kubeProxyBaseURL (line 27) | kubeProxyBaseURL = "/pixiu/kubeproxy" constant helmBaseURL (line 28) | helmBaseURL = "/pixiu/helms" constant indexerBaseURL (line 29) | indexerBaseURL = "/pixiu/indexer" type clusterRouter (line 33) | type clusterRouter struct method initRoutes (line 45) | func (cr *clusterRouter) initRoutes(httpEngine *gin.Engine) { function NewRouter (line 38) | func NewRouter(o *options.Options) { FILE: api/server/router/cluster/cluster_routes.go type IdMeta (line 26) | type IdMeta struct method createCluster (line 44) | func (cr *clusterRouter) createCluster(c *gin.Context) { method updateCluster (line 75) | func (cr *clusterRouter) updateCluster(c *gin.Context) { method deleteCluster (line 114) | func (cr *clusterRouter) deleteCluster(c *gin.Context) { method getCluster (line 147) | func (cr *clusterRouter) getCluster(c *gin.Context) { method listClusters (line 183) | func (cr *clusterRouter) listClusters(c *gin.Context) { method pingCluster (line 215) | func (cr *clusterRouter) pingCluster(c *gin.Context) { method protectCluster (line 234) | func (cr *clusterRouter) protectCluster(c *gin.Context) { method aggregateEvents (line 253) | func (cr *clusterRouter) aggregateEvents(c *gin.Context) { method getEventList (line 277) | func (cr *clusterRouter) getEventList(c *gin.Context) { method watchPodLog (line 298) | func (cr *clusterRouter) watchPodLog(c *gin.Context) { FILE: api/server/router/cluster/helper.go function IsKubeProxyPath (line 25) | func IsKubeProxyPath(c *gin.Context) bool { function IsHelmPath (line 29) | func IsHelmPath(c *gin.Context) bool { FILE: api/server/router/cluster/informer.go type ResourceMeta (line 26) | type ResourceMeta struct method getIndexerResource (line 33) | func (cr *clusterRouter) getIndexerResource(c *gin.Context) { method listIndexerResources (line 52) | func (cr *clusterRouter) listIndexerResources(c *gin.Context) { FILE: api/server/router/cluster/proxy.go type Action (line 26) | type Action struct method ReRunJob (line 31) | func (cr *clusterRouter) ReRunJob(c *gin.Context) { FILE: api/server/router/cluster/ws.go method webShell (line 26) | func (cr *clusterRouter) webShell(c *gin.Context) { method nodeWebShell (line 42) | func (cr *clusterRouter) nodeWebShell(c *gin.Context) { FILE: api/server/router/helm/helm.go constant helmBaseURL (line 27) | helmBaseURL = "/pixiu/helms" type helmRouter (line 30) | type helmRouter struct method initRoutes (line 41) | func (hr *helmRouter) initRoutes(httpEngine *gin.Engine) { function NewRouter (line 34) | func NewRouter(o *options.Options) { FILE: api/server/router/helm/release_routes.go method GetRelease (line 41) | func (hr *helmRouter) GetRelease(c *gin.Context) { method ListReleases (line 73) | func (hr *helmRouter) ListReleases(c *gin.Context) { method InstallRelease (line 106) | func (hr *helmRouter) InstallRelease(c *gin.Context) { method UninstallRelease (line 141) | func (hr *helmRouter) UninstallRelease(c *gin.Context) { method UpgradeRelease (line 175) | func (hr *helmRouter) UpgradeRelease(c *gin.Context) { method GetReleaseHistory (line 210) | func (hr *helmRouter) GetReleaseHistory(c *gin.Context) { method RollbackRelease (line 245) | func (hr *helmRouter) RollbackRelease(c *gin.Context) { FILE: api/server/router/helm/respository_routes.go method createRepository (line 39) | func (hr *helmRouter) createRepository(c *gin.Context) { method deleteRepository (line 72) | func (hr *helmRouter) deleteRepository(c *gin.Context) { method updateRepository (line 104) | func (hr *helmRouter) updateRepository(c *gin.Context) { method getRepository (line 137) | func (hr *helmRouter) getRepository(c *gin.Context) { method listRepositories (line 167) | func (hr *helmRouter) listRepositories(c *gin.Context) { method getRepoCharts (line 192) | func (hr *helmRouter) getRepoCharts(c *gin.Context) { method getRepoChartsByURL (line 224) | func (hr *helmRouter) getRepoChartsByURL(c *gin.Context) { method getChartValues (line 257) | func (hr *helmRouter) getChartValues(c *gin.Context) { FILE: api/server/router/plan/config_routes.go type planConfigMeta (line 26) | type planConfigMeta struct method createPlanConfig (line 32) | func (t *planRouter) createPlanConfig(c *gin.Context) { method updatePlanConfig (line 52) | func (t *planRouter) updatePlanConfig(c *gin.Context) { method deletePlanConfig (line 72) | func (t *planRouter) deletePlanConfig(c *gin.Context) { method getPlanConfig (line 91) | func (t *planRouter) getPlanConfig(c *gin.Context) { FILE: api/server/router/plan/node_routes.go type planNodeMeta (line 26) | type planNodeMeta struct method createPlanNode (line 32) | func (t *planRouter) createPlanNode(c *gin.Context) { method updatePlanNode (line 52) | func (t *planRouter) updatePlanNode(c *gin.Context) { method deletePlanNode (line 72) | func (t *planRouter) deletePlanNode(c *gin.Context) { method getPlanNode (line 91) | func (t *planRouter) getPlanNode(c *gin.Context) { method listPlanNodes (line 110) | func (t *planRouter) listPlanNodes(c *gin.Context) { FILE: api/server/router/plan/plan.go type planRouter (line 26) | type planRouter struct method initRoutes (line 37) | func (t *planRouter) initRoutes(ginEngine *gin.Engine) { function NewRouter (line 30) | func NewRouter(o *options.Options) { FILE: api/server/router/plan/plan_routes.go type planMeta (line 26) | type planMeta struct type watchTaskLogMeta (line 30) | type watchTaskLogMeta struct type WatchMeta (line 35) | type WatchMeta struct method createPlan (line 40) | func (t *planRouter) createPlan(c *gin.Context) { method updatePlan (line 56) | func (t *planRouter) updatePlan(c *gin.Context) { method deletePlan (line 76) | func (t *planRouter) deletePlan(c *gin.Context) { method getPlan (line 95) | func (t *planRouter) getPlan(c *gin.Context) { method getPlanWithSubResources (line 118) | func (t *planRouter) getPlanWithSubResources(c *gin.Context) { method listPlans (line 137) | func (t *planRouter) listPlans(c *gin.Context) { method startPlan (line 156) | func (t *planRouter) startPlan(c *gin.Context) { method stopPlan (line 175) | func (t *planRouter) stopPlan(c *gin.Context) { type DistributionsMeta (line 194) | type DistributionsMeta struct method getDistributions (line 202) | func (t *planRouter) getDistributions(c *gin.Context) { FILE: api/server/router/plan/task_routes.go type taskNodeMeta (line 25) | type taskNodeMeta struct method runTasks (line 31) | func (t *planRouter) runTasks(c *gin.Context) { method listTasks (line 37) | func (t *planRouter) listTasks(c *gin.Context) { method watchTaskLog (line 64) | func (t *planRouter) watchTaskLog(c *gin.Context) { FILE: api/server/router/proxy/helper.go function IsProxyPath (line 26) | func IsProxyPath(c *gin.Context) bool { FILE: api/server/router/proxy/proxy.go constant proxyBaseURL (line 34) | proxyBaseURL = "/pixiu/proxy" type proxyRouter (line 37) | type proxyRouter struct method initRoutes (line 48) | func (p *proxyRouter) initRoutes(ginEngine *gin.Engine) { method proxyHandler (line 55) | func (p *proxyRouter) proxyHandler(c *gin.Context) { method parseTarget (line 89) | func (p *proxyRouter) parseTarget(target url.URL, host string, name st... function NewRouter (line 41) | func NewRouter(o *options.Options) { FILE: api/server/router/router.go type RegisterFunc (line 44) | type RegisterFunc function InstallRouters (line 49) | func InstallRouters(o *options.Options) { function install (line 73) | func install(o *options.Options, fs ...RegisterFunc) { FILE: api/server/router/tenant/tenant.go type tenantRouter (line 26) | type tenantRouter struct method initRoutes (line 37) | func (t *tenantRouter) initRoutes(ginEngine *gin.Engine) { function NewRouter (line 30) | func NewRouter(o *options.Options) { FILE: api/server/router/tenant/tenant_routes.go type TenantMeta (line 26) | type TenantMeta struct method createTenant (line 30) | func (t *tenantRouter) createTenant(c *gin.Context) { method updateTenant (line 46) | func (t *tenantRouter) updateTenant(c *gin.Context) { method deleteTenant (line 70) | func (t *tenantRouter) deleteTenant(c *gin.Context) { method getTenant (line 89) | func (t *tenantRouter) getTenant(c *gin.Context) { method listTenants (line 108) | func (t *tenantRouter) listTenants(c *gin.Context) { FILE: api/server/router/user/user.go type userRouter (line 26) | type userRouter struct method initRoutes (line 37) | func (u *userRouter) initRoutes(httpEngine *gin.Engine) { function NewRouter (line 30) | func NewRouter(o *options.Options) { FILE: api/server/router/user/user_routes.go type IdMeta (line 26) | type IdMeta struct method createUser (line 44) | func (u *userRouter) createUser(c *gin.Context) { method updateUser (line 78) | func (u *userRouter) updateUser(c *gin.Context) { method updatePassword (line 113) | func (u *userRouter) updatePassword(c *gin.Context) { method deleteUser (line 147) | func (u *userRouter) deleteUser(c *gin.Context) { method getUser (line 180) | func (u *userRouter) getUser(c *gin.Context) { method listUsers (line 212) | func (u *userRouter) listUsers(c *gin.Context) { method login (line 243) | func (u *userRouter) login(c *gin.Context) { method logout (line 266) | func (u *userRouter) logout(c *gin.Context) { FILE: api/server/validator/helper.go function TranslateError (line 26) | func TranslateError(errs validator.ValidationErrors) string { FILE: api/server/validator/password.go function init (line 25) | func init() { type passwordValidator (line 32) | type passwordValidator struct method validate (line 37) | func (pv *passwordValidator) validate(fl validator.FieldLevel) bool { FILE: api/server/validator/rbac.go function init (line 26) | func init() { type objectValidator (line 34) | type objectValidator struct method validate (line 38) | func (ov *objectValidator) validate(fl validator.FieldLevel) bool { type operationValidator (line 44) | type operationValidator struct method validate (line 48) | func (ov *operationValidator) validate(fl validator.FieldLevel) bool { type stringIDValidator (line 54) | type stringIDValidator struct method validate (line 58) | func (sv *stringIDValidator) validate(fl validator.FieldLevel) bool { FILE: api/server/validator/validator.go type customValidator (line 27) | type customValidator interface function register (line 40) | func register(validators ...customValidator) { function init (line 44) | func init() { type pixiuValidator (line 59) | type pixiuValidator struct method getTag (line 71) | func (c pixiuValidator) getTag() string { method translateError (line 75) | func (c pixiuValidator) translateError(ut ut.Translator) error { method translate (line 79) | func (c pixiuValidator) translate(ut ut.Translator, fe validator.Field... function newPixiuValidator (line 64) | func newPixiuValidator(tag, err string) pixiuValidator { FILE: cmd/app/config/config.go type Mode (line 26) | type Mode method InDebug (line 33) | func (m Mode) InDebug() bool { constant DebugMode (line 29) | DebugMode Mode = "debug" constant ReleaseMode (line 30) | ReleaseMode Mode = "release" type Config (line 37) | type Config struct method Valid (line 117) | func (c *Config) Valid() (err error) { type DefaultOptions (line 45) | type DefaultOptions struct method Valid (line 62) | func (o DefaultOptions) Valid() error { type MysqlOptions (line 70) | type MysqlOptions struct method Valid (line 78) | func (o MysqlOptions) Valid() error { type WorkerOptions (line 83) | type WorkerOptions struct method Valid (line 93) | func (w WorkerOptions) Valid() error { type Engine (line 88) | type Engine struct type TLS (line 98) | type TLS struct method Valid (line 103) | func (t *TLS) Valid() error { FILE: cmd/app/options/options.go constant maxIdleConns (line 46) | maxIdleConns = 10 constant maxOpenConns (line 47) | maxOpenConns = 100 constant defaultListen (line 49) | defaultListen = 8080 constant defaultTokenKey (line 50) | defaultTokenKey = "pixiu" constant defaultConfigFile (line 51) | defaultConfigFile = "/etc/pixiu/config.yaml" constant defaultLogFormat (line 52) | defaultLogFormat = logutil.LogFormatJson constant defaultWorkDir (line 53) | defaultWorkDir = "/etc/pixiu" constant defaultStaticDir (line 54) | defaultStaticDir = "/static" constant defaultAdminUser (line 56) | defaultAdminUser = "admin" constant defaultAdminPassword (line 57) | defaultAdminPassword = "Pixiu123456!" constant defaultSlowSQLDuration (line 59) | defaultSlowSQLDuration = 1 * time.Second constant rulesTableName (line 61) | rulesTableName = "rules" type Options (line 65) | type Options struct method Complete (line 93) | func (o *Options) Complete() error { method BindFlags (line 166) | func (o *Options) BindFlags(cmd *cobra.Command) { method register (line 170) | func (o *Options) register() error { method registerEnforcer (line 185) | func (o *Options) registerEnforcer() error { method registerDatabase (line 206) | func (o *Options) registerDatabase() error { method Validate (line 237) | func (o *Options) Validate() error { method bootstrapRootUser (line 245) | func (o *Options) bootstrapRootUser() error { function NewOptions (line 85) | func NewOptions() (*Options, error) { FILE: cmd/app/server.go function NewServerCommand (line 35) | func NewServerCommand(version string) *cobra.Command { function Run (line 84) | func Run(opt *options.Options) error { FILE: cmd/pixiuserver.go function main (line 51) | func main() { FILE: hack/tools/licfmt/licfmt.go constant tpml (line 35) | tpml = `/* function init (line 58) | func init() { type stringSlice (line 62) | type stringSlice method String (line 64) | func (i *stringSlice) String() string { method Set (line 68) | func (i *stringSlice) Set(value string) error { type file (line 73) | type file struct function main (line 78) | func main() { function walk (line 129) | func walk(ch chan<- *file, root string) error { function match (line 149) | func match(path string, patterns []string) bool { function hasLicense (line 159) | func hasLicense(header []byte) bool { function notAlowEditd (line 164) | func notAlowEditd(header []byte) bool { function addLicenseHeader (line 170) | func addLicenseHeader(path, license string, fmode os.FileMode) (bool, er... function scanLines (line 232) | func scanLines(file *os.File) (buf bytes.Buffer, dropped int64) { FILE: pkg/client/cache.go type PixiuInformer (line 46) | type PixiuInformer struct method NodesLister (line 51) | func (p PixiuInformer) NodesLister() v1.NodeLister { method PodsLister (line 55) | func (p PixiuInformer) PodsLister() v1.PodLister { method NamespacesLister (line 59) | func (p PixiuInformer) NamespacesLister() v1.NamespaceLister { method DeploymentsLister (line 63) | func (p PixiuInformer) DeploymentsLister() appsv1.DeploymentLister { method StatefulSetsLister (line 67) | func (p *PixiuInformer) StatefulSetsLister() appsv1.StatefulSetLister { method DaemonSetsLister (line 71) | func (p *PixiuInformer) DaemonSetsLister() appsv1.DaemonSetLister { method CronJobsLister (line 75) | func (p *PixiuInformer) CronJobsLister() batchv1.CronJobLister { method JobsLister (line 79) | func (p *PixiuInformer) JobsLister() batchv1.JobLister { return p.Shar... type ClusterSet (line 81) | type ClusterSet struct method Complete (line 88) | func (cs *ClusterSet) Complete(cfg []byte) error { function NewSharedInformers (line 111) | func NewSharedInformers(c *restclient.Config) (informers.SharedInformerF... type store (line 133) | type store type Cache (line 135) | type Cache struct method Get (line 146) | func (s *Cache) Get(name string) (ClusterSet, bool) { method GetConfig (line 154) | func (s *Cache) GetConfig(name string) (*restclient.Config, bool) { method GetClient (line 165) | func (s *Cache) GetClient(name string) (*kubernetes.Clientset, bool) { method Set (line 177) | func (s *Cache) Set(name string, cs ClusterSet) { method Delete (line 187) | func (s *Cache) Delete(name string) { method List (line 202) | func (s *Cache) List() store { method Clear (line 209) | func (s *Cache) Clear() { function NewClusterCache (line 140) | func NewClusterCache() *Cache { FILE: pkg/client/client.go function ParseKubeConfigBytes (line 26) | func ParseKubeConfigBytes(cfg string) ([]byte, error) { function NewClientSetFromBytes (line 35) | func NewClientSetFromBytes(data []byte) (*kubernetes.Clientset, error) { function NewClientSetFromString (line 44) | func NewClientSetFromString(cfg string) (*kubernetes.Clientset, error) { function NewClusterSet (line 53) | func NewClusterSet(cfg string) (*ClusterSet, error) { FILE: pkg/client/helm.go type HelmRESTClientGetter (line 29) | type HelmRESTClientGetter struct method ToDiscoveryClient (line 36) | func (h *HelmRESTClientGetter) ToDiscoveryClient() (discovery.CachedDi... method ToRESTConfig (line 46) | func (h *HelmRESTClientGetter) ToRESTConfig() (*rest.Config, error) { method ToRESTMapper (line 51) | func (h *HelmRESTClientGetter) ToRESTMapper() (meta.RESTMapper, error) { method ToRawKubeConfigLoader (line 62) | func (h *HelmRESTClientGetter) ToRawKubeConfigLoader() clientcmd.Clien... function NewHelmRESTClientGetter (line 69) | func NewHelmRESTClientGetter(kubeConfig *rest.Config) *HelmRESTClientGet... FILE: pkg/client/task.go type WrapObject (line 29) | type WrapObject struct type Task (line 34) | type Task struct method SetLister (line 48) | func (t *Task) SetLister(Lister func(ctx context.Context, planId int64... method Get (line 55) | func (t *Task) Get(planId int64) ([]model.Task, bool) { method Set (line 69) | func (t *Task) Set(planId int64, tasks []model.Task) { method SetByTask (line 85) | func (t *Task) SetByTask(planId int64, task model.Task) { method Delete (line 115) | func (t *Task) Delete(planId int64) { method WaitForCacheSync (line 124) | func (t *Task) WaitForCacheSync(planId int64) error { method syncTasks (line 139) | func (t *Task) syncTasks() { method Run (line 173) | func (t *Task) Run() { function NewTaskCache (line 41) | func NewTaskCache() *Task { FILE: pkg/client/token_cache.go type TokenCache (line 23) | type TokenCache struct method Get (line 34) | func (s *TokenCache) Get(uid int64) (string, bool) { method Set (line 42) | func (s *TokenCache) Set(uid int64, token string) { method Delete (line 52) | func (s *TokenCache) Delete(uid int64) { method Clear (line 59) | func (s *TokenCache) Clear() { function NewTokenCache (line 28) | func NewTokenCache() *TokenCache { FILE: pkg/client/user_cache.go type UserCache (line 21) | type UserCache struct method Get (line 32) | func (s *UserCache) Get(uid int64) (int, bool) { method Set (line 40) | func (s *UserCache) Set(uid int64, status int) { method Delete (line 50) | func (s *UserCache) Delete(uid int64) { method Clear (line 57) | func (s *UserCache) Clear() { function NewUserCache (line 26) | func NewUserCache() *UserCache { FILE: pkg/controller/audit/audit.go type AuditGetter (line 32) | type AuditGetter interface type Interface (line 36) | type Interface interface type audit (line 41) | type audit struct method Get (line 46) | func (a *audit) Get(ctx context.Context, aid int64) (*types.Audit, err... method List (line 58) | func (a *audit) List(ctx context.Context, listOption types.AuditListOp... method model2Type (line 131) | func (a *audit) model2Type(o *model.Audit) *types.Audit { function buildAuditFilterOpts (line 101) | func buildAuditFilterOpts(opt types.AuditListOptions) []db.Options { function NewAudit (line 155) | func NewAudit(cfg config.Config, f db.ShareDaoFactory) *audit { FILE: pkg/controller/auth/auth.go type AuthGetter (line 34) | type AuthGetter interface type Interface (line 39) | type Interface interface type auth (line 50) | type auth struct method getPolicy (line 63) | func (a *auth) getPolicy(ctx context.Context, req *types.RBACPolicyReq... method getBinding (line 81) | func (a *auth) getBinding(ctx context.Context, req *types.GroupBinding... method CreateRBACPolicy (line 103) | func (a *auth) CreateRBACPolicy(ctx context.Context, req *types.RBACPo... method DeleteRBACPolicy (line 121) | func (a *auth) DeleteRBACPolicy(ctx context.Context, req *types.RBACPo... method ListRBACPolicies (line 155) | func (a *auth) ListRBACPolicies(ctx context.Context, req *types.ListRB... method CreateGroupBinding (line 189) | func (a *auth) CreateGroupBinding(ctx context.Context, req *types.Grou... method DeleteGroupBinding (line 207) | func (a *auth) DeleteGroupBinding(ctx context.Context, req *types.Grou... method ListGroupBindings (line 225) | func (a *auth) ListGroupBindings(ctx context.Context, req *types.ListG... function NewAuth (line 55) | func NewAuth(factory db.ShareDaoFactory, enforcer *casbin.SyncedEnforcer... function model2Type (line 265) | func model2Type(policy model.Policy) *types.RBACPolicy { FILE: pkg/controller/cluster/cluster.go type ClusterGetter (line 56) | type ClusterGetter interface type Interface (line 60) | type Interface interface function init (line 99) | func init() { type listerFunc (line 104) | type listerFunc type getterFunc (line 105) | type getterFunc type InformerResource (line 108) | type InformerResource struct type cluster (line 115) | type cluster struct method preCreate (line 124) | func (c *cluster) preCreate(ctx context.Context, req *types.CreateClus... method Create (line 132) | func (c *cluster) Create(ctx context.Context, req *types.CreateCluster... method Update (line 178) | func (c *cluster) Update(ctx context.Context, cid int64, req *types.Up... method preDelete (line 206) | func (c *cluster) preDelete(ctx context.Context, cid int64) (cluster *... method Delete (line 224) | func (c *cluster) Delete(ctx context.Context, cid int64) error { method Get (line 249) | func (c *cluster) Get(ctx context.Context, cid int64) (*types.Cluster,... method List (line 261) | func (c *cluster) List(ctx context.Context, req *types.ListClusterRequ... method Ping (line 304) | func (c *cluster) Ping(ctx context.Context, kubeConfig string) error { method Protect (line 323) | func (c *cluster) Protect(ctx context.Context, cid int64, req *types.P... method GetEventList (line 334) | func (c *cluster) GetEventList(ctx context.Context, cluster string, op... method WatchPodLog (line 366) | func (c *cluster) WatchPodLog(ctx context.Context, cluster string, nam... method ReRunJob (line 419) | func (c *cluster) ReRunJob(ctx context.Context, cluster string, namesp... method AggregateEvents (line 470) | func (c *cluster) AggregateEvents(ctx context.Context, cluster string,... method GetKubeObjectByLabel (line 571) | func (c *cluster) GetKubeObjectByLabel(Client *kubernetes.Clientset, n... method GetKubeConfigByName (line 616) | func (c *cluster) GetKubeConfigByName(ctx context.Context, name string... method GetClusterSetByName (line 626) | func (c *cluster) GetClusterSetByName(ctx context.Context, name string... method GetKubernetesMeta (line 654) | func (c *cluster) GetKubernetesMeta(ctx context.Context, clusterName s... method GetKubernetesMetaFromPlan (line 688) | func (c *cluster) GetKubernetesMetaFromPlan(ctx context.Context, planI... method makeFieldSelector (line 710) | func (c *cluster) makeFieldSelector(uid apitypes.UID, name string, nam... method parseKubernetesResource (line 729) | func (c *cluster) parseKubernetesResource(nodeMetrics []v1beta1.NodeMe... method model2Type (line 782) | func (c *cluster) model2Type(o *model.Cluster) *types.Cluster { method GetClusterStatusFromPlanTask (line 837) | func (c *cluster) GetClusterStatusFromPlanTask(planId int64) (model.Cl... method registerIndexers (line 862) | func (c *cluster) registerIndexers(informerResources ...InformerResour... method Run (line 869) | func (c *cluster) Run(ctx context.Context, workers int) error { method Sync (line 877) | func (c *cluster) Sync(ctx context.Context) { constant Retries (line 416) | Retries = 3 function parseFloat64FromString (line 768) | func parseFloat64FromString(s string) float64 { function NewCluster (line 881) | func NewCluster(cfg config.Config, f db.ShareDaoFactory, e *casbin.Synce... FILE: pkg/controller/cluster/informer.go constant ResourceNode (line 34) | ResourceNode = "node" constant ResourcePod (line 35) | ResourcePod = "pod" constant ResourceDeployment (line 36) | ResourceDeployment = "deployment" constant ResourceStatefulSet (line 37) | ResourceStatefulSet = "statefulset" constant ResourceDaemonSet (line 38) | ResourceDaemonSet = "daemonset" constant ResourceCronJob (line 39) | ResourceCronJob = "cronjob" constant ResourceJob (line 40) | ResourceJob = "job" method GetIndexerResource (line 43) | func (c *cluster) GetIndexerResource(ctx context.Context, cluster string... method GetPod (line 60) | func (c *cluster) GetPod(ctx context.Context, podsLister v1.PodLister, n... method GetDeployment (line 70) | func (c *cluster) GetDeployment(ctx context.Context, deploymentsLister l... method GetStatefulSet (line 80) | func (c *cluster) GetStatefulSet(ctx context.Context, statefulSetsLister... method GetDaemonSet (line 90) | func (c *cluster) GetDaemonSet(ctx context.Context, daemonSetsLister lis... method GetCronJob (line 100) | func (c *cluster) GetCronJob(ctx context.Context, cronJobsLister listers... method GetJob (line 110) | func (c *cluster) GetJob(ctx context.Context, cronJobsLister listersbatc... method GetNode (line 120) | func (c *cluster) GetNode(ctx context.Context, nodesLister v1.NodeLister... method ListIndexerResources (line 130) | func (c *cluster) ListIndexerResources(ctx context.Context, cluster stri... method ListPods (line 149) | func (c *cluster) ListPods(ctx context.Context, podsLister v1.PodLister,... method ListDeployments (line 164) | func (c *cluster) ListDeployments(ctx context.Context, deploymentsLister... method ListStatefulSets (line 177) | func (c *cluster) ListStatefulSets(ctx context.Context, statefulSetsList... method ListDaemonSets (line 190) | func (c *cluster) ListDaemonSets(ctx context.Context, daemonSetsLister l... method ListCronJobs (line 203) | func (c *cluster) ListCronJobs(ctx context.Context, cronJobsLister liste... method ListJobs (line 216) | func (c *cluster) ListJobs(ctx context.Context, jobsLister listersbatchv... method ListNodes (line 229) | func (c *cluster) ListNodes(ctx context.Context, nodesLister v1.NodeList... FILE: pkg/controller/cluster/util.go method forQuery (line 28) | func (c *cluster) forQuery(objects []metav1.Object, queryOption types.Qu... method forPage (line 46) | func (c *cluster) forPage(objects []metav1.Object, pageOption types.Page... method forSorted (line 58) | func (c *cluster) forSorted(objects []metav1.Object, namespace string) [... method listObjects (line 72) | func (c *cluster) listObjects(objects []metav1.Object, namespace string,... FILE: pkg/controller/cluster/ws.go method WsHandler (line 37) | func (c *cluster) WsHandler(ctx context.Context, opt *types.WebShellOpti... method WsNodeHandler (line 97) | func (c *cluster) WsNodeHandler(ctx context.Context, sshConfig *types.We... function handler (line 131) | func handler(turn *types.Turn) { FILE: pkg/controller/controller.go type PixiuInterface (line 33) | type PixiuInterface interface type pixiu (line 43) | type pixiu struct method Cluster (line 49) | func (p *pixiu) Cluster() cluster.Interface { return cluster.NewCluste... method Tenant (line 50) | func (p *pixiu) Tenant() tenant.Interface { return tenant.NewTenant(... method User (line 51) | func (p *pixiu) User() user.Interface { return user.NewUser(p.cc... method Plan (line 52) | func (p *pixiu) Plan() plan.Interface { return plan.NewPlan(p.cc... method Audit (line 53) | func (p *pixiu) Audit() audit.Interface { return audit.NewAudit(p.... method Auth (line 54) | func (p *pixiu) Auth() auth.Interface { return auth.NewAuth(p.fa... method Helm (line 55) | func (p *pixiu) Helm() helm.Interface { return helm.NewHelm(p.fa... function New (line 57) | func New(cfg config.Config, f db.ShareDaoFactory, enforcer *casbin.Synce... FILE: pkg/controller/helm/helm.go type HelmGetter (line 31) | type HelmGetter interface type Interface (line 35) | type Interface interface type Helm (line 40) | type Helm struct method Release (line 44) | func (h *Helm) Release(cluster, namespace string) ReleaseInterface { method Repository (line 59) | func (h *Helm) Repository() RepositoryInterface { method MustGetClusterSetByName (line 69) | func (h *Helm) MustGetClusterSetByName(ctx context.Context, name strin... function NewHelm (line 63) | func NewHelm(factory db.ShareDaoFactory) Interface { FILE: pkg/controller/helm/releases.go type ReleaseInterface (line 37) | type ReleaseInterface interface type Releases (line 48) | type Releases struct method Get (line 62) | func (r *Releases) Get(ctx context.Context, name string) (*release.Rel... method List (line 67) | func (r *Releases) List(ctx context.Context) ([]*release.Release, erro... method Install (line 73) | func (r *Releases) Install(ctx context.Context, form *types.Release) (... method Uninstall (line 94) | func (r *Releases) Uninstall(ctx context.Context, name string) (*relea... method Upgrade (line 100) | func (r *Releases) Upgrade(ctx context.Context, form *types.Release) (... method History (line 120) | func (r *Releases) History(ctx context.Context, name string) ([]*relea... method Rollback (line 125) | func (r *Releases) Rollback(ctx context.Context, name string, toVersio... method locateChart (line 137) | func (r *Releases) locateChart(pathOpts action.ChartPathOptions, chart... function NewReleases (line 53) | func NewReleases(actionConfig *action.Configuration, settings *cli.EnvSe... function checkIfInstallable (line 199) | func checkIfInstallable(ch *chart.Chart) error { FILE: pkg/controller/helm/repository.go type RepositoryGetter (line 38) | type RepositoryGetter interface type RepositoryInterface (line 42) | type RepositoryInterface interface type Repository (line 54) | type Repository struct method Create (line 69) | func (r *Repository) Create(ctx context.Context, repo *types.CreateRep... method Delete (line 83) | func (r *Repository) Delete(ctx context.Context, id int64) error { method Get (line 87) | func (r *Repository) Get(ctx context.Context, id int64) (*model.Reposi... method GetByName (line 91) | func (r *Repository) GetByName(ctx context.Context, name string) (*mod... method List (line 95) | func (r *Repository) List(ctx context.Context) ([]*model.Repository, e... method Update (line 99) | func (r *Repository) Update(ctx context.Context, id int64, update *typ... method GetChartsById (line 109) | func (r *Repository) GetChartsById(ctx context.Context, id int64) (*mo... method GetChartsByURL (line 124) | func (r *Repository) GetChartsByURL(ctx context.Context, repoURL strin... method GetChartValues (line 131) | func (r *Repository) GetChartValues(_ context.Context, chart, version ... method resolveReferenceURL (line 147) | func (r *Repository) resolveReferenceURL(baseURL, refURL string) (stri... method fetch (line 170) | func (r *Repository) fetch(_ context.Context, entry *repo.Entry) (*mod... function NewRepository (line 60) | func NewRepository(f db.ShareDaoFactory) *Repository { FILE: pkg/controller/plan/bootstrap_servers.go type BootStrap (line 26) | type BootStrap struct method Name (line 33) | func (b BootStrap) Name() string { return "初始化部署环境" } method Run (line 36) | func (b BootStrap) Run() error { FILE: pkg/controller/plan/checker.go type Check (line 19) | type Check struct method Name (line 23) | func (c Check) Name() string { return "部署预检查" } method Run (line 24) | func (c Check) Run() error { FILE: pkg/controller/plan/deploy.go type Deploy (line 27) | type Deploy struct method Name (line 34) | func (b Deploy) Name() string { return "部署Master" } method Run (line 37) | func (b Deploy) Run() error { type DeployNode (line 55) | type DeployNode struct method Name (line 59) | func (b DeployNode) Name() string { return "部署Node" } method Run (line 62) | func (b DeployNode) Run() error { type DeployChart (line 66) | type DeployChart struct method Name (line 70) | func (b DeployChart) Name() string { return "部署基础组件" } method Step (line 71) | func (b DeployChart) Step() model.PlanStep { return model.CompletedPla... method Run (line 74) | func (b DeployChart) Run() error { FILE: pkg/controller/plan/plan.go type PlanGetter (line 39) | type PlanGetter interface type Interface (line 43) | type Interface interface function init (line 80) | func init() { type plan (line 85) | type plan struct method Create (line 96) | func (p *plan) Create(ctx context.Context, req *types.CreatePlanReques... method createPlanSubResources (line 129) | func (p *plan) createPlanSubResources(ctx context.Context, req *types.... method Update (line 165) | func (p *plan) Update(ctx context.Context, planId int64, req *types.Up... method preDelete (line 196) | func (p *plan) preDelete(ctx context.Context, planId int64) error { method Delete (line 212) | func (p *plan) Delete(ctx context.Context, planId int64) error { method Get (line 244) | func (p *plan) Get(ctx context.Context, pid int64) (*types.Plan, error) { method GetWithSubResources (line 258) | func (p *plan) GetWithSubResources(ctx context.Context, planId int64) ... method List (line 279) | func (p *plan) List(ctx context.Context, req *types.ListPlanRequest) (... method listAll (line 326) | func (p *plan) listAll(ctx context.Context) ([]types.Plan, error) { method SyncTaskStatus (line 344) | func (p *plan) SyncTaskStatus(ctx context.Context) error { method preStart (line 377) | func (p *plan) preStart(ctx context.Context, pid int64) error { method TaskIsRunning (line 415) | func (p *plan) TaskIsRunning(ctx context.Context, planId int64) (bool,... method Start (line 432) | func (p *plan) Start(ctx context.Context, pid int64) error { method Stop (line 442) | func (p *plan) Stop(ctx context.Context, pid int64) error { method model2Type (line 446) | func (p *plan) model2Type(o *model.Plan) (*types.Plan, error) { function NewPlan (line 498) | func NewPlan(cfg config.Config, f db.ShareDaoFactory) *plan { FILE: pkg/controller/plan/plan_config.go method preCreateConfig (line 30) | func (p *plan) preCreateConfig(ctx context.Context, planId int64, req *t... method CreateConfig (line 39) | func (p *plan) CreateConfig(ctx context.Context, pid int64, req *types.C... method UpdateConfig (line 61) | func (p *plan) UpdateConfig(ctx context.Context, pid int64, cfgId int64,... method UpdateConfigIfNeeded (line 67) | func (p *plan) UpdateConfigIfNeeded(ctx context.Context, planId int64, r... method DeleteConfig (line 126) | func (p *plan) DeleteConfig(ctx context.Context, pid int64, cfgId int64)... method GetConfig (line 135) | func (p *plan) GetConfig(ctx context.Context, pid int64) (*types.PlanCon... method buildAndCleanKubernetesConfig (line 145) | func (p *plan) buildAndCleanKubernetesConfig(ks types.KubernetesSpec) (s... method buildPlanConfig (line 158) | func (p *plan) buildPlanConfig(ctx context.Context, req *types.CreatePla... method modelConfig2Type (line 186) | func (p *plan) modelConfig2Type(o *model.Config) (*types.PlanConfig, err... FILE: pkg/controller/plan/plan_node.go method preCreateNode (line 33) | func (p *plan) preCreateNode(ctx context.Context, pid int64, req *types.... method CreateNode (line 42) | func (p *plan) CreateNode(ctx context.Context, pid int64, req *types.Cre... method CreateNodes (line 53) | func (p *plan) CreateNodes(ctx context.Context, planId int64, nodes []ty... method UpdateNode (line 66) | func (p *plan) UpdateNode(ctx context.Context, pid int64, nodeId int64, ... method updateNodesIfNeeded (line 73) | func (p *plan) updateNodesIfNeeded(ctx context.Context, planId int64, re... method buildNodeFromRequest (line 114) | func (p *plan) buildNodeFromRequest(planId int64, req *types.CreatePlanN... method createNode (line 130) | func (p *plan) createNode(ctx context.Context, planId int64, req *types.... method DeleteNode (line 144) | func (p *plan) DeleteNode(ctx context.Context, pid int64, nodeId int64) ... method GetNode (line 153) | func (p *plan) GetNode(ctx context.Context, pid int64, nodeId int64) (*t... method ListNodes (line 163) | func (p *plan) ListNodes(ctx context.Context, pid int64) ([]types.PlanNo... method CreateOrUpdateNode (line 183) | func (p *plan) CreateOrUpdateNode(ctx context.Context, object *model.Nod... method modelNode2Type (line 208) | func (p *plan) modelNode2Type(o *model.Node) (*types.PlanNode, error) { method buildNodeUpdates (line 231) | func (p *plan) buildNodeUpdates(old, object *model.Node) map[string]inte... FILE: pkg/controller/plan/plan_task.go method RunTask (line 37) | func (p *plan) RunTask(ctx context.Context, planId int64, taskId int64) ... method ListTasks (line 41) | func (p *plan) ListTasks(ctx context.Context, planId int64) ([]types.Pla... method WatchTasks (line 56) | func (p *plan) WatchTasks(ctx context.Context, planId int64, w http.Resp... method WatchTaskLog (line 96) | func (p *plan) WatchTaskLog(ctx context.Context, planId int64, taskId in... method modelTask2Type (line 157) | func (p *plan) modelTask2Type(o *model.Task) *types.PlanTask { method modelTask2TypeList (line 174) | func (p *plan) modelTask2TypeList(o []*model.Task) []types.PlanTask { FILE: pkg/controller/plan/register.go constant KubeConfigFile (line 38) | KubeConfigFile = "/etc/kubernetes/admin.conf" type Register (line 41) | type Register struct method Name (line 47) | func (c Register) Name() string { return "集群注册" } method Run (line 48) | func (c Register) Run() error { function getKubeConfigFromMasterNode (line 91) | func getKubeConfigFromMasterNode(maserNode model.Node) ([]byte, error) { function newSftpClient (line 112) | func newSftpClient(node model.Node) (*sftp.Client, error) { FILE: pkg/controller/plan/render.go type Render (line 37) | type Render struct method Name (line 43) | func (r Render) Name() string { return "配置渲染" } method Run (line 44) | func (r Render) Run() error { method doRender (line 69) | func (r Render) doRender(name string, text string, data interface{}) e... type Multinode (line 88) | type Multinode struct function ParseMultinode (line 95) | func ParseMultinode(data TaskData, workDir string) (Multinode, error) { function GetRenderFile (line 159) | func GetRenderFile(planId int64, workDir string, f string) (string, erro... function RenderRSA (line 168) | func RenderRSA(planId int64, name string, workDir string, auth types.Pla... function GetRSAFile (line 186) | func GetRSAFile(planId int64, workDir string, name string) (string, erro... function ParseConfig (line 195) | func ParseConfig(data TaskData) (*types.PlanConfig, error) { FILE: pkg/controller/plan/worker.go type Handler (line 31) | type Handler interface type handlerTask (line 39) | type handlerTask struct method GetPlanId (line 43) | func (t handlerTask) GetPlanId() int64 { return t.data.PlanId } method Step (line 44) | func (t handlerTask) Step() model.PlanStep { return model.RunningPlanS... function newHandlerTask (line 46) | func newHandlerTask(data TaskData) handlerTask { method Run (line 50) | func (p *plan) Run(ctx context.Context, workers int) error { method worker (line 65) | func (p *plan) worker(ctx context.Context) { method process (line 70) | func (p *plan) process(ctx context.Context) bool { type TaskData (line 81) | type TaskData struct method validate (line 87) | func (t TaskData) validate() error { method getTaskData (line 91) | func (p *plan) getTaskData(ctx context.Context, planId int64) (TaskData,... method syncHandler (line 114) | func (p *plan) syncHandler(ctx context.Context, planId int64) { method createPlanTasksIfNotExist (line 146) | func (p *plan) createPlanTasksIfNotExist(tasks ...Handler) error { method WorkDir (line 179) | func (p *plan) WorkDir() string { method GetRunner (line 183) | func (p *plan) GetRunner(osImage string) (string, error) { method syncStatus (line 198) | func (p *plan) syncStatus(ctx context.Context, planId int64) error { method syncTasks (line 218) | func (p *plan) syncTasks(tasks ...Handler) error { FILE: pkg/controller/tenant/tenant.go type TenantGetter (line 31) | type TenantGetter interface type Interface (line 35) | type Interface interface type tenant (line 43) | type tenant struct method Create (line 48) | func (t *tenant) Create(ctx context.Context, req *types.CreateTenantRe... method Update (line 73) | func (t *tenant) Update(ctx context.Context, tid int64, req *types.Upd... method Delete (line 99) | func (t *tenant) Delete(ctx context.Context, tid int64) error { method Get (line 109) | func (t *tenant) Get(ctx context.Context, tid int64) (*types.Tenant, e... method List (line 121) | func (t *tenant) List(ctx context.Context) ([]types.Tenant, error) { method model2Type (line 135) | func (t *tenant) model2Type(o *model.Tenant) *types.Tenant { function NewTenant (line 150) | func NewTenant(cfg config.Config, f db.ShareDaoFactory) *tenant { FILE: pkg/controller/user/user.go function init (line 42) | func init() { type UserGetter (line 47) | type UserGetter interface type Interface (line 51) | type Interface interface type user (line 70) | type user struct method Create (line 76) | func (u *user) Create(ctx context.Context, req *types.CreateUserReques... method Update (line 129) | func (u *user) Update(ctx context.Context, uid int64, req *types.Updat... method preResetPassword (line 145) | func (u *user) preResetPassword(ctx context.Context, userId int64, ope... method preChangePassword (line 158) | func (u *user) preChangePassword(ctx context.Context, userId int64, op... method UpdatePassword (line 178) | func (u *user) UpdatePassword(ctx context.Context, userId int64, req *... method Delete (line 217) | func (u *user) Delete(ctx context.Context, userId int64) error { method Get (line 228) | func (u *user) Get(ctx context.Context, userId int64) (*types.User, er... method List (line 241) | func (u *user) List(ctx context.Context, req *types.ListUserRequest) (... method GetCount (line 286) | func (u *user) GetCount(ctx context.Context, opts types.ListOptions) (... method GetStatus (line 297) | func (u *user) GetStatus(ctx context.Context, uid int64) (int, error) { method Login (line 316) | func (u *user) Login(ctx context.Context, req *types.LoginRequest) (*t... method Logout (line 354) | func (u *user) Logout(ctx context.Context, userId int64) error { method GetLoginToken (line 359) | func (u *user) GetLoginToken(ctx context.Context, userId int64) (strin... method GetTokenKey (line 368) | func (u *user) GetTokenKey() []byte { function model2Type (line 374) | func model2Type(o *model.User) *types.User { function NewUser (line 393) | func NewUser(cfg config.Config, f db.ShareDaoFactory, e *casbin.SyncedEn... FILE: pkg/controller/util/util.go function MakeDbOptions (line 31) | func MakeDbOptions(ctx context.Context) (opts []db.Options) { function SetIdRangeContext (line 39) | func SetIdRangeContext(c *gin.Context, enforcer *casbin.SyncedEnforcer, ... type BindingQueryCondition (line 65) | type BindingQueryCondition function QueryWithGroupName (line 67) | func QueryWithGroupName(name string) BindingQueryCondition { function QueryWithUserName (line 74) | func QueryWithUserName(name string) BindingQueryCondition { function GetGroupBindings (line 81) | func GetGroupBindings(enforcer *casbin.SyncedEnforcer, conds ...BindingQ... type policyConditions (line 102) | type policyConditions struct method get (line 112) | func (c *policyConditions) get() (conds []string) { function newPolicyConditions (line 106) | func newPolicyConditions(name string) *policyConditions { type PolicyCondition (line 123) | type PolicyCondition function WithObjectType (line 125) | func WithObjectType(t model.ObjectType) PolicyCondition { function WithStringID (line 132) | func WithStringID(sid string) PolicyCondition { function WithOperation (line 138) | func WithOperation(op model.Operation) PolicyCondition { function GetUserPolicies (line 145) | func GetUserPolicies(enforcer *casbin.SyncedEnforcer, user *model.User, ... function GetGroupPolicy (line 162) | func GetGroupPolicy(enforcer *casbin.SyncedEnforcer, name string) (*mode... FILE: pkg/db/audit.go type AuditInterface (line 29) | type AuditInterface interface type audit (line 38) | type audit struct method Create (line 46) | func (a *audit) Create(ctx context.Context, object *model.Audit) (*mod... method Get (line 57) | func (a *audit) Get(ctx context.Context, aid int64) (*model.Audit, err... method List (line 68) | func (a *audit) List(ctx context.Context, opts ...Options) ([]model.Au... method BatchDelete (line 81) | func (a *audit) BatchDelete(ctx context.Context, opts ...Options) (int... method Count (line 91) | func (a *audit) Count(ctx context.Context, opts ...Options) (int64, er... function newAudit (line 42) | func newAudit(db *gorm.DB) AuditInterface { FILE: pkg/db/cluster.go type ClusterInterface (line 29) | type ClusterInterface interface type cluster (line 44) | type cluster struct method Create (line 48) | func (c *cluster) Create(ctx context.Context, object *model.Cluster, f... method Update (line 70) | func (c *cluster) Update(ctx context.Context, cid int64, resourceVersi... method InternalUpdate (line 87) | func (c *cluster) InternalUpdate(ctx context.Context, cid int64, updat... method Delete (line 101) | func (c *cluster) Delete(ctx context.Context, cluster *model.Cluster, ... method Get (line 120) | func (c *cluster) Get(ctx context.Context, cid int64, opts ...Options)... method List (line 136) | func (c *cluster) List(ctx context.Context, opts ...Options) ([]model.... method Count (line 149) | func (c *cluster) Count(ctx context.Context, opts ...Options) (int64, ... method GetClusterByName (line 161) | func (c *cluster) GetClusterByName(ctx context.Context, name string) (... method UpdateByPlan (line 173) | func (c *cluster) UpdateByPlan(ctx context.Context, planId int64, upda... function newCluster (line 187) | func newCluster(db *gorm.DB) ClusterInterface { FILE: pkg/db/factory.go type ShareDaoFactory (line 23) | type ShareDaoFactory interface type shareDaoFactory (line 32) | type shareDaoFactory struct method Cluster (line 36) | func (f *shareDaoFactory) Cluster() ClusterInterface { return ne... method Tenant (line 37) | func (f *shareDaoFactory) Tenant() TenantInterface { return ne... method User (line 38) | func (f *shareDaoFactory) User() UserInterface { return ne... method Plan (line 39) | func (f *shareDaoFactory) Plan() PlanInterface { return ne... method Audit (line 40) | func (f *shareDaoFactory) Audit() AuditInterface { return ne... method Repository (line 41) | func (f *shareDaoFactory) Repository() RepositoryInterface { return ne... function NewDaoFactory (line 43) | func NewDaoFactory(db *gorm.DB, migrate bool) (ShareDaoFactory, error) { FILE: pkg/db/logger.go type SQLs (line 27) | type SQLs type DBLogger (line 29) | type DBLogger struct method LogMode (line 44) | func (l *DBLogger) LogMode(level logger.LogLevel) logger.Interface { method Info (line 49) | func (l *DBLogger) Info(ctx context.Context, msg string, data ...inter... method Warn (line 51) | func (l *DBLogger) Warn(ctx context.Context, msg string, data ...inter... method Error (line 53) | func (l *DBLogger) Error(ctx context.Context, msg string, data ...inte... method Trace (line 55) | func (l *DBLogger) Trace(ctx context.Context, begin time.Time, fc func... constant SQLContextKey (line 35) | SQLContextKey = "sqls" function NewLogger (line 37) | func NewLogger(level logger.LogLevel, slowThreshold time.Duration) *DBLo... function WithDBContext (line 67) | func WithDBContext(ctx context.Context) context.Context { function GetSQLs (line 72) | func GetSQLs(ctx context.Context) SQLs { FILE: pkg/db/migrator.go type migrator (line 25) | type migrator struct method AutoMigrate (line 30) | func (m *migrator) AutoMigrate() error { method CreateTables (line 34) | func (m *migrator) CreateTables(dst ...interface{}) error { function newMigrator (line 48) | func newMigrator(db *gorm.DB) *migrator { FILE: pkg/db/model/audit.go function init (line 25) | func init() { type AuditOperationStatus (line 29) | type AuditOperationStatus method String (line 37) | func (s AuditOperationStatus) String() string { constant AuditOpFail (line 32) | AuditOpFail AuditOperationStatus = iota constant AuditOpSuccess (line 33) | AuditOpSuccess constant AuditOpUnknown (line 34) | AuditOpUnknown type Audit (line 48) | type Audit struct method String (line 65) | func (a *Audit) String() string { method TableName (line 70) | func (a *Audit) TableName() string { FILE: pkg/db/model/cluster.go function init (line 21) | func init() { type ClusterType (line 26) | type ClusterType constant ClusterTypeStandard (line 29) | ClusterTypeStandard ClusterType = iota constant ClusterTypeCustom (line 30) | ClusterTypeCustom type ClusterStatus (line 33) | type ClusterStatus constant ClusterStatusRunning (line 36) | ClusterStatusRunning ClusterStatus = iota constant ClusterStatusDeploy (line 37) | ClusterStatusDeploy constant ClusterStatusUnStart (line 38) | ClusterStatusUnStart constant ClusterStatusFailed (line 39) | ClusterStatusFailed constant ClusterStatusError (line 40) | ClusterStatusError type Cluster (line 44) | type Cluster struct method TableName (line 77) | func (*Cluster) TableName() string { FILE: pkg/db/model/model.go function register (line 21) | func register(model ...interface{}) { function GetMigrationModels (line 26) | func GetMigrationModels() []interface{} { FILE: pkg/db/model/pixiu/model.go type Model (line 24) | type Model struct method GetSID (line 31) | func (m Model) GetSID() string { FILE: pkg/db/model/plan.go function init (line 23) | func init() { type Plan (line 27) | type Plan struct method TableName (line 34) | func (plan *Plan) TableName() string { type KubeRole (line 38) | type KubeRole constant MasterRole (line 41) | MasterRole string = "master" constant NodeRole (line 42) | NodeRole string = "node" type CRI (line 45) | type CRI constant DockerCRI (line 48) | DockerCRI CRI = "docker" constant ContainerdCRI (line 49) | ContainerdCRI CRI = "containerd" type Node (line 52) | type Node struct method TableName (line 63) | func (node *Node) TableName() string { type Config (line 67) | type Config struct method TableName (line 79) | func (config *Config) TableName() string { type PlanStep (line 83) | type PlanStep constant UnStartedPlanStep (line 86) | UnStartedPlanStep PlanStep = iota constant RunningPlanStep (line 87) | RunningPlanStep constant FailedPlanStep (line 88) | FailedPlanStep constant CompletedPlanStep (line 89) | CompletedPlanStep type TaskStatus (line 92) | type TaskStatus constant FailedPlanStatus (line 95) | FailedPlanStatus TaskStatus = "已失败" constant SuccessPlanStatus (line 96) | SuccessPlanStatus TaskStatus = "已成功" constant UnStartPlanStatus (line 97) | UnStartPlanStatus TaskStatus = "未开始" constant RunningPlanStatus (line 98) | RunningPlanStatus TaskStatus = "运行中" type Task (line 101) | type Task struct method TableName (line 111) | func (task *Task) TableName() string { FILE: pkg/db/model/rbac.go constant AdminGroup (line 28) | AdminGroup = "root" constant SidAll (line 29) | SidAll = "*" type Operation (line 32) | type Operation method String (line 42) | func (o Operation) String() string { constant OpRead (line 35) | OpRead Operation = "read" constant OpCreate (line 36) | OpCreate Operation = "create" constant OpUpdate (line 37) | OpUpdate Operation = "update" constant OpDelete (line 38) | OpDelete Operation = "delete" constant OpAll (line 39) | OpAll Operation = "*" type ObjectType (line 54) | type ObjectType method String (line 65) | func (o ObjectType) String() string { constant ObjectUser (line 57) | ObjectUser ObjectType = "users" constant ObjectCluster (line 58) | ObjectCluster ObjectType = "clusters" constant ObjectTenant (line 59) | ObjectTenant ObjectType = "tenants" constant ObjectPlan (line 60) | ObjectPlan ObjectType = "plans" constant ObjectAuth (line 61) | ObjectAuth ObjectType = "auth" constant ObjectAll (line 62) | ObjectAll ObjectType = "*" type RBACInterface (line 79) | type RBACInterface interface constant RBACModel (line 83) | RBACModel = ` type CasbinRBACImpl (line 100) | type CasbinRBACImpl struct type Policy (line 102) | type Policy interface type UserPolicy (line 108) | type UserPolicy method Raw (line 116) | func (p UserPolicy) Raw() []string { method GetUserName (line 120) | func (p UserPolicy) GetUserName() string { method GetObjectType (line 124) | func (p UserPolicy) GetObjectType() ObjectType { method GetSID (line 128) | func (p UserPolicy) GetSID() string { method GetOperation (line 132) | func (p UserPolicy) GetOperation() Operation { function NewUserPolicy (line 112) | func NewUserPolicy(userName string, obj ObjectType, sid string, op Opera... type GroupPolicy (line 138) | type GroupPolicy method Raw (line 146) | func (p GroupPolicy) Raw() []string { method GetGroupName (line 150) | func (p GroupPolicy) GetGroupName() string { method GetObjectType (line 154) | func (p GroupPolicy) GetObjectType() ObjectType { method GetSID (line 158) | func (p GroupPolicy) GetSID() string { method GetOperation (line 162) | func (p GroupPolicy) GetOperation() Operation { function NewGroupPolicy (line 142) | func NewGroupPolicy(groupName string, obj ObjectType, sid string, op Ope... type GroupBinding (line 168) | type GroupBinding method Raw (line 175) | func (p GroupBinding) Raw() []string { method GetUserName (line 179) | func (p GroupBinding) GetUserName() string { method GetGroupName (line 183) | func (p GroupBinding) GetGroupName() string { function NewGroupBinding (line 171) | func NewGroupBinding(userName, groupName string) GroupBinding { function IsAdminPolicy (line 191) | func IsAdminPolicy(policy Policy) bool { function BindingToAdmin (line 201) | func BindingToAdmin(policies []GroupBinding) bool { function NewPolicyFromModels (line 212) | func NewPolicyFromModels(user *User, obj ObjectType, model pixiu.Model, ... function GetIdRangeFromPolicy (line 219) | func GetIdRangeFromPolicy(policies []Policy) (all bool, ids []int64) { FILE: pkg/db/model/rbac_test.go function TestGetIdRangeFromPolicies (line 25) | func TestGetIdRangeFromPolicies(t *testing.T) { function TestIsAdminPolicy (line 169) | func TestIsAdminPolicy(t *testing.T) { function TestBindingToAdmin (line 237) | func TestBindingToAdmin(t *testing.T) { FILE: pkg/db/model/repository.go function init (line 25) | func init() { type Repository (line 29) | type Repository struct method TableName (line 37) | func (*Repository) TableName() string { type ChartIndex (line 41) | type ChartIndex struct type Entries (line 46) | type Entries type ChartVersion (line 48) | type ChartVersion struct type Dependency (line 65) | type Dependency struct type Maintainer (line 73) | type Maintainer struct FILE: pkg/db/model/tenant.go function init (line 21) | func init() { type Tenant (line 25) | type Tenant struct method TableName (line 33) | func (tenant *Tenant) TableName() string { FILE: pkg/db/model/user.go function init (line 21) | func init() { type UserRole (line 25) | type UserRole constant RoleUser (line 28) | RoleUser UserRole = iota constant RoleAdmin (line 29) | RoleAdmin constant RoleRoot (line 30) | RoleRoot type UserStatus (line 33) | type UserStatus type User (line 35) | type User struct method TableName (line 48) | func (user *User) TableName() string { FILE: pkg/db/options.go type Options (line 25) | type Options function WithOrderByASC (line 27) | func WithOrderByASC() Options { function WithOrderByDesc (line 33) | func WithOrderByDesc() Options { function WithOffset (line 39) | func WithOffset(offset int) Options { function WithCreatedBefore (line 45) | func WithCreatedBefore(t time.Time) Options { function WithLimit (line 51) | func WithLimit(limit int) Options { function WithIDIn (line 61) | func WithIDIn(ids ...int64) Options { function WithAliasNameLike (line 68) | func WithAliasNameLike(name string) Options { function WithClusterStatus (line 77) | func WithClusterStatus(status int) Options { function WithUserNameLike (line 83) | func WithUserNameLike(name string) Options { function WithUserPhoneLike (line 92) | func WithUserPhoneLike(phone string) Options { function WithUserEmailLike (line 101) | func WithUserEmailLike(email string) Options { function WithUserStatus (line 110) | func WithUserStatus(status int) Options { function WithAuditOperatorLike (line 116) | func WithAuditOperatorLike(operator string) Options { function WithAuditAction (line 125) | func WithAuditAction(action string) Options { function WithAuditObjectType (line 134) | func WithAuditObjectType(ot string) Options { function WithAuditStatus (line 143) | func WithAuditStatus(status uint8) Options { function WithAuditCreatedAfter (line 149) | func WithAuditCreatedAfter(t time.Time) Options { function WithAuditCluster (line 158) | func WithAuditCluster(cluster string) Options { function WithPlanNameLike (line 164) | func WithPlanNameLike(name string) Options { FILE: pkg/db/plan.go type PlanInterface (line 29) | type PlanInterface interface type plan (line 69) | type plan struct method Create (line 75) | func (p *plan) Create(ctx context.Context, object *model.Plan, opts ..... method Update (line 106) | func (p *plan) Update(ctx context.Context, pid int64, resourceVersion ... method Delete (line 123) | func (p *plan) Delete(ctx context.Context, pid int64) (*model.Plan, er... method Get (line 135) | func (p *plan) Get(ctx context.Context, pid int64) (*model.Plan, error) { method List (line 144) | func (p *plan) List(ctx context.Context, opts ...Options) ([]model.Pla... method Count (line 157) | func (p *plan) Count(ctx context.Context, opts ...Options) (int64, err... method CreateNode (line 169) | func (p *plan) CreateNode(ctx context.Context, object *model.Node) (*m... method TxCreateNode (line 181) | func (p *plan) TxCreateNode(ctx context.Context, tx *gorm.DB, object *... method UpdateNode (line 189) | func (p *plan) UpdateNode(ctx context.Context, nodeId int64, resourceV... method DeleteNode (line 205) | func (p *plan) DeleteNode(ctx context.Context, nodeId int64) (*model.N... method DeleteNodesByPlan (line 217) | func (p *plan) DeleteNodesByPlan(ctx context.Context, planId int64) er... method DeleteNodesByNames (line 225) | func (p *plan) DeleteNodesByNames(ctx context.Context, planId int64, n... method GetNodeByName (line 233) | func (p *plan) GetNodeByName(ctx context.Context, planId int64, name s... method GetNode (line 242) | func (p *plan) GetNode(ctx context.Context, nodeId int64) (*model.Node... method ListNodes (line 251) | func (p *plan) ListNodes(ctx context.Context, pid int64, opts ...Optio... method CreateConfig (line 264) | func (p *plan) CreateConfig(ctx context.Context, object *model.Config)... method TxCreateConfig (line 276) | func (p *plan) TxCreateConfig(ctx context.Context, tx *gorm.DB, object... method UpdateConfig (line 284) | func (p *plan) UpdateConfig(ctx context.Context, cid int64, resourceVe... method DeleteConfig (line 300) | func (p *plan) DeleteConfig(ctx context.Context, cid int64) (*model.Co... method DeleteConfigByPlan (line 312) | func (p *plan) DeleteConfigByPlan(ctx context.Context, planId int64) e... method GetConfig (line 319) | func (p *plan) GetConfig(ctx context.Context, cid int64) (*model.Confi... method ListConfigs (line 328) | func (p *plan) ListConfigs(ctx context.Context, opts ...Options) ([]mo... method GetConfigByPlan (line 341) | func (p *plan) GetConfigByPlan(ctx context.Context, planId int64) (*mo... method CreateTask (line 350) | func (p *plan) CreateTask(ctx context.Context, object *model.Task) (*m... method UpdateTask (line 361) | func (p *plan) UpdateTask(ctx context.Context, pid int64, name string,... method DeleteTask (line 373) | func (p *plan) DeleteTask(ctx context.Context, pid int64) error { method ListTasks (line 381) | func (p *plan) ListTasks(ctx context.Context, pid int64, opts ...Optio... method GetNewestTask (line 394) | func (p *plan) GetNewestTask(ctx context.Context, pid int64) (*model.T... method GetTaskById (line 406) | func (p *plan) GetTaskById(ctx context.Context, taskId int64) (*model.... method GetTaskByName (line 415) | func (p *plan) GetTaskByName(ctx context.Context, planId int64, name s... type CreatePlanOption (line 73) | type CreatePlanOption function newPlan (line 424) | func newPlan(db *gorm.DB) *plan { FILE: pkg/db/repository.go type RepositoryInterface (line 28) | type RepositoryInterface interface type repository (line 37) | type repository struct method Create (line 47) | func (r *repository) Create(ctx context.Context, object *model.Reposit... method Update (line 58) | func (r *repository) Update(ctx context.Context, id int64, resourceVer... method Delete (line 75) | func (r *repository) Delete(ctx context.Context, id int64) error { method Get (line 88) | func (r *repository) Get(ctx context.Context, id int64) (*model.Reposi... method GetByName (line 97) | func (r *repository) GetByName(ctx context.Context, name string) (*mod... method List (line 106) | func (r *repository) List(ctx context.Context) ([]*model.Repository, e... function newRepository (line 41) | func newRepository(db *gorm.DB) RepositoryInterface { FILE: pkg/db/tenant.go type TenantInterface (line 29) | type TenantInterface interface type tenant (line 39) | type tenant struct method Create (line 43) | func (t *tenant) Create(ctx context.Context, object *model.Tenant) (*m... method Update (line 54) | func (t *tenant) Update(ctx context.Context, tid int64, resourceVersio... method Delete (line 71) | func (t *tenant) Delete(ctx context.Context, tid int64) (*model.Tenant... method Get (line 86) | func (t *tenant) Get(ctx context.Context, tid int64) (*model.Tenant, e... method List (line 98) | func (t *tenant) List(ctx context.Context, opts ...Options) ([]model.T... method GetTenantByName (line 111) | func (t *tenant) GetTenantByName(ctx context.Context, name string) (*m... function newTenant (line 123) | func newTenant(db *gorm.DB) *tenant { FILE: pkg/db/user.go type UserInterface (line 29) | type UserInterface interface type user (line 42) | type user struct method Create (line 46) | func (u *user) Create(ctx context.Context, object *model.User, fns ...... method Update (line 69) | func (u *user) Update(ctx context.Context, uid int64, resourceVersion ... method Delete (line 84) | func (u *user) Delete(ctx context.Context, uid int64) error { method Get (line 88) | func (u *user) Get(ctx context.Context, uid int64) (*model.User, error) { method GetRoot (line 100) | func (u *user) GetRoot(ctx context.Context) (*model.User, error) { method List (line 114) | func (u *user) List(ctx context.Context, opts ...Options) ([]model.Use... method Count (line 127) | func (u *user) Count(ctx context.Context, opts ...Options) (int64, err... method GetUserByName (line 140) | func (u *user) GetUserByName(ctx context.Context, userName string) (*m... function newUser (line 152) | func newUser(db *gorm.DB) *user { FILE: pkg/jobmanager/audit_cleaner.go constant DefaultSchedule (line 27) | DefaultSchedule = "0 0 * * 6" constant DefaultDaysReserved (line 28) | DefaultDaysReserved = 30 type AuditsCleaner (line 31) | type AuditsCleaner struct method Name (line 55) | func (ac *AuditsCleaner) Name() string { method CronSpec (line 59) | func (ac *AuditsCleaner) CronSpec() string { method LogLevel (line 63) | func (ac *AuditsCleaner) LogLevel() logutil.LogLevel { method Do (line 67) | func (ac *AuditsCleaner) Do(ctx *JobContext) (err error) { type AuditOptions (line 36) | type AuditOptions struct method Valid (line 80) | func (a *AuditOptions) Valid() error { function DefaultOptions (line 41) | func DefaultOptions() AuditOptions { function NewAuditsCleaner (line 48) | func NewAuditsCleaner(cfg AuditOptions, dao db.ShareDaoFactory) *AuditsC... FILE: pkg/jobmanager/cluster_syncer.go constant DefaultSyncInterval (line 35) | DefaultSyncInterval = "@every 5s" type ClusterSyncer (line 38) | type ClusterSyncer struct method Name (line 48) | func (cs *ClusterSyncer) Name() string { method CronSpec (line 52) | func (cs *ClusterSyncer) CronSpec() string { method LogLevel (line 56) | func (cs *ClusterSyncer) LogLevel() logutil.LogLevel { method Do (line 60) | func (cs *ClusterSyncer) Do(ctx *JobContext) (err error) { function NewClusterSyncer (line 42) | func NewClusterSyncer(f db.ShareDaoFactory) *ClusterSyncer { function doSync (line 92) | func doSync(f db.ShareDaoFactory, cluster model.Cluster) error { function parseStatus (line 126) | func parseStatus(update map[string]interface{}, status model.ClusterStat... function getNewestKubeStatus (line 138) | func getNewestKubeStatus(cluster model.Cluster) (string, string, error) { function parseKubeNodeStatus (line 175) | func parseKubeNodeStatus(node *v1.Node) string { FILE: pkg/jobmanager/context.go type JobContext (line 26) | type JobContext struct method Log (line 40) | func (c *JobContext) Log(level logutil.LogLevel, err error) { function NewJobContext (line 31) | func NewJobContext(name string, cfg *logutil.LogOptions) *JobContext { FILE: pkg/jobmanager/manager.go type Job (line 25) | type Job interface type Manager (line 40) | type Manager struct method Run (line 57) | func (m *Manager) Run() { method Stop (line 61) | func (m *Manager) Stop() { function NewManager (line 44) | func NewManager(lc *logutil.LogOptions, jobs ...Job) *Manager { FILE: pkg/static/localfile.go type localFileSystem (line 27) | type localFileSystem struct method Exists (line 40) | func (l *localFileSystem) Exists(prefix string, file string) bool { function LocalFile (line 33) | func LocalFile(root string, indexes bool) *localFileSystem { FILE: pkg/static/static.go type ServeFileSystem (line 26) | type ServeFileSystem interface function ServeRoot (line 31) | func ServeRoot(urlPrefix, root string) gin.HandlerFunc { function Serve (line 36) | func Serve(urlPrefix string, fs ServeFileSystem) gin.HandlerFunc { function ServeCached (line 42) | func ServeCached(urlPrefix string, fs ServeFileSystem, cacheAge uint) gi... FILE: pkg/types/helm.go type Release (line 19) | type Release struct type RepoId (line 27) | type RepoId struct type RepoName (line 31) | type RepoName struct type RepoURL (line 36) | type RepoURL struct type ChartValues (line 39) | type ChartValues struct type ReleaseHistory (line 44) | type ReleaseHistory struct type CreateRepository (line 48) | type CreateRepository struct type UpdateRepository (line 55) | type UpdateRepository struct FILE: pkg/types/meta.go constant timeLayout (line 40) | timeLayout = "2006-01-02 15:04:05.999999999" constant MsgData (line 42) | MsgData = '1' constant MsgResize (line 43) | MsgResize = '2' method SetId (line 46) | func (c *Cluster) SetId(i int64) { method SetReplicaSets (line 50) | func (o *KubeObject) SetReplicaSets(replicaSets []appv1.ReplicaSet) { method GetReplicaSets (line 57) | func (o *KubeObject) GetReplicaSets() []appv1.ReplicaSet { method SetPods (line 64) | func (o *KubeObject) SetPods(pods []v1.Pod) { method GetPods (line 71) | func (o *KubeObject) GetPods() []v1.Pod { function FormatTime (line 78) | func FormatTime(GmtCreate time.Time, GmtModified time.Time) TimeSpec { function NewTerminalSession (line 86) | func NewTerminalSession(w http.ResponseWriter, r *http.Request) (*Termin... method Read (line 110) | func (t *TerminalSession) Read(p []byte) (int, error) { method Write (line 138) | func (t *TerminalSession) Write(p []byte) (int, error) { method Done (line 153) | func (t *TerminalSession) Done() { method Close (line 158) | func (t *TerminalSession) Close() error { method Next (line 163) | func (t *TerminalSession) Next() *remotecommand.TerminalSize { function NewTurn (line 172) | func NewTurn(wsConn *websocket.Conn, sshClient *ssh.Client) (*Turn, erro... method Write (line 202) | func (t *Turn) Write(p []byte) (n int, err error) { method Close (line 212) | func (t *Turn) Close() error { method Read (line 219) | func (t *Turn) Read(p []byte) (n int, err error) { method StartLoopRead (line 232) | func (t *Turn) StartLoopRead(ctx context.Context, wg *sync.WaitGroup, lo... method loopRead (line 240) | func (t *Turn) loopRead(logBuff *bytes.Buffer, context context.Context) ... method dataDo (line 266) | func (t *Turn) dataDo(body []byte, logBuff *bytes.Buffer) error { type Resize (line 277) | type Resize struct method resizeDo (line 282) | func (t *Turn) resizeDo(body []byte) error { method sessionWait (line 297) | func (t *Turn) sessionWait() error { method StartSessionWait (line 304) | func (t *Turn) StartSessionWait(wg *sync.WaitGroup) { function decode (line 312) | func decode(p []byte) []byte { method Marshal (line 317) | func (a *PlanNodeAuth) Marshal() (string, error) { method Unmarshal (line 325) | func (a *PlanNodeAuth) Unmarshal(s string) error { method Marshal (line 332) | func (ks *KubernetesSpec) Marshal() (string, error) { method Unmarshal (line 340) | func (ks *KubernetesSpec) Unmarshal(s string) error { method Marshal (line 347) | func (ns *NetworkSpec) Marshal() (string, error) { method Unmarshal (line 355) | func (ns *NetworkSpec) Unmarshal(s string) error { method Marshal (line 362) | func (rs *RuntimeSpec) Marshal() (string, error) { method Unmarshal (line 370) | func (rs *RuntimeSpec) Unmarshal(s string) error { method Marshal (line 377) | func (cs ComponentSpec) Marshal() (string, error) { method Unmarshal (line 385) | func (cs *ComponentSpec) Unmarshal(s string) error { method IsDocker (line 392) | func (rs *RuntimeSpec) IsDocker() bool { method IsContainerd (line 396) | func (rs *RuntimeSpec) IsContainerd() bool { method IsPaged (line 400) | func (p PageRequest) IsPaged() bool { method Offset (line 404) | func (p PageRequest) Offset(total int) (int, int, error) { method Marshal (line 418) | func (node *KubeNode) Marshal() (string, error) { method Unmarshal (line 426) | func (node *KubeNode) Unmarshal(s string) error { FILE: pkg/types/request.go constant AllNamespace (line 21) | AllNamespace = "all_namespaces" type LoginRequest (line 25) | type LoginRequest struct type CreateUserRequest (line 30) | type CreateUserRequest struct type UpdateUserRequest (line 42) | type UpdateUserRequest struct type UpdateUserPasswordRequest (line 51) | type UpdateUserPasswordRequest struct type CreateClusterRequest (line 58) | type CreateClusterRequest struct type UpdateClusterRequest (line 67) | type UpdateClusterRequest struct type ProtectClusterRequest (line 74) | type ProtectClusterRequest struct type CreateTenantRequest (line 79) | type CreateTenantRequest struct type UpdateTenantRequest (line 84) | type UpdateTenantRequest struct type CreatePlanRequest (line 90) | type CreatePlanRequest struct type UpdatePlanRequest (line 98) | type UpdatePlanRequest struct type CreatePlanNodeRequest (line 107) | type CreatePlanNodeRequest struct type UpdatePlanNodeRequest (line 116) | type UpdatePlanNodeRequest struct type CreatePlanConfigRequest (line 126) | type CreatePlanConfigRequest struct type UpdatePlanConfigRequest (line 138) | type UpdatePlanConfigRequest struct type RBACPolicyRequest (line 142) | type RBACPolicyRequest struct type ListRBACPolicyRequest (line 151) | type ListRBACPolicyRequest struct type GroupBindingRequest (line 158) | type GroupBindingRequest struct type ListGroupBindingRequest (line 163) | type ListGroupBindingRequest struct type PageRequest (line 169) | type PageRequest struct type QueryOption (line 174) | type QueryOption struct type ListClusterRequest (line 180) | type ListClusterRequest struct type ListPlanRequest (line 187) | type ListPlanRequest struct type ListUserRequest (line 194) | type ListUserRequest struct type WebSSHRequest (line 203) | type WebSSHRequest struct type LoginResponse (line 212) | type LoginResponse struct type PageResponse (line 221) | type PageResponse struct FILE: pkg/types/types.go type PixiuObjectMeta (line 33) | type PixiuObjectMeta struct type PixiuMeta (line 39) | type PixiuMeta struct type TimeMeta (line 46) | type TimeMeta struct type KubeNode (line 53) | type KubeNode struct type Cluster (line 58) | type Cluster struct type KubernetesMeta (line 88) | type KubernetesMeta struct type Resources (line 99) | type Resources struct type User (line 104) | type User struct type Tenant (line 118) | type Tenant struct type Plan (line 126) | type Plan struct type PlanNode (line 140) | type PlanNode struct type Audit (line 152) | type Audit struct type AuthType (line 169) | type AuthType constant NoneAuth (line 172) | NoneAuth AuthType = "none" constant KeyAuth (line 173) | KeyAuth AuthType = "key" constant PasswordAuth (line 174) | PasswordAuth AuthType = "password" type PlanNodeAuth (line 177) | type PlanNodeAuth struct type PlanTask (line 183) | type PlanTask struct type KeySpec (line 193) | type KeySpec struct type PasswordSpec (line 198) | type PasswordSpec struct type PlanConfig (line 203) | type PlanConfig struct type TimeSpec (line 218) | type TimeSpec struct type KubeObject (line 223) | type KubeObject struct type WebShellOptions (line 231) | type WebShellOptions struct type TerminalMessage (line 241) | type TerminalMessage struct type TerminalSession (line 252) | type TerminalSession struct type Turn (line 258) | type Turn struct type ListOptions (line 265) | type ListOptions struct type EventOptions (line 273) | type EventOptions struct type PodLogOptions (line 282) | type PodLogOptions struct type KubernetesSpec (line 287) | type KubernetesSpec struct type NetworkSpec (line 296) | type NetworkSpec struct type RuntimeSpec (line 304) | type RuntimeSpec struct type ComponentSpec (line 308) | type ComponentSpec struct type Helm (line 315) | type Helm struct type Prometheus (line 320) | type Prometheus struct type Grafana (line 325) | type Grafana struct type Haproxy (line 333) | type Haproxy struct type RBACPolicy (line 338) | type RBACPolicy struct type AuditListOptions (line 347) | type AuditListOptions struct FILE: pkg/util/container/container.go type Container (line 34) | type Container struct method StartAndWaitForContainer (line 57) | func (c *Container) StartAndWaitForContainer(ctx context.Context, imag... method Close (line 88) | func (c *Container) Close() error { method ClearContainer (line 93) | func (c *Container) ClearContainer(ctx context.Context) error { method ListContainers (line 112) | func (c *Container) ListContainers(ctx context.Context) ([]types.Conta... method GetContainer (line 121) | func (c *Container) GetContainer(ctx context.Context, containerName st... method WaitContainer (line 141) | func (c *Container) WaitContainer(ctx context.Context, containerId str... method WatchContainerLog (line 189) | func (c *Container) WatchContainerLog(ctx context.Context, containerId... function NewContainer (line 42) | func NewContainer(action string, planId int64, dir string) (*Container, ... FILE: pkg/util/errors/errors.go function IsRecordNotFound (line 60) | func IsRecordNotFound(err error) bool { function IsNotUpdated (line 64) | func IsNotUpdated(err error) bool { function IsUniqueConstraintError (line 68) | func IsUniqueConstraintError(err error) bool { FILE: pkg/util/log/log.go type LogFormat (line 33) | type LogFormat constant LogFormatJson (line 36) | LogFormatJson LogFormat = "json" constant LogFormatText (line 37) | LogFormatText LogFormat = "text" constant ErrorLevel (line 46) | ErrorLevel LogLevel = klog.ErrorLevel constant InfoLevel (line 47) | InfoLevel LogLevel = klog.InfoLevel constant DebugLevel (line 48) | DebugLevel LogLevel = klog.DebugLevel type LogOptions (line 51) | type LogOptions struct method Valid (line 66) | func (o *LogOptions) Valid() error { method Init (line 76) | func (o *LogOptions) Init() { function DefaultLogOptions (line 58) | func DefaultLogOptions() *LogOptions { constant SuccessMsg (line 94) | SuccessMsg = "SUCCESS" constant ErrorMsg (line 95) | ErrorMsg = "ERROR" constant FailMsg (line 96) | FailMsg = "FAIL" type Logger (line 99) | type Logger struct method WithLogField (line 113) | func (l *Logger) WithLogField(key string, value interface{}) { method WithLogFields (line 117) | func (l *Logger) WithLogFields(fields map[string]interface{}) { method Log (line 121) | func (l *Logger) Log(ctx context.Context, level LogLevel, err error) { function NewLogger (line 105) | func NewLogger(cfg *LogOptions) *Logger { FILE: pkg/util/lru/lru.go type LRUCache (line 24) | type LRUCache struct method Contains (line 45) | func (c *LRUCache) Contains(key interface{}) bool { method Add (line 50) | func (c *LRUCache) Add(key, value interface{}) { method Get (line 72) | func (c *LRUCache) Get(key interface{}) (value interface{}) { method Len (line 83) | func (c *LRUCache) Len() int { return c.evictList.Len() } type entry (line 32) | type entry struct function NewLRUCache (line 37) | func NewLRUCache(cap int) *LRUCache { FILE: pkg/util/ssh/ssh.go function NewSSHClient (line 28) | func NewSSHClient(sshConfig *types.WebSSHRequest) (*ssh.Client, error) { FILE: pkg/util/token/token.go type Claims (line 26) | type Claims struct function GenerateToken (line 35) | func GenerateToken(uid int64, name string, jwtKey []byte) (string, error) { function ParseToken (line 53) | func ParseToken(tokenStr string, jwtKey []byte) (*Claims, error) { FILE: pkg/util/util.go function init (line 30) | func init() { function EncryptUserPassword (line 37) | func EncryptUserPassword(origin string) (string, error) { function ValidateUserPassword (line 47) | func ValidateUserPassword(old, new string) error { function ValidateStrongPassword (line 52) | func ValidateStrongPassword(password string) bool { function GenerateRequestID (line 82) | func GenerateRequestID() string { function IsEmptyS (line 86) | func IsEmptyS(s string) bool { function IsDirectoryExists (line 90) | func IsDirectoryExists(path string) bool { function IsFileExists (line 102) | func IsFileExists(path string) bool { function EnsureDirectoryExists (line 114) | func EnsureDirectoryExists(path string) error { function WriteToFile (line 124) | func WriteToFile(filename string, data []byte) error { function BuildWebSocketConnection (line 128) | func BuildWebSocketConnection(w http.ResponseWriter, r *http.Request) (*... function DeduplicateIntSlice (line 140) | func DeduplicateIntSlice(s []int64) (ret []int64) { function More (line 155) | func More(a, b int) int { function Less (line 163) | func Less(a, b int) int { FILE: pkg/util/util_test.go function TestValidateStrongPassword (line 24) | func TestValidateStrongPassword(t *testing.T) { function TestDeduplicateIntSlice (line 110) | func TestDeduplicateIntSlice(t *testing.T) { FILE: pkg/util/uuid/uuid.go constant namePrefix (line 26) | namePrefix = "pixiu-" function NewUUID (line 29) | func NewUUID() string { function NewRandName (line 33) | func NewRandName(length int) string { FILE: template/globals.go constant GlobalsTemplate (line 19) | GlobalsTemplate = `# Render below by Pixiu FILE: template/hosts.go constant HostTemplate (line 19) | HostTemplate = `# Render below by Pixiu engine FILE: template/multinode.go constant MultiModeTemplate (line 19) | MultiModeTemplate = `# Render below by Pixiu engine