authclient

package
v0.0.0-...-c2c101f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstanceInfoFromClient

func GetInstanceInfoFromClient(ctx context.Context, init *pb.InitMsg) (instanceInfo *pb.InitReq, err error)

func GetTokenInfoFromRequest

func GetTokenInfoFromRequest(r *http.Request) (token *pb.Token, err error)

func GetUserInfoFromRequest

func GetUserInfoFromRequest(ctx context.Context, req *http.Request, body []byte, fsName string) (userInfo *pb.CreateFsMsg, err error)

Types

type AuthClient

type AuthClient struct {
	Client pb.AuthServiceClient
	// contains filtered or unexported fields
}

func NewAuthClient

func NewAuthClient() (*AuthClient, error)

func (*AuthClient) AuthenticateInit

func (ac *AuthClient) AuthenticateInit(ctx context.Context, msg *pb.InitReq) (ret *pb.TokenResp, err error)

func (*AuthClient) CreateFs

func (ac *AuthClient) CreateFs(ctx context.Context, msg *pb.CreateFsMsg) (ret *pb.CreateFsRet, err error)

func (*AuthClient) CreateFsSecret

func (ac *AuthClient) CreateFsSecret(ctx context.Context, msg *pb.CreateSecretMsg) (ret *pb.CreateSecretRet, err error)

func (*AuthClient) DeleteFs

func (ac *AuthClient) DeleteFs(ctx context.Context, msg *pb.DeleteFsMsg) (ret *pb.DeleteFsRet, err error)

func (*AuthClient) DeleteFsSecret

func (ac *AuthClient) DeleteFsSecret(ctx context.Context, msg *pb.DeleteSecretMsg) (ret *pb.DeleteSecretRet, err error)

func (*AuthClient) DownloadFsSecret

func (ac *AuthClient) DownloadFsSecret(ctx context.Context, msg *pb.DownloadSecretMsg) (ret *pb.DownloadSecretRet, err error)

func (*AuthClient) ListFs

func (ac *AuthClient) ListFs(ctx context.Context, msg *pb.ListFsMsg) (ret *pb.ListFsRet, err error)

func (*AuthClient) ListFsSecret

func (ac *AuthClient) ListFsSecret(ctx context.Context, msg *pb.ListSecretMsg) (ret *pb.ListSecretRet, err error)

func (*AuthClient) Stop

func (ac *AuthClient) Stop() (err error)

func (*AuthClient) ValidateAccessToken

func (ac *AuthClient) ValidateAccessToken(ctx context.Context, msg *pb.Token) (ret *pb.ValidateAccessRet, err error)

func (*AuthClient) ValidateRefreshToken

func (ac *AuthClient) ValidateRefreshToken(ctx context.Context, msg *pb.Token) (ret *pb.ValidateRefreshRet, err error)

Jump to

Keyboard shortcuts

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