authv1beta1

package
v0.0.0-...-81ceaaa Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-aip-cli. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

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

View Source
var File_einride_saga_extend_auth_v1beta1_auth_service_proto protoreflect.FileDescriptor
View Source
var File_einride_saga_extend_auth_v1beta1_default_service_config_proto protoreflect.FileDescriptor

Functions

func NewAuthenticationServiceCommand

func NewAuthenticationServiceCommand(config aipcli.Config) *cobra.Command

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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL