Documentation ¶
Index ¶
- Constants
- type API
- func (api *API) AdminAddCaps(clientID, clientKey, userID string, caps []byte) (res *keystore.KeyInfo, err error)
- func (api *API) AdminCreateKey(clientID, clientKey, userID, role string, caps []byte) (res *keystore.KeyInfo, err error)
- func (api *API) AdminDeleteCaps(clientID, clientKey, userID string, caps []byte) (res *keystore.KeyInfo, err error)
- func (api *API) AdminDeleteKey(clientID, clientKey, userID string) (res *keystore.KeyInfo, err error)
- func (api *API) AdminGetCaps(clientID, clientKey, userID string) (res *keystore.KeyInfo, err error)
- func (api *API) AdminGetKey(clientID, clientKey, userID string) (res *keystore.KeyInfo, err error)
- func (api *API) GetTicket(clientId string, clientKey string, serviceID string) (ticket *auth.Ticket, err error)
- func (api *API) OSSAddCaps(clientID, clientKey, accessKey string, caps []byte) (newAKCaps *keystore.AccessKeyCaps, err error)
- func (api *API) OSSDeleteCaps(clientID, clientKey, accessKey string, caps []byte) (newAKCaps *keystore.AccessKeyCaps, err error)
- func (api *API) OSSGetCaps(clientID, clientKey, accessKey string) (caps *keystore.AccessKeyCaps, err error)
- type AuthClient
Constants ¶
View Source
const ( RequestMaxRetry = 5 RequestSleepInterval = 100 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AdminAddCaps ¶
func (*API) AdminCreateKey ¶
func (*API) AdminDeleteCaps ¶
func (*API) AdminDeleteKey ¶
func (*API) AdminGetCaps ¶
func (*API) AdminGetKey ¶
func (*API) OSSAddCaps ¶
func (*API) OSSDeleteCaps ¶
func (*API) OSSGetCaps ¶
func (api *API) OSSGetCaps(clientID, clientKey, accessKey string) (caps *keystore.AccessKeyCaps, err error)
type AuthClient ¶
func NewAuthClient ¶
func NewAuthClient(authNodes []string, enableHTTPS bool, certFile string) *AuthClient
func (*AuthClient) API ¶
func (c *AuthClient) API() *API
Click to show internal directories.
Click to hide internal directories.