Documentation ¶
Index ¶
- Constants
- func ContextWithCredentials(ctx context.Context, c *Credentials) context.Context
- func ContextWithJWT(ctx context.Context, j string) context.Context
- func ContextWithOauth2Token(ctx context.Context, token string) context.Context
- func ContextWithProxyCredentials(ctx context.Context, credentials2 *ProxyCredentials) context.Context
- func GRPCStream(ctx context.Context, ss grpc.ServerStream) grpc.ServerStream
- func GetOauth2Token(ctx context.Context) string
- func JWTFromContext(ctx context.Context) string
- func NewGRPCBasic(user, password string) *gRPCClientBasic
- func NewGRPCClientApiAccess(key, secret string) *gRPCClientApiAccess
- func NewGRPCClientJwt(t string) *gRPCClientJwt
- func NewGRPCProxy(key, secret string) *gRPCProxyBasic
- type Client
- type Config
- type Credentials
- type CredentialsVerifyFunc
- type DataService
- type Endpoints
- type Info
- type Oauth2Config
- type ProxyCredentials
- type ProxyCredentialsVerifyFunc
Constants ¶
View Source
const ( MetaServiceCertificate = "service-certificate" MetaTokenVerifyingKey = "token-verify-key" MetaApiAccessKey = "api-access-credentials" MetaApiAccessSecret = "api-access-secret" )
Variables ¶
This section is empty.
Functions ¶
func ContextWithCredentials ¶
func ContextWithCredentials(ctx context.Context, c *Credentials) context.Context
func ContextWithOauth2Token ¶
func ContextWithProxyCredentials ¶
func ContextWithProxyCredentials(ctx context.Context, credentials2 *ProxyCredentials) context.Context
func GRPCStream ¶ added in v1.0.0
func GRPCStream(ctx context.Context, ss grpc.ServerStream) grpc.ServerStream
func GetOauth2Token ¶
func JWTFromContext ¶
func NewGRPCBasic ¶
func NewGRPCBasic(user, password string) *gRPCClientBasic
func NewGRPCClientApiAccess ¶
func NewGRPCClientApiAccess(key, secret string) *gRPCClientApiAccess
func NewGRPCClientJwt ¶
func NewGRPCClientJwt(t string) *gRPCClientJwt
func NewGRPCProxy ¶
func NewGRPCProxy(key, secret string) *gRPCProxyBasic
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RegisterUserAttributeDefinition ¶
func (c *Client) RegisterUserAttributeDefinition(attrDefs []*apppb.UserAttributeDefinition) error
type Credentials ¶
func CredentialsFromContext ¶
func CredentialsFromContext(ctx context.Context) *Credentials
type CredentialsVerifyFunc ¶
type CredentialsVerifyFunc func(cred *Credentials) (bool, error)
type DataService ¶
type Info ¶
type Info struct { Registration string `json:"registration"` CSR string `json:"csr"` Data DataService `json:"data"` Oauth2 Oauth2Config `json:"oauth2"` }
type Oauth2Config ¶
type ProxyCredentials ¶
func ProxyCredentialsFromContext ¶
func ProxyCredentialsFromContext(ctx context.Context) *ProxyCredentials
type ProxyCredentialsVerifyFunc ¶
type ProxyCredentialsVerifyFunc func(cred *ProxyCredentials) (bool, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
proto
|
|
accounts
Package accountspb is a reverse proxy.
|
Package accountspb is a reverse proxy. |
app
Package apppb is a reverse proxy.
|
Package apppb is a reverse proxy. |
auth
Package authpb is a reverse proxy.
|
Package authpb is a reverse proxy. |
ca
Package capb is a reverse proxy.
|
Package capb is a reverse proxy. |
data
Package datapb is a reverse proxy.
|
Package datapb is a reverse proxy. |
files
Package filespb is a reverse proxy.
|
Package filespb is a reverse proxy. |
service
Package pb is a reverse proxy.
|
Package pb is a reverse proxy. |
users
Package accountspb is a reverse proxy.
|
Package accountspb is a reverse proxy. |
Click to show internal directories.
Click to hide internal directories.