Documentation ¶
Overview ¶
Code generated by protoc-gen-go-aip-cli. DO NOT EDIT.
Index ¶
- Variables
- func NewAuthenticationServiceCommand(config aipcli.Config) *cobra.Command
- func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
- type AuthenticationServiceClient
- type AuthenticationServiceServer
- type ExchangeSecretRequest
- func (*ExchangeSecretRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeSecretRequest) GetClientId() string
- func (x *ExchangeSecretRequest) GetClientSecret() string
- func (*ExchangeSecretRequest) ProtoMessage()
- func (x *ExchangeSecretRequest) ProtoReflect() protoreflect.Message
- func (x *ExchangeSecretRequest) Reset()
- func (x *ExchangeSecretRequest) String() string
- type ExchangeSecretResponse
- func (*ExchangeSecretResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeSecretResponse) GetAccessToken() string
- func (x *ExchangeSecretResponse) GetExpireTime() *timestamppb.Timestamp
- func (*ExchangeSecretResponse) ProtoMessage()
- func (x *ExchangeSecretResponse) ProtoReflect() protoreflect.Message
- func (x *ExchangeSecretResponse) Reset()
- func (x *ExchangeSecretResponse) String() string
- type UnimplementedAuthenticationServiceServer
- type UnsafeAuthenticationServiceServer
Constants ¶
This section is empty.
Variables ¶
var AuthenticationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "einride.saga.extend.auth.v1beta1.AuthenticationService", HandlerType: (*AuthenticationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ExchangeSecret", Handler: _AuthenticationService_ExchangeSecret_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "einride/saga/extend/auth/v1beta1/auth_service.proto", }
AuthenticationService_ServiceDesc is the grpc.ServiceDesc for AuthenticationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_einride_saga_extend_auth_v1beta1_auth_service_proto protoreflect.FileDescriptor
var File_einride_saga_extend_auth_v1beta1_default_service_config_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
Types ¶
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { // Exchange secret for access token. ExchangeSecret(ctx context.Context, in *ExchangeSecretRequest, opts ...grpc.CallOption) (*ExchangeSecretResponse, error) }
AuthenticationServiceClient is the client API for AuthenticationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface { // Exchange secret for access token. ExchangeSecret(context.Context, *ExchangeSecretRequest) (*ExchangeSecretResponse, error) }
AuthenticationServiceServer is the server API for AuthenticationService service. All implementations should embed UnimplementedAuthenticationServiceServer for forward compatibility
type ExchangeSecretRequest ¶
type ExchangeSecretRequest struct { // The client ID. // // Example: "example" ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // The client secret. ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` // contains filtered or unexported fields }
Request to the ExchangeSecret method.
func (*ExchangeSecretRequest) Descriptor
deprecated
func (*ExchangeSecretRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeSecretRequest.ProtoReflect.Descriptor instead.
func (*ExchangeSecretRequest) GetClientId ¶
func (x *ExchangeSecretRequest) GetClientId() string
func (*ExchangeSecretRequest) GetClientSecret ¶
func (x *ExchangeSecretRequest) GetClientSecret() string
func (*ExchangeSecretRequest) ProtoMessage ¶
func (*ExchangeSecretRequest) ProtoMessage()
func (*ExchangeSecretRequest) ProtoReflect ¶
func (x *ExchangeSecretRequest) ProtoReflect() protoreflect.Message
func (*ExchangeSecretRequest) Reset ¶
func (x *ExchangeSecretRequest) Reset()
func (*ExchangeSecretRequest) String ¶
func (x *ExchangeSecretRequest) String() string
type ExchangeSecretResponse ¶
type ExchangeSecretResponse struct { // Access token to pass as a Bearer token in the authorization header // on subsequent API calls. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Expire time of the access token. ExpireTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // contains filtered or unexported fields }
Response from the ExchangeSecret method.
func (*ExchangeSecretResponse) Descriptor
deprecated
func (*ExchangeSecretResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeSecretResponse.ProtoReflect.Descriptor instead.
func (*ExchangeSecretResponse) GetAccessToken ¶
func (x *ExchangeSecretResponse) GetAccessToken() string
func (*ExchangeSecretResponse) GetExpireTime ¶
func (x *ExchangeSecretResponse) GetExpireTime() *timestamppb.Timestamp
func (*ExchangeSecretResponse) ProtoMessage ¶
func (*ExchangeSecretResponse) ProtoMessage()
func (*ExchangeSecretResponse) ProtoReflect ¶
func (x *ExchangeSecretResponse) ProtoReflect() protoreflect.Message
func (*ExchangeSecretResponse) Reset ¶
func (x *ExchangeSecretResponse) Reset()
func (*ExchangeSecretResponse) String ¶
func (x *ExchangeSecretResponse) String() string
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServiceServer) ExchangeSecret ¶
func (UnimplementedAuthenticationServiceServer) ExchangeSecret(context.Context, *ExchangeSecretRequest) (*ExchangeSecretResponse, error)
type UnsafeAuthenticationServiceServer ¶
type UnsafeAuthenticationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServiceServer will result in compilation errors.