Documentation ¶
Index ¶
- Variables
- func RegisterTokenServer(s *grpc.Server, srv TokenServer)
- type AssociatePrimaryUserRequest
- func (*AssociatePrimaryUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssociatePrimaryUserRequest) GetAppId() string
- func (x *AssociatePrimaryUserRequest) GetClientName() string
- func (x *AssociatePrimaryUserRequest) GetExpirationMinutes() uint32
- func (x *AssociatePrimaryUserRequest) GetGenerateStsToken() bool
- func (x *AssociatePrimaryUserRequest) GetRevokeClientTokens() bool
- func (x *AssociatePrimaryUserRequest) GetSessionCertificate() []byte
- func (x *AssociatePrimaryUserRequest) GetSkipClientToken() bool
- func (*AssociatePrimaryUserRequest) ProtoMessage()
- func (x *AssociatePrimaryUserRequest) ProtoReflect() protoreflect.Message
- func (x *AssociatePrimaryUserRequest) Reset()
- func (x *AssociatePrimaryUserRequest) String() string
- type AssociatePrimaryUserResponse
- func (*AssociatePrimaryUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssociatePrimaryUserResponse) GetData() *TokenBundle
- func (*AssociatePrimaryUserResponse) ProtoMessage()
- func (x *AssociatePrimaryUserResponse) ProtoReflect() protoreflect.Message
- func (x *AssociatePrimaryUserResponse) Reset()
- func (x *AssociatePrimaryUserResponse) String() string
- type AssociateSecondaryClientRequest
- func (*AssociateSecondaryClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssociateSecondaryClientRequest) GetAppId() string
- func (x *AssociateSecondaryClientRequest) GetClientName() string
- func (x *AssociateSecondaryClientRequest) GetUserSession() string
- func (*AssociateSecondaryClientRequest) ProtoMessage()
- func (x *AssociateSecondaryClientRequest) ProtoReflect() protoreflect.Message
- func (x *AssociateSecondaryClientRequest) Reset()
- func (x *AssociateSecondaryClientRequest) String() string
- type AssociateSecondaryClientResponse
- func (*AssociateSecondaryClientResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssociateSecondaryClientResponse) GetData() *TokenBundle
- func (*AssociateSecondaryClientResponse) ProtoMessage()
- func (x *AssociateSecondaryClientResponse) ProtoReflect() protoreflect.Message
- func (x *AssociateSecondaryClientResponse) Reset()
- func (x *AssociateSecondaryClientResponse) String() string
- type DisassociatePrimaryUserRequest
- func (*DisassociatePrimaryUserRequest) Descriptor() ([]byte, []int)deprecated
- func (*DisassociatePrimaryUserRequest) ProtoMessage()
- func (x *DisassociatePrimaryUserRequest) ProtoReflect() protoreflect.Message
- func (x *DisassociatePrimaryUserRequest) Reset()
- func (x *DisassociatePrimaryUserRequest) String() string
- type DisassociatePrimaryUserResponse
- func (*DisassociatePrimaryUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*DisassociatePrimaryUserResponse) ProtoMessage()
- func (x *DisassociatePrimaryUserResponse) ProtoReflect() protoreflect.Message
- func (x *DisassociatePrimaryUserResponse) Reset()
- func (x *DisassociatePrimaryUserResponse) String() string
- type ListRevokedTokensRequest
- func (*ListRevokedTokensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRevokedTokensRequest) GetPreviousKey() string
- func (*ListRevokedTokensRequest) ProtoMessage()
- func (x *ListRevokedTokensRequest) ProtoReflect() protoreflect.Message
- func (x *ListRevokedTokensRequest) Reset()
- func (x *ListRevokedTokensRequest) String() string
- type ListRevokedTokensResponse
- func (*ListRevokedTokensResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListRevokedTokensResponse) GetData() *TokensPage
- func (*ListRevokedTokensResponse) ProtoMessage()
- func (x *ListRevokedTokensResponse) ProtoReflect() protoreflect.Message
- func (x *ListRevokedTokensResponse) Reset()
- func (x *ListRevokedTokensResponse) String() string
- type ReassociatePrimaryUserRequest
- func (*ReassociatePrimaryUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReassociatePrimaryUserRequest) GetAppId() string
- func (x *ReassociatePrimaryUserRequest) GetClientName() string
- func (x *ReassociatePrimaryUserRequest) GetExpirationMinutes() uint32
- func (x *ReassociatePrimaryUserRequest) GetGenerateStsToken() bool
- func (x *ReassociatePrimaryUserRequest) GetSkipClientToken() bool
- func (*ReassociatePrimaryUserRequest) ProtoMessage()
- func (x *ReassociatePrimaryUserRequest) ProtoReflect() protoreflect.Message
- func (x *ReassociatePrimaryUserRequest) Reset()
- func (x *ReassociatePrimaryUserRequest) String() string
- type ReassociatePrimaryUserResponse
- func (*ReassociatePrimaryUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReassociatePrimaryUserResponse) GetData() *TokenBundle
- func (*ReassociatePrimaryUserResponse) ProtoMessage()
- func (x *ReassociatePrimaryUserResponse) ProtoReflect() protoreflect.Message
- func (x *ReassociatePrimaryUserResponse) Reset()
- func (x *ReassociatePrimaryUserResponse) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetExpirationMinutes() uint32
- func (x *RefreshTokenRequest) GetRefreshJwtTokens() bool
- func (x *RefreshTokenRequest) GetRefreshStsTokens() bool
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetData() *TokenBundle
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- type RevokeFactoryCertificateRequest
- func (*RevokeFactoryCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeFactoryCertificateRequest) GetCertificateId() string
- func (*RevokeFactoryCertificateRequest) ProtoMessage()
- func (x *RevokeFactoryCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeFactoryCertificateRequest) Reset()
- func (x *RevokeFactoryCertificateRequest) String() string
- type RevokeFactoryCertificateResponse
- func (*RevokeFactoryCertificateResponse) Descriptor() ([]byte, []int)deprecated
- func (*RevokeFactoryCertificateResponse) ProtoMessage()
- func (x *RevokeFactoryCertificateResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeFactoryCertificateResponse) Reset()
- func (x *RevokeFactoryCertificateResponse) String() string
- type RevokeTokensRequest
- func (*RevokeTokensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeTokensRequest) GetKey() string
- func (x *RevokeTokensRequest) GetSearchByIndex() string
- func (*RevokeTokensRequest) ProtoMessage()
- func (x *RevokeTokensRequest) ProtoReflect() protoreflect.Message
- func (x *RevokeTokensRequest) Reset()
- func (x *RevokeTokensRequest) String() string
- type RevokeTokensResponse
- func (*RevokeTokensResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RevokeTokensResponse) GetTokensRevoked() uint32
- func (*RevokeTokensResponse) ProtoMessage()
- func (x *RevokeTokensResponse) ProtoReflect() protoreflect.Message
- func (x *RevokeTokensResponse) Reset()
- func (x *RevokeTokensResponse) String() string
- type StsToken
- func (*StsToken) Descriptor() ([]byte, []int)deprecated
- func (x *StsToken) GetAccessKeyId() string
- func (x *StsToken) GetExpiration() string
- func (x *StsToken) GetSecretAccessKey() string
- func (x *StsToken) GetSessionToken() string
- func (*StsToken) ProtoMessage()
- func (x *StsToken) ProtoReflect() protoreflect.Message
- func (x *StsToken) Reset()
- func (x *StsToken) String() string
- type TokenBundle
- func (*TokenBundle) Descriptor() ([]byte, []int)deprecated
- func (x *TokenBundle) GetClientToken() string
- func (x *TokenBundle) GetStsToken() *StsToken
- func (x *TokenBundle) GetToken() string
- func (*TokenBundle) ProtoMessage()
- func (x *TokenBundle) ProtoReflect() protoreflect.Message
- func (x *TokenBundle) Reset()
- func (x *TokenBundle) String() string
- type TokenClient
- type TokenServer
- type TokensPage
- func (*TokensPage) Descriptor() ([]byte, []int)deprecated
- func (x *TokensPage) GetDone() bool
- func (x *TokensPage) GetLastKey() string
- func (x *TokensPage) GetTokens() []string
- func (*TokensPage) ProtoMessage()
- func (x *TokensPage) ProtoReflect() protoreflect.Message
- func (x *TokensPage) Reset()
- func (x *TokensPage) String() string
- type UnimplementedTokenServer
- func (*UnimplementedTokenServer) AssociatePrimaryUser(context.Context, *AssociatePrimaryUserRequest) (*AssociatePrimaryUserResponse, error)
- func (*UnimplementedTokenServer) AssociateSecondaryClient(context.Context, *AssociateSecondaryClientRequest) (*AssociateSecondaryClientResponse, error)
- func (*UnimplementedTokenServer) DisassociatePrimaryUser(context.Context, *DisassociatePrimaryUserRequest) (*DisassociatePrimaryUserResponse, error)
- func (*UnimplementedTokenServer) ListRevokedTokens(context.Context, *ListRevokedTokensRequest) (*ListRevokedTokensResponse, error)
- func (*UnimplementedTokenServer) ReassociatePrimaryUser(context.Context, *ReassociatePrimaryUserRequest) (*ReassociatePrimaryUserResponse, error)
- func (*UnimplementedTokenServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
- func (*UnimplementedTokenServer) RevokeFactoryCertificate(context.Context, *RevokeFactoryCertificateRequest) (*RevokeFactoryCertificateResponse, error)
- func (*UnimplementedTokenServer) RevokeTokens(context.Context, *RevokeTokensRequest) (*RevokeTokensResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_token_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTokenServer ¶
func RegisterTokenServer(s *grpc.Server, srv TokenServer)
Types ¶
type AssociatePrimaryUserRequest ¶
type AssociatePrimaryUserRequest struct { // string robot_id = 1; // string user_session = 2; GenerateStsToken bool `protobuf:"varint,3,opt,name=generate_sts_token,json=generateStsToken,proto3" json:"generate_sts_token,omitempty"` SessionCertificate []byte `protobuf:"bytes,4,opt,name=session_certificate,json=sessionCertificate,proto3" json:"session_certificate,omitempty"` ClientName string `protobuf:"bytes,5,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"` AppId string `protobuf:"bytes,6,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` SkipClientToken bool `protobuf:"varint,7,opt,name=skip_client_token,json=skipClientToken,proto3" json:"skip_client_token,omitempty"` RevokeClientTokens bool `protobuf:"varint,8,opt,name=revoke_client_tokens,json=revokeClientTokens,proto3" json:"revoke_client_tokens,omitempty"` ExpirationMinutes uint32 `protobuf:"varint,9,opt,name=expiration_minutes,json=expirationMinutes,proto3" json:"expiration_minutes,omitempty"` // contains filtered or unexported fields }
func (*AssociatePrimaryUserRequest) Descriptor
deprecated
func (*AssociatePrimaryUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssociatePrimaryUserRequest.ProtoReflect.Descriptor instead.
func (*AssociatePrimaryUserRequest) GetAppId ¶
func (x *AssociatePrimaryUserRequest) GetAppId() string
func (*AssociatePrimaryUserRequest) GetClientName ¶
func (x *AssociatePrimaryUserRequest) GetClientName() string
func (*AssociatePrimaryUserRequest) GetExpirationMinutes ¶
func (x *AssociatePrimaryUserRequest) GetExpirationMinutes() uint32
func (*AssociatePrimaryUserRequest) GetGenerateStsToken ¶
func (x *AssociatePrimaryUserRequest) GetGenerateStsToken() bool
func (*AssociatePrimaryUserRequest) GetRevokeClientTokens ¶
func (x *AssociatePrimaryUserRequest) GetRevokeClientTokens() bool
func (*AssociatePrimaryUserRequest) GetSessionCertificate ¶
func (x *AssociatePrimaryUserRequest) GetSessionCertificate() []byte
func (*AssociatePrimaryUserRequest) GetSkipClientToken ¶
func (x *AssociatePrimaryUserRequest) GetSkipClientToken() bool
func (*AssociatePrimaryUserRequest) ProtoMessage ¶
func (*AssociatePrimaryUserRequest) ProtoMessage()
func (*AssociatePrimaryUserRequest) ProtoReflect ¶
func (x *AssociatePrimaryUserRequest) ProtoReflect() protoreflect.Message
func (*AssociatePrimaryUserRequest) Reset ¶
func (x *AssociatePrimaryUserRequest) Reset()
func (*AssociatePrimaryUserRequest) String ¶
func (x *AssociatePrimaryUserRequest) String() string
type AssociatePrimaryUserResponse ¶
type AssociatePrimaryUserResponse struct { Data *TokenBundle `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*AssociatePrimaryUserResponse) Descriptor
deprecated
func (*AssociatePrimaryUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssociatePrimaryUserResponse.ProtoReflect.Descriptor instead.
func (*AssociatePrimaryUserResponse) GetData ¶
func (x *AssociatePrimaryUserResponse) GetData() *TokenBundle
func (*AssociatePrimaryUserResponse) ProtoMessage ¶
func (*AssociatePrimaryUserResponse) ProtoMessage()
func (*AssociatePrimaryUserResponse) ProtoReflect ¶
func (x *AssociatePrimaryUserResponse) ProtoReflect() protoreflect.Message
func (*AssociatePrimaryUserResponse) Reset ¶
func (x *AssociatePrimaryUserResponse) Reset()
func (*AssociatePrimaryUserResponse) String ¶
func (x *AssociatePrimaryUserResponse) String() string
type AssociateSecondaryClientRequest ¶
type AssociateSecondaryClientRequest struct { // string token = 1; UserSession string `protobuf:"bytes,2,opt,name=user_session,json=userSession,proto3" json:"user_session,omitempty"` ClientName string `protobuf:"bytes,3,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"` AppId string `protobuf:"bytes,4,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // contains filtered or unexported fields }
func (*AssociateSecondaryClientRequest) Descriptor
deprecated
func (*AssociateSecondaryClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssociateSecondaryClientRequest.ProtoReflect.Descriptor instead.
func (*AssociateSecondaryClientRequest) GetAppId ¶
func (x *AssociateSecondaryClientRequest) GetAppId() string
func (*AssociateSecondaryClientRequest) GetClientName ¶
func (x *AssociateSecondaryClientRequest) GetClientName() string
func (*AssociateSecondaryClientRequest) GetUserSession ¶
func (x *AssociateSecondaryClientRequest) GetUserSession() string
func (*AssociateSecondaryClientRequest) ProtoMessage ¶
func (*AssociateSecondaryClientRequest) ProtoMessage()
func (*AssociateSecondaryClientRequest) ProtoReflect ¶
func (x *AssociateSecondaryClientRequest) ProtoReflect() protoreflect.Message
func (*AssociateSecondaryClientRequest) Reset ¶
func (x *AssociateSecondaryClientRequest) Reset()
func (*AssociateSecondaryClientRequest) String ¶
func (x *AssociateSecondaryClientRequest) String() string
type AssociateSecondaryClientResponse ¶
type AssociateSecondaryClientResponse struct { Data *TokenBundle `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*AssociateSecondaryClientResponse) Descriptor
deprecated
func (*AssociateSecondaryClientResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssociateSecondaryClientResponse.ProtoReflect.Descriptor instead.
func (*AssociateSecondaryClientResponse) GetData ¶
func (x *AssociateSecondaryClientResponse) GetData() *TokenBundle
func (*AssociateSecondaryClientResponse) ProtoMessage ¶
func (*AssociateSecondaryClientResponse) ProtoMessage()
func (*AssociateSecondaryClientResponse) ProtoReflect ¶
func (x *AssociateSecondaryClientResponse) ProtoReflect() protoreflect.Message
func (*AssociateSecondaryClientResponse) Reset ¶
func (x *AssociateSecondaryClientResponse) Reset()
func (*AssociateSecondaryClientResponse) String ¶
func (x *AssociateSecondaryClientResponse) String() string
type DisassociatePrimaryUserRequest ¶
type DisassociatePrimaryUserRequest struct {
// contains filtered or unexported fields
}
func (*DisassociatePrimaryUserRequest) Descriptor
deprecated
func (*DisassociatePrimaryUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisassociatePrimaryUserRequest.ProtoReflect.Descriptor instead.
func (*DisassociatePrimaryUserRequest) ProtoMessage ¶
func (*DisassociatePrimaryUserRequest) ProtoMessage()
func (*DisassociatePrimaryUserRequest) ProtoReflect ¶
func (x *DisassociatePrimaryUserRequest) ProtoReflect() protoreflect.Message
func (*DisassociatePrimaryUserRequest) Reset ¶
func (x *DisassociatePrimaryUserRequest) Reset()
func (*DisassociatePrimaryUserRequest) String ¶
func (x *DisassociatePrimaryUserRequest) String() string
type DisassociatePrimaryUserResponse ¶
type DisassociatePrimaryUserResponse struct {
// contains filtered or unexported fields
}
func (*DisassociatePrimaryUserResponse) Descriptor
deprecated
func (*DisassociatePrimaryUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisassociatePrimaryUserResponse.ProtoReflect.Descriptor instead.
func (*DisassociatePrimaryUserResponse) ProtoMessage ¶
func (*DisassociatePrimaryUserResponse) ProtoMessage()
func (*DisassociatePrimaryUserResponse) ProtoReflect ¶
func (x *DisassociatePrimaryUserResponse) ProtoReflect() protoreflect.Message
func (*DisassociatePrimaryUserResponse) Reset ¶
func (x *DisassociatePrimaryUserResponse) Reset()
func (*DisassociatePrimaryUserResponse) String ¶
func (x *DisassociatePrimaryUserResponse) String() string
type ListRevokedTokensRequest ¶
type ListRevokedTokensRequest struct { PreviousKey string `protobuf:"bytes,1,opt,name=previous_key,json=previousKey,proto3" json:"previous_key,omitempty"` // contains filtered or unexported fields }
func (*ListRevokedTokensRequest) Descriptor
deprecated
func (*ListRevokedTokensRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRevokedTokensRequest.ProtoReflect.Descriptor instead.
func (*ListRevokedTokensRequest) GetPreviousKey ¶
func (x *ListRevokedTokensRequest) GetPreviousKey() string
func (*ListRevokedTokensRequest) ProtoMessage ¶
func (*ListRevokedTokensRequest) ProtoMessage()
func (*ListRevokedTokensRequest) ProtoReflect ¶
func (x *ListRevokedTokensRequest) ProtoReflect() protoreflect.Message
func (*ListRevokedTokensRequest) Reset ¶
func (x *ListRevokedTokensRequest) Reset()
func (*ListRevokedTokensRequest) String ¶
func (x *ListRevokedTokensRequest) String() string
type ListRevokedTokensResponse ¶
type ListRevokedTokensResponse struct { Data *TokensPage `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListRevokedTokensResponse) Descriptor
deprecated
func (*ListRevokedTokensResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRevokedTokensResponse.ProtoReflect.Descriptor instead.
func (*ListRevokedTokensResponse) GetData ¶
func (x *ListRevokedTokensResponse) GetData() *TokensPage
func (*ListRevokedTokensResponse) ProtoMessage ¶
func (*ListRevokedTokensResponse) ProtoMessage()
func (*ListRevokedTokensResponse) ProtoReflect ¶
func (x *ListRevokedTokensResponse) ProtoReflect() protoreflect.Message
func (*ListRevokedTokensResponse) Reset ¶
func (x *ListRevokedTokensResponse) Reset()
func (*ListRevokedTokensResponse) String ¶
func (x *ListRevokedTokensResponse) String() string
type ReassociatePrimaryUserRequest ¶
type ReassociatePrimaryUserRequest struct { GenerateStsToken bool `protobuf:"varint,1,opt,name=generate_sts_token,json=generateStsToken,proto3" json:"generate_sts_token,omitempty"` ClientName string `protobuf:"bytes,2,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"` AppId string `protobuf:"bytes,3,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` SkipClientToken bool `protobuf:"varint,4,opt,name=skip_client_token,json=skipClientToken,proto3" json:"skip_client_token,omitempty"` ExpirationMinutes uint32 `protobuf:"varint,5,opt,name=expiration_minutes,json=expirationMinutes,proto3" json:"expiration_minutes,omitempty"` // contains filtered or unexported fields }
func (*ReassociatePrimaryUserRequest) Descriptor
deprecated
func (*ReassociatePrimaryUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReassociatePrimaryUserRequest.ProtoReflect.Descriptor instead.
func (*ReassociatePrimaryUserRequest) GetAppId ¶
func (x *ReassociatePrimaryUserRequest) GetAppId() string
func (*ReassociatePrimaryUserRequest) GetClientName ¶
func (x *ReassociatePrimaryUserRequest) GetClientName() string
func (*ReassociatePrimaryUserRequest) GetExpirationMinutes ¶
func (x *ReassociatePrimaryUserRequest) GetExpirationMinutes() uint32
func (*ReassociatePrimaryUserRequest) GetGenerateStsToken ¶
func (x *ReassociatePrimaryUserRequest) GetGenerateStsToken() bool
func (*ReassociatePrimaryUserRequest) GetSkipClientToken ¶
func (x *ReassociatePrimaryUserRequest) GetSkipClientToken() bool
func (*ReassociatePrimaryUserRequest) ProtoMessage ¶
func (*ReassociatePrimaryUserRequest) ProtoMessage()
func (*ReassociatePrimaryUserRequest) ProtoReflect ¶
func (x *ReassociatePrimaryUserRequest) ProtoReflect() protoreflect.Message
func (*ReassociatePrimaryUserRequest) Reset ¶
func (x *ReassociatePrimaryUserRequest) Reset()
func (*ReassociatePrimaryUserRequest) String ¶
func (x *ReassociatePrimaryUserRequest) String() string
type ReassociatePrimaryUserResponse ¶
type ReassociatePrimaryUserResponse struct { Data *TokenBundle `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ReassociatePrimaryUserResponse) Descriptor
deprecated
func (*ReassociatePrimaryUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReassociatePrimaryUserResponse.ProtoReflect.Descriptor instead.
func (*ReassociatePrimaryUserResponse) GetData ¶
func (x *ReassociatePrimaryUserResponse) GetData() *TokenBundle
func (*ReassociatePrimaryUserResponse) ProtoMessage ¶
func (*ReassociatePrimaryUserResponse) ProtoMessage()
func (*ReassociatePrimaryUserResponse) ProtoReflect ¶
func (x *ReassociatePrimaryUserResponse) ProtoReflect() protoreflect.Message
func (*ReassociatePrimaryUserResponse) Reset ¶
func (x *ReassociatePrimaryUserResponse) Reset()
func (*ReassociatePrimaryUserResponse) String ¶
func (x *ReassociatePrimaryUserResponse) String() string
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { // string token = 1; RefreshJwtTokens bool `protobuf:"varint,2,opt,name=refresh_jwt_tokens,json=refreshJwtTokens,proto3" json:"refresh_jwt_tokens,omitempty"` RefreshStsTokens bool `protobuf:"varint,3,opt,name=refresh_sts_tokens,json=refreshStsTokens,proto3" json:"refresh_sts_tokens,omitempty"` ExpirationMinutes uint32 `protobuf:"varint,4,opt,name=expiration_minutes,json=expirationMinutes,proto3" json:"expiration_minutes,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetExpirationMinutes ¶
func (x *RefreshTokenRequest) GetExpirationMinutes() uint32
func (*RefreshTokenRequest) GetRefreshJwtTokens ¶
func (x *RefreshTokenRequest) GetRefreshJwtTokens() bool
func (*RefreshTokenRequest) GetRefreshStsTokens ¶
func (x *RefreshTokenRequest) GetRefreshStsTokens() bool
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { Data *TokenBundle `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetData ¶
func (x *RefreshTokenResponse) GetData() *TokenBundle
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
type RevokeFactoryCertificateRequest ¶
type RevokeFactoryCertificateRequest struct { CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` // contains filtered or unexported fields }
func (*RevokeFactoryCertificateRequest) Descriptor
deprecated
func (*RevokeFactoryCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeFactoryCertificateRequest.ProtoReflect.Descriptor instead.
func (*RevokeFactoryCertificateRequest) GetCertificateId ¶
func (x *RevokeFactoryCertificateRequest) GetCertificateId() string
func (*RevokeFactoryCertificateRequest) ProtoMessage ¶
func (*RevokeFactoryCertificateRequest) ProtoMessage()
func (*RevokeFactoryCertificateRequest) ProtoReflect ¶
func (x *RevokeFactoryCertificateRequest) ProtoReflect() protoreflect.Message
func (*RevokeFactoryCertificateRequest) Reset ¶
func (x *RevokeFactoryCertificateRequest) Reset()
func (*RevokeFactoryCertificateRequest) String ¶
func (x *RevokeFactoryCertificateRequest) String() string
type RevokeFactoryCertificateResponse ¶
type RevokeFactoryCertificateResponse struct {
// contains filtered or unexported fields
}
func (*RevokeFactoryCertificateResponse) Descriptor
deprecated
func (*RevokeFactoryCertificateResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeFactoryCertificateResponse.ProtoReflect.Descriptor instead.
func (*RevokeFactoryCertificateResponse) ProtoMessage ¶
func (*RevokeFactoryCertificateResponse) ProtoMessage()
func (*RevokeFactoryCertificateResponse) ProtoReflect ¶
func (x *RevokeFactoryCertificateResponse) ProtoReflect() protoreflect.Message
func (*RevokeFactoryCertificateResponse) Reset ¶
func (x *RevokeFactoryCertificateResponse) Reset()
func (*RevokeFactoryCertificateResponse) String ¶
func (x *RevokeFactoryCertificateResponse) String() string
type RevokeTokensRequest ¶
type RevokeTokensRequest struct { SearchByIndex string `protobuf:"bytes,1,opt,name=search_by_index,json=searchByIndex,proto3" json:"search_by_index,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*RevokeTokensRequest) Descriptor
deprecated
func (*RevokeTokensRequest) Descriptor() ([]byte, []int)
Deprecated: Use RevokeTokensRequest.ProtoReflect.Descriptor instead.
func (*RevokeTokensRequest) GetKey ¶
func (x *RevokeTokensRequest) GetKey() string
func (*RevokeTokensRequest) GetSearchByIndex ¶
func (x *RevokeTokensRequest) GetSearchByIndex() string
func (*RevokeTokensRequest) ProtoMessage ¶
func (*RevokeTokensRequest) ProtoMessage()
func (*RevokeTokensRequest) ProtoReflect ¶
func (x *RevokeTokensRequest) ProtoReflect() protoreflect.Message
func (*RevokeTokensRequest) Reset ¶
func (x *RevokeTokensRequest) Reset()
func (*RevokeTokensRequest) String ¶
func (x *RevokeTokensRequest) String() string
type RevokeTokensResponse ¶
type RevokeTokensResponse struct { TokensRevoked uint32 `protobuf:"varint,1,opt,name=tokens_revoked,json=tokensRevoked,proto3" json:"tokens_revoked,omitempty"` // contains filtered or unexported fields }
func (*RevokeTokensResponse) Descriptor
deprecated
func (*RevokeTokensResponse) Descriptor() ([]byte, []int)
Deprecated: Use RevokeTokensResponse.ProtoReflect.Descriptor instead.
func (*RevokeTokensResponse) GetTokensRevoked ¶
func (x *RevokeTokensResponse) GetTokensRevoked() uint32
func (*RevokeTokensResponse) ProtoMessage ¶
func (*RevokeTokensResponse) ProtoMessage()
func (*RevokeTokensResponse) ProtoReflect ¶
func (x *RevokeTokensResponse) ProtoReflect() protoreflect.Message
func (*RevokeTokensResponse) Reset ¶
func (x *RevokeTokensResponse) Reset()
func (*RevokeTokensResponse) String ¶
func (x *RevokeTokensResponse) String() string
type StsToken ¶
type StsToken struct { AccessKeyId string `protobuf:"bytes,1,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"` SecretAccessKey string `protobuf:"bytes,2,opt,name=secret_access_key,json=secretAccessKey,proto3" json:"secret_access_key,omitempty"` SessionToken string `protobuf:"bytes,3,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` Expiration string `protobuf:"bytes,4,opt,name=expiration,proto3" json:"expiration,omitempty"` // contains filtered or unexported fields }
func (*StsToken) Descriptor
deprecated
func (*StsToken) GetAccessKeyId ¶
func (*StsToken) GetExpiration ¶
func (*StsToken) GetSecretAccessKey ¶
func (*StsToken) GetSessionToken ¶
func (*StsToken) ProtoMessage ¶
func (*StsToken) ProtoMessage()
func (*StsToken) ProtoReflect ¶
func (x *StsToken) ProtoReflect() protoreflect.Message
type TokenBundle ¶
type TokenBundle struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ClientToken string `protobuf:"bytes,2,opt,name=client_token,json=clientToken,proto3" json:"client_token,omitempty"` //string sts_token = 3; StsToken *StsToken `protobuf:"bytes,4,opt,name=sts_token,json=stsToken,proto3" json:"sts_token,omitempty"` // contains filtered or unexported fields }
func (*TokenBundle) Descriptor
deprecated
func (*TokenBundle) Descriptor() ([]byte, []int)
Deprecated: Use TokenBundle.ProtoReflect.Descriptor instead.
func (*TokenBundle) GetClientToken ¶
func (x *TokenBundle) GetClientToken() string
func (*TokenBundle) GetStsToken ¶
func (x *TokenBundle) GetStsToken() *StsToken
func (*TokenBundle) GetToken ¶
func (x *TokenBundle) GetToken() string
func (*TokenBundle) ProtoMessage ¶
func (*TokenBundle) ProtoMessage()
func (*TokenBundle) ProtoReflect ¶
func (x *TokenBundle) ProtoReflect() protoreflect.Message
func (*TokenBundle) Reset ¶
func (x *TokenBundle) Reset()
func (*TokenBundle) String ¶
func (x *TokenBundle) String() string
type TokenClient ¶
type TokenClient interface { // AssociatePrimaryUser // Authentication: cert + appkey + user session // // Sets the owner of a robot, issuing an access token for further // access and a client token for Chewy. Requires a valid user // session and revokes all previously existing tokens. The identity // of the robot is derived from the CN of the robot factory // certificate. AssociatePrimaryUser(ctx context.Context, in *AssociatePrimaryUserRequest, opts ...grpc.CallOption) (*AssociatePrimaryUserResponse, error) // ReassociatePrimaryUser // Authentication: cert + appkey + user session // // TODO - documentation ReassociatePrimaryUser(ctx context.Context, in *ReassociatePrimaryUserRequest, opts ...grpc.CallOption) (*ReassociatePrimaryUserResponse, error) // AssociateSecondaryClient // Authentication: cert + appkey + token // // Associates a secondary app for the primary user, generating a // client token for the secondary app to use. Associating a // non-primary user is not currently supported. AssociateSecondaryClient(ctx context.Context, in *AssociateSecondaryClientRequest, opts ...grpc.CallOption) (*AssociateSecondaryClientResponse, error) // DisassociatePrimaryUser // Authentication: cert + token // // Remove the primary user's access from the robot - immediately // revokes all access tokens for robot. DisassociatePrimaryUser(ctx context.Context, in *DisassociatePrimaryUserRequest, opts ...grpc.CallOption) (*DisassociatePrimaryUserResponse, error) // RefreshToken // Authentication: cert + token // // Refresh an existing access token. The access token may be // refreshed for up to one year, as long as it has not been revoked // (e.g. by DisassociatePrimaryUser). RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) // ListRevokedTokens // Authentication: appkey // // Lists all currently revoked tokens, for populating the cache of // revoked tokens in each service which handles token-based // authentication. Only callable by other services (e.g. Chipper, // Jdocs, etc...) ListRevokedTokens(ctx context.Context, in *ListRevokedTokensRequest, opts ...grpc.CallOption) (*ListRevokedTokensResponse, error) // RevokeFactoryCertificate // Authentication: cert + appkey (TBD, admin only) // // RevokeFactoryCertificate blacklists one of the factory-issued // robot certificates. RevokeFactoryCertificate(ctx context.Context, in *RevokeFactoryCertificateRequest, opts ...grpc.CallOption) (*RevokeFactoryCertificateResponse, error) // RevokeTokens // Authentication: cert + appkey (TBD, admin only) // // Revoke tokens matching a user or robot. RevokeTokens(ctx context.Context, in *RevokeTokensRequest, opts ...grpc.CallOption) (*RevokeTokensResponse, error) }
TokenClient is the client API for Token service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTokenClient ¶
func NewTokenClient(cc grpc.ClientConnInterface) TokenClient
type TokenServer ¶
type TokenServer interface { // AssociatePrimaryUser // Authentication: cert + appkey + user session // // Sets the owner of a robot, issuing an access token for further // access and a client token for Chewy. Requires a valid user // session and revokes all previously existing tokens. The identity // of the robot is derived from the CN of the robot factory // certificate. AssociatePrimaryUser(context.Context, *AssociatePrimaryUserRequest) (*AssociatePrimaryUserResponse, error) // ReassociatePrimaryUser // Authentication: cert + appkey + user session // // TODO - documentation ReassociatePrimaryUser(context.Context, *ReassociatePrimaryUserRequest) (*ReassociatePrimaryUserResponse, error) // AssociateSecondaryClient // Authentication: cert + appkey + token // // Associates a secondary app for the primary user, generating a // client token for the secondary app to use. Associating a // non-primary user is not currently supported. AssociateSecondaryClient(context.Context, *AssociateSecondaryClientRequest) (*AssociateSecondaryClientResponse, error) // DisassociatePrimaryUser // Authentication: cert + token // // Remove the primary user's access from the robot - immediately // revokes all access tokens for robot. DisassociatePrimaryUser(context.Context, *DisassociatePrimaryUserRequest) (*DisassociatePrimaryUserResponse, error) // RefreshToken // Authentication: cert + token // // Refresh an existing access token. The access token may be // refreshed for up to one year, as long as it has not been revoked // (e.g. by DisassociatePrimaryUser). RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) // ListRevokedTokens // Authentication: appkey // // Lists all currently revoked tokens, for populating the cache of // revoked tokens in each service which handles token-based // authentication. Only callable by other services (e.g. Chipper, // Jdocs, etc...) ListRevokedTokens(context.Context, *ListRevokedTokensRequest) (*ListRevokedTokensResponse, error) // RevokeFactoryCertificate // Authentication: cert + appkey (TBD, admin only) // // RevokeFactoryCertificate blacklists one of the factory-issued // robot certificates. RevokeFactoryCertificate(context.Context, *RevokeFactoryCertificateRequest) (*RevokeFactoryCertificateResponse, error) // RevokeTokens // Authentication: cert + appkey (TBD, admin only) // // Revoke tokens matching a user or robot. RevokeTokens(context.Context, *RevokeTokensRequest) (*RevokeTokensResponse, error) }
TokenServer is the server API for Token service.
type TokensPage ¶
type TokensPage struct { Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` LastKey string `protobuf:"bytes,2,opt,name=last_key,json=lastKey,proto3" json:"last_key,omitempty"` Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"` // contains filtered or unexported fields }
func (*TokensPage) Descriptor
deprecated
func (*TokensPage) Descriptor() ([]byte, []int)
Deprecated: Use TokensPage.ProtoReflect.Descriptor instead.
func (*TokensPage) GetDone ¶
func (x *TokensPage) GetDone() bool
func (*TokensPage) GetLastKey ¶
func (x *TokensPage) GetLastKey() string
func (*TokensPage) GetTokens ¶
func (x *TokensPage) GetTokens() []string
func (*TokensPage) ProtoMessage ¶
func (*TokensPage) ProtoMessage()
func (*TokensPage) ProtoReflect ¶
func (x *TokensPage) ProtoReflect() protoreflect.Message
func (*TokensPage) Reset ¶
func (x *TokensPage) Reset()
func (*TokensPage) String ¶
func (x *TokensPage) String() string
type UnimplementedTokenServer ¶
type UnimplementedTokenServer struct { }
UnimplementedTokenServer can be embedded to have forward compatible implementations.
func (*UnimplementedTokenServer) AssociatePrimaryUser ¶
func (*UnimplementedTokenServer) AssociatePrimaryUser(context.Context, *AssociatePrimaryUserRequest) (*AssociatePrimaryUserResponse, error)
func (*UnimplementedTokenServer) AssociateSecondaryClient ¶
func (*UnimplementedTokenServer) AssociateSecondaryClient(context.Context, *AssociateSecondaryClientRequest) (*AssociateSecondaryClientResponse, error)
func (*UnimplementedTokenServer) DisassociatePrimaryUser ¶
func (*UnimplementedTokenServer) DisassociatePrimaryUser(context.Context, *DisassociatePrimaryUserRequest) (*DisassociatePrimaryUserResponse, error)
func (*UnimplementedTokenServer) ListRevokedTokens ¶
func (*UnimplementedTokenServer) ListRevokedTokens(context.Context, *ListRevokedTokensRequest) (*ListRevokedTokensResponse, error)
func (*UnimplementedTokenServer) ReassociatePrimaryUser ¶
func (*UnimplementedTokenServer) ReassociatePrimaryUser(context.Context, *ReassociatePrimaryUserRequest) (*ReassociatePrimaryUserResponse, error)
func (*UnimplementedTokenServer) RefreshToken ¶
func (*UnimplementedTokenServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
func (*UnimplementedTokenServer) RevokeFactoryCertificate ¶
func (*UnimplementedTokenServer) RevokeFactoryCertificate(context.Context, *RevokeFactoryCertificateRequest) (*RevokeFactoryCertificateResponse, error)
func (*UnimplementedTokenServer) RevokeTokens ¶
func (*UnimplementedTokenServer) RevokeTokens(context.Context, *RevokeTokensRequest) (*RevokeTokensResponse, error)