tokenpb

package
Version: v0.0.0-...-8cc90c1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

This method has been 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 (*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

This method has been deprecated.
func (*AssociatePrimaryUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssociatePrimaryUserResponse.ProtoReflect.Descriptor instead.

func (*AssociatePrimaryUserResponse) GetData

func (*AssociatePrimaryUserResponse) ProtoMessage

func (*AssociatePrimaryUserResponse) ProtoMessage()

func (*AssociatePrimaryUserResponse) ProtoReflect

func (*AssociatePrimaryUserResponse) Reset

func (x *AssociatePrimaryUserResponse) Reset()

func (*AssociatePrimaryUserResponse) 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

This method has been deprecated.
func (*AssociateSecondaryClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use AssociateSecondaryClientRequest.ProtoReflect.Descriptor instead.

func (*AssociateSecondaryClientRequest) GetAppId

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 (*AssociateSecondaryClientRequest) Reset

func (*AssociateSecondaryClientRequest) 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

This method has been deprecated.
func (*AssociateSecondaryClientResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssociateSecondaryClientResponse.ProtoReflect.Descriptor instead.

func (*AssociateSecondaryClientResponse) GetData

func (*AssociateSecondaryClientResponse) ProtoMessage

func (*AssociateSecondaryClientResponse) ProtoMessage()

func (*AssociateSecondaryClientResponse) ProtoReflect

func (*AssociateSecondaryClientResponse) Reset

func (*AssociateSecondaryClientResponse) String

type DisassociatePrimaryUserRequest

type DisassociatePrimaryUserRequest struct {
	// contains filtered or unexported fields
}

func (*DisassociatePrimaryUserRequest) Descriptor deprecated

This method has been deprecated.
func (*DisassociatePrimaryUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DisassociatePrimaryUserRequest.ProtoReflect.Descriptor instead.

func (*DisassociatePrimaryUserRequest) ProtoMessage

func (*DisassociatePrimaryUserRequest) ProtoMessage()

func (*DisassociatePrimaryUserRequest) ProtoReflect

func (*DisassociatePrimaryUserRequest) Reset

func (x *DisassociatePrimaryUserRequest) Reset()

func (*DisassociatePrimaryUserRequest) String

type DisassociatePrimaryUserResponse

type DisassociatePrimaryUserResponse struct {
	// contains filtered or unexported fields
}

func (*DisassociatePrimaryUserResponse) Descriptor deprecated

This method has been deprecated.
func (*DisassociatePrimaryUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use DisassociatePrimaryUserResponse.ProtoReflect.Descriptor instead.

func (*DisassociatePrimaryUserResponse) ProtoMessage

func (*DisassociatePrimaryUserResponse) ProtoMessage()

func (*DisassociatePrimaryUserResponse) ProtoReflect

func (*DisassociatePrimaryUserResponse) Reset

func (*DisassociatePrimaryUserResponse) 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

This method has been 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

This method has been 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 (*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

This method has been 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 (*ReassociatePrimaryUserRequest) Reset

func (x *ReassociatePrimaryUserRequest) Reset()

func (*ReassociatePrimaryUserRequest) 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

This method has been deprecated.
func (*ReassociatePrimaryUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReassociatePrimaryUserResponse.ProtoReflect.Descriptor instead.

func (*ReassociatePrimaryUserResponse) GetData

func (*ReassociatePrimaryUserResponse) ProtoMessage

func (*ReassociatePrimaryUserResponse) ProtoMessage()

func (*ReassociatePrimaryUserResponse) ProtoReflect

func (*ReassociatePrimaryUserResponse) Reset

func (x *ReassociatePrimaryUserResponse) Reset()

func (*ReassociatePrimaryUserResponse) 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

This method has been 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

This method has been 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

This method has been 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 (*RevokeFactoryCertificateRequest) Reset

func (*RevokeFactoryCertificateRequest) String

type RevokeFactoryCertificateResponse

type RevokeFactoryCertificateResponse struct {
	// contains filtered or unexported fields
}

func (*RevokeFactoryCertificateResponse) Descriptor deprecated

This method has been deprecated.
func (*RevokeFactoryCertificateResponse) Descriptor() ([]byte, []int)

Deprecated: Use RevokeFactoryCertificateResponse.ProtoReflect.Descriptor instead.

func (*RevokeFactoryCertificateResponse) ProtoMessage

func (*RevokeFactoryCertificateResponse) ProtoMessage()

func (*RevokeFactoryCertificateResponse) ProtoReflect

func (*RevokeFactoryCertificateResponse) Reset

func (*RevokeFactoryCertificateResponse) 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

This method has been 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

This method has been 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

This method has been deprecated.
func (*StsToken) Descriptor() ([]byte, []int)

Deprecated: Use StsToken.ProtoReflect.Descriptor instead.

func (*StsToken) GetAccessKeyId

func (x *StsToken) GetAccessKeyId() string

func (*StsToken) GetExpiration

func (x *StsToken) GetExpiration() string

func (*StsToken) GetSecretAccessKey

func (x *StsToken) GetSecretAccessKey() string

func (*StsToken) GetSessionToken

func (x *StsToken) GetSessionToken() string

func (*StsToken) ProtoMessage

func (*StsToken) ProtoMessage()

func (*StsToken) ProtoReflect

func (x *StsToken) ProtoReflect() protoreflect.Message

func (*StsToken) Reset

func (x *StsToken) Reset()

func (*StsToken) String

func (x *StsToken) String() string

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

This method has been 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

This method has been 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) ListRevokedTokens

func (*UnimplementedTokenServer) RefreshToken

func (*UnimplementedTokenServer) RevokeTokens

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL