Documentation ¶
Index ¶
- Constants
- func CreateConfig(cluster common.ClusterDB, kubeconfig string) error
- func DeleteConfig(kubeconfig string) error
- func DeleteItemForList(item string, list []string) []string
- func EnhanceGin(g *gin.Engine) *gin.Engine
- func IsExist(kubconfig string) bool
- func JsonToJson(context []byte) ([]byte, string, error)
- func RandString(count int) string
- func UUID(prefix string) string
- func YamlToJson(context string) ([]byte, string, error)
- type Controller
- type LDAPClient
Constants ¶
View Source
const Letter = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
Variables ¶
This section is empty.
Functions ¶
func DeleteConfig ¶
func DeleteItemForList ¶
func RandString ¶
Types ¶
type Controller ¶
type Controller struct {
Kind string `json:"kind"`
}
type LDAPClient ¶
type LDAPClient struct { URL string Attributes []string Base string BindDN string BindPassword string GroupFilter string ServerName string UserFilter string Conn *ldap.Conn InsecureSkipVerify bool UseTLS bool SkipTLSVerify bool ClientCertificates []tls.Certificate }
func LdapLookup ¶
func LdapLookup(url, bindDN, bindPassword, baseDN, userFilter string, tls bool) *LDAPClient
func (*LDAPClient) Authenticate ¶
认证
Click to show internal directories.
Click to hide internal directories.