Documentation
¶
Index ¶
- Constants
- func AddUser(conn *ldap.Conn, userName string, password string) error
- func DeleteUser(conn *ldap.Conn, username string) error
- func GetAuthCode(w http.ResponseWriter, r *http.Request)
- func GetOpenId(info *PrivateInfo, w http.ResponseWriter)
- func GetToken(w http.ResponseWriter, r *http.Request)
- func GetUserInfo(info *PrivateInfo, w http.ResponseWriter)
- func ListUser(conn *ldap.Conn) ([]string, error)
- func LoginBind(ldapUser, ldapPassword string) (*ldap.Conn, error)
- func StartServer()
- type AliOssClient
- func (client *AliOssClient) BuildLifecycleRule(bucketName string)
- func (client *AliOssClient) DeleteObject(key string)
- func (client *AliOssClient) GetBucket(bucketNames ...string) *oss.Bucket
- func (client *AliOssClient) GetDownloadURL(objName string) (string, error)
- func (client *AliOssClient) Put(key string, reader io.Reader) error
- type PrivateInfo
Constants ¶
View Source
const ( AppId = "101827468" AppKey = "0d2d856e48e0ebf6b98e0d0c879fe74d" )
Variables ¶
This section is empty.
Functions ¶
func GetAuthCode ¶
func GetAuthCode(w http.ResponseWriter, r *http.Request)
func GetOpenId ¶
func GetOpenId(info *PrivateInfo, w http.ResponseWriter)
func GetUserInfo ¶
func GetUserInfo(info *PrivateInfo, w http.ResponseWriter)
func StartServer ¶
func StartServer()
Types ¶
type AliOssClient ¶
func NewAliOSSClient ¶
func NewAliOSSClient(bucketName, endpoint, accessKeyID, accessKeySecret string, bucketExpireTime int) (*AliOssClient, error)
NewAliOSSClient : 创建oss client对象
func (*AliOssClient) BuildLifecycleRule ¶
func (client *AliOssClient) BuildLifecycleRule(bucketName string)
BuildLifecycleRule set lifecycle rule for the specified bucket
func (*AliOssClient) DeleteObject ¶
func (client *AliOssClient) DeleteObject(key string)
DeleteObject delete the object, actually use the nil replace the object
func (*AliOssClient) GetBucket ¶
func (client *AliOssClient) GetBucket(bucketNames ...string) *oss.Bucket
GetBucket 获取bucket存储空间
func (*AliOssClient) GetDownloadURL ¶
func (client *AliOssClient) GetDownloadURL(objName string) (string, error)
GetDownloadURL get the down url
Click to show internal directories.
Click to hide internal directories.