Documentation
¶
Index ¶
- func RegisterAuthDBServiceServer(s *grpc.Server, srv AuthDBServiceServer)
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- type ACL
- func (*ACL) Descriptor() ([]byte, []int)
- func (m *ACL) GetGroups() []*Group
- func (*ACL) ProtoMessage()
- func (m *ACL) Reset()
- func (m *ACL) String() string
- func (m *ACL) XXX_DiscardUnknown()
- func (m *ACL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ACL) XXX_Merge(src proto.Message)
- func (m *ACL) XXX_Size() int
- func (m *ACL) XXX_Unmarshal(b []byte) error
- type AuthDBServiceClient
- type AuthDBServiceServer
- type AuthReq
- func (*AuthReq) Descriptor() ([]byte, []int)
- func (m *AuthReq) GetAuthorization() string
- func (*AuthReq) ProtoMessage()
- func (m *AuthReq) Reset()
- func (m *AuthReq) String() string
- func (m *AuthReq) XXX_DiscardUnknown()
- func (m *AuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthReq) XXX_Merge(src proto.Message)
- func (m *AuthReq) XXX_Size() int
- func (m *AuthReq) XXX_Unmarshal(b []byte) error
- type AuthResp
- func (*AuthResp) Descriptor() ([]byte, []int)
- func (m *AuthResp) GetEmail() string
- func (m *AuthResp) GetErrorDescription() string
- func (m *AuthResp) GetExpiresAt() *timestamp.Timestamp
- func (m *AuthResp) GetGroupId() string
- func (m *AuthResp) GetQuota() int32
- func (m *AuthResp) GetToken() *Token
- func (*AuthResp) ProtoMessage()
- func (m *AuthResp) Reset()
- func (m *AuthResp) String() string
- func (m *AuthResp) XXX_DiscardUnknown()
- func (m *AuthResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthResp) XXX_Merge(src proto.Message)
- func (m *AuthResp) XXX_Size() int
- func (m *AuthResp) XXX_Unmarshal(b []byte) error
- type AuthServiceClient
- type AuthServiceServer
- type CheckMembershipReq
- func (*CheckMembershipReq) Descriptor() ([]byte, []int)
- func (m *CheckMembershipReq) GetEmail() string
- func (m *CheckMembershipReq) GetGroup() string
- func (*CheckMembershipReq) ProtoMessage()
- func (m *CheckMembershipReq) Reset()
- func (m *CheckMembershipReq) String() string
- func (m *CheckMembershipReq) XXX_DiscardUnknown()
- func (m *CheckMembershipReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckMembershipReq) XXX_Merge(src proto.Message)
- func (m *CheckMembershipReq) XXX_Size() int
- func (m *CheckMembershipReq) XXX_Unmarshal(b []byte) error
- type CheckMembershipResp
- func (*CheckMembershipResp) Descriptor() ([]byte, []int)
- func (m *CheckMembershipResp) GetIsMember() bool
- func (*CheckMembershipResp) ProtoMessage()
- func (m *CheckMembershipResp) Reset()
- func (m *CheckMembershipResp) String() string
- func (m *CheckMembershipResp) XXX_DiscardUnknown()
- func (m *CheckMembershipResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckMembershipResp) XXX_Merge(src proto.Message)
- func (m *CheckMembershipResp) XXX_Size() int
- func (m *CheckMembershipResp) XXX_Unmarshal(b []byte) error
- type Group
- func (*Group) Descriptor() ([]byte, []int)
- func (m *Group) GetAudience() string
- func (m *Group) GetDescription() string
- func (m *Group) GetDomains() []string
- func (m *Group) GetEmails() []string
- func (m *Group) GetId() string
- func (m *Group) GetReject() bool
- func (m *Group) GetServiceAccount() string
- func (*Group) ProtoMessage()
- func (m *Group) Reset()
- func (m *Group) String() string
- func (m *Group) XXX_DiscardUnknown()
- func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Group) XXX_Merge(src proto.Message)
- func (m *Group) XXX_Size() int
- func (m *Group) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetAccessToken() string
- func (m *Token) GetTokenType() string
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthDBServiceServer ¶
func RegisterAuthDBServiceServer(s *grpc.Server, srv AuthDBServiceServer)
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
Types ¶
type ACL ¶
type ACL struct { // First matched group will be used. Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ACL) Descriptor ¶
func (*ACL) ProtoMessage ¶
func (*ACL) ProtoMessage()
func (*ACL) XXX_DiscardUnknown ¶
func (m *ACL) XXX_DiscardUnknown()
func (*ACL) XXX_Unmarshal ¶
type AuthDBServiceClient ¶
type AuthDBServiceClient interface {
CheckMembership(ctx context.Context, in *CheckMembershipReq, opts ...grpc.CallOption) (*CheckMembershipResp, error)
}
AuthDBServiceClient is the client API for AuthDBService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthDBServiceClient ¶
func NewAuthDBServiceClient(cc *grpc.ClientConn) AuthDBServiceClient
type AuthDBServiceServer ¶
type AuthDBServiceServer interface {
CheckMembership(context.Context, *CheckMembershipReq) (*CheckMembershipResp, error)
}
AuthDBServiceServer is the server API for AuthDBService service.
type AuthReq ¶
type AuthReq struct { Authorization string `protobuf:"bytes,1,opt,name=authorization,proto3" json:"authorization,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthReq) Descriptor ¶
func (*AuthReq) GetAuthorization ¶
func (*AuthReq) ProtoMessage ¶
func (*AuthReq) ProtoMessage()
func (*AuthReq) XXX_DiscardUnknown ¶
func (m *AuthReq) XXX_DiscardUnknown()
func (*AuthReq) XXX_Marshal ¶
func (*AuthReq) XXX_Unmarshal ¶
type AuthResp ¶
type AuthResp struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // number of requests allowed until expire. // -1 means unlimited. 0 means disallow. Quota int32 `protobuf:"varint,4,opt,name=quota,proto3" json:"quota,omitempty"` // error description for user. ErrorDescription string `protobuf:"bytes,5,opt,name=error_description,json=errorDescription,proto3" json:"error_description,omitempty"` Token *Token `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"` // group that email belongs to. GroupId string `protobuf:"bytes,8,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthResp) Descriptor ¶
func (*AuthResp) GetErrorDescription ¶
func (*AuthResp) GetExpiresAt ¶
func (*AuthResp) GetGroupId ¶
func (*AuthResp) ProtoMessage ¶
func (*AuthResp) ProtoMessage()
func (*AuthResp) XXX_DiscardUnknown ¶
func (m *AuthResp) XXX_DiscardUnknown()
func (*AuthResp) XXX_Marshal ¶
func (*AuthResp) XXX_Unmarshal ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
Auth(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthResp, error)
}
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient
type AuthServiceServer ¶
AuthServiceServer is the server API for AuthService service.
type CheckMembershipReq ¶
type CheckMembershipReq struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckMembershipReq) Descriptor ¶
func (*CheckMembershipReq) Descriptor() ([]byte, []int)
func (*CheckMembershipReq) GetEmail ¶
func (m *CheckMembershipReq) GetEmail() string
func (*CheckMembershipReq) GetGroup ¶
func (m *CheckMembershipReq) GetGroup() string
func (*CheckMembershipReq) ProtoMessage ¶
func (*CheckMembershipReq) ProtoMessage()
func (*CheckMembershipReq) Reset ¶
func (m *CheckMembershipReq) Reset()
func (*CheckMembershipReq) String ¶
func (m *CheckMembershipReq) String() string
func (*CheckMembershipReq) XXX_DiscardUnknown ¶
func (m *CheckMembershipReq) XXX_DiscardUnknown()
func (*CheckMembershipReq) XXX_Marshal ¶
func (m *CheckMembershipReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckMembershipReq) XXX_Merge ¶
func (m *CheckMembershipReq) XXX_Merge(src proto.Message)
func (*CheckMembershipReq) XXX_Size ¶
func (m *CheckMembershipReq) XXX_Size() int
func (*CheckMembershipReq) XXX_Unmarshal ¶
func (m *CheckMembershipReq) XXX_Unmarshal(b []byte) error
type CheckMembershipResp ¶
type CheckMembershipResp struct { IsMember bool `protobuf:"varint,1,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckMembershipResp) Descriptor ¶
func (*CheckMembershipResp) Descriptor() ([]byte, []int)
func (*CheckMembershipResp) GetIsMember ¶
func (m *CheckMembershipResp) GetIsMember() bool
func (*CheckMembershipResp) ProtoMessage ¶
func (*CheckMembershipResp) ProtoMessage()
func (*CheckMembershipResp) Reset ¶
func (m *CheckMembershipResp) Reset()
func (*CheckMembershipResp) String ¶
func (m *CheckMembershipResp) String() string
func (*CheckMembershipResp) XXX_DiscardUnknown ¶
func (m *CheckMembershipResp) XXX_DiscardUnknown()
func (*CheckMembershipResp) XXX_Marshal ¶
func (m *CheckMembershipResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckMembershipResp) XXX_Merge ¶
func (m *CheckMembershipResp) XXX_Merge(src proto.Message)
func (*CheckMembershipResp) XXX_Size ¶
func (m *CheckMembershipResp) XXX_Size() int
func (*CheckMembershipResp) XXX_Unmarshal ¶
func (m *CheckMembershipResp) XXX_Unmarshal(b []byte) error
type Group ¶
type Group struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // if audience is not empty, group member should have this audience // in the token. Audience string `protobuf:"bytes,3,opt,name=audience,proto3" json:"audience,omitempty"` // matches mail in the token. Emails []string `protobuf:"bytes,4,rep,name=emails,proto3" json:"emails,omitempty"` // matches domain part of email in the token. Domains []string `protobuf:"bytes,5,rep,name=domains,proto3" json:"domains,omitempty"` // use this service account for this group. // it is used to read json in service-accounts volume. // If service_account is "default", use server's default service account. // If service_account is empty, pass EUC as is. ServiceAccount string `protobuf:"bytes,6,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` // If reject is true, deny access from this group. // Used for blacklisting. Reject bool `protobuf:"varint,7,opt,name=reject,proto3" json:"reject,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Group defines a group of users that shares the same service account. Different groups may share a service account.
func (*Group) Descriptor ¶
func (*Group) GetAudience ¶
func (*Group) GetDescription ¶
func (*Group) GetDomains ¶
func (*Group) GetServiceAccount ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) XXX_DiscardUnknown ¶
func (m *Group) XXX_DiscardUnknown()
func (*Group) XXX_Marshal ¶
func (*Group) XXX_Unmarshal ¶
type Token ¶
type Token struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` TokenType string `protobuf:"bytes,2,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Token) Descriptor ¶
func (*Token) GetAccessToken ¶
func (*Token) GetTokenType ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()