Documentation ¶
Index ¶
- Variables
- func AddOne(object Object) (ObjectId string)
- func AddUser(u User) string
- func Delete(ObjectId string)
- func DeleteUser(uid string)
- func GetAll() map[string]*Object
- func GetAllUsers() map[string]*User
- func Login(username, password string) bool
- func Update(ObjectId string, Score int64) (err error)
- type AdminLogin
- type AdminUser
- type Client
- type ConfigmapsJson
- type Default
- type DefaultRequest
- type Domain
- type DynamicPVC
- type HarborUsers
- type LimitRange
- type LimitRangeList
- type LimitRanged
- type Limits
- type Max
- type Metadata
- type Min
- type Namespace
- type Namespaces
- type NodeLabels
- type Object
- type Objected
- type Profile
- type Resource
- type ResourceQuota
- type Secrets
- type Service
- type ServicePods
- type Spec
- type Storage
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Objects map[string]*Object
)
View Source
var (
UserList map[string]*User
)
Functions ¶
func DeleteUser ¶
func DeleteUser(uid string)
func GetAllUsers ¶
Types ¶
type AdminLogin ¶
type AdminLogin struct { Code int64 `json:"code"` Data struct { Token string `json:"token"` Roles []string `json:"roles"` Name string `json:"name"` Avatar string `json:"avatar"` } `json:"data"` }
func (*AdminLogin) GetInfo ¶
func (this *AdminLogin) GetInfo() (*AdminLogin, error)
type AdminUser ¶
func (*AdminUser) GetToken ¶
func (this *AdminUser) GetToken() (*AdminLogin, error)
type ConfigmapsJson ¶
type DefaultRequest ¶
type DynamicPVC ¶
type HarborUsers ¶
type LimitRange ¶
type LimitRange struct {
apiv1.LimitRange
}
type LimitRangeList ¶
type LimitRangeList struct {
apiv1.LimitRangeList
}
type LimitRanged ¶
func (*LimitRanged) Resolved ¶
func (this *LimitRanged) Resolved() *apiv1.LimitRange
func (*LimitRanged) Unmarshal ¶
func (this *LimitRanged) Unmarshal(data []byte) error
type NodeLabels ¶
type Objected ¶
type Objected struct { Configmaps string `json:"configmaps"` Pods string `json:"pods"` ReplicationControllers string `json:"replicationcontrollers"` ResourceQuotas string `json:"resourcequotas"` Services string `json:"services"` ServicesLoadbalances string `json:"servicesLoadbalances"` ServicesNodeports string `json:"servicesNodeports"` Secrets string `json:"secrets"` Persistentvolumeclaims string `json:"persistentvolumeclaims"` }
type ResourceQuota ¶
type Service ¶
type Service struct { Name string `json:"name"` Namespace string `json:"namespace"` Type string `json:"type"` ServicePods []ServicePods `json:"servicePods"` Tag []string `json:"tag"` ClusetIP string `json:"clusterip"` Ingressip string `json:"ingressip"` LoadIp string `json:"loadip"` Method string `json:"method"` // patch add or delete }
type ServicePods ¶
Click to show internal directories.
Click to hide internal directories.