auth

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 *API) AdminAddCaps(clientID, clientKey, userID string, caps []byte) (res *keystore.KeyInfo, err error)

func (*API) AdminCreateKey

func (api *API) AdminCreateKey(clientID, clientKey, userID, role string, caps []byte) (res *keystore.KeyInfo, err error)

func (*API) AdminDeleteCaps

func (api *API) AdminDeleteCaps(clientID, clientKey, userID string, caps []byte) (res *keystore.KeyInfo, err error)

func (*API) AdminDeleteKey

func (api *API) AdminDeleteKey(clientID, clientKey, userID string) (res *keystore.KeyInfo, err error)

func (*API) AdminGetCaps

func (api *API) AdminGetCaps(clientID, clientKey, userID string) (res *keystore.KeyInfo, err error)

func (*API) AdminGetKey

func (api *API) AdminGetKey(clientID, clientKey, userID string) (res *keystore.KeyInfo, err error)

func (*API) GetTicket

func (api *API) GetTicket(clientId string, clientKey string, serviceID string) (ticket *auth.Ticket, err error)

func (*API) OSSAddCaps

func (api *API) OSSAddCaps(clientID, clientKey, accessKey string, caps []byte) (newAKCaps *keystore.AccessKeyCaps, err error)

func (*API) OSSDeleteCaps

func (api *API) OSSDeleteCaps(clientID, clientKey, accessKey string, caps []byte) (newAKCaps *keystore.AccessKeyCaps, err error)

func (*API) OSSGetCaps

func (api *API) OSSGetCaps(clientID, clientKey, accessKey string) (caps *keystore.AccessKeyCaps, err error)

type AuthClient

type AuthClient struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewAuthClient

func NewAuthClient(authNodes []string, enableHTTPS bool, certFile string) *AuthClient

func (*AuthClient) API

func (c *AuthClient) API() *API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL