auth_spb

package
v0.0.0-...-009a663 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "o5.auth.v1.service.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Whoami",
			Handler:    _AuthService_Whoami_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "o5/auth/v1/service/auth_service.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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_o5_auth_v1_service_auth_service_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	Whoami(ctx context.Context, in *WhoamiRequest, opts ...grpc.CallOption) (*WhoamiResponse, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

type AuthServiceServer interface {
	Whoami(context.Context, *WhoamiRequest) (*WhoamiResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type RealmAccess

type RealmAccess struct {
	RealmId   string `protobuf:"bytes,1,opt,name=realm_id,json=realmId,proto3" json:"realm_id,omitempty"`
	RealmName string `protobuf:"bytes,2,opt,name=realm_name,json=realmName,proto3" json:"realm_name,omitempty"`
	// API URL for this realm
	BaseUrl string `protobuf:"bytes,3,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
	// The sub-realms are separated by tenant ID.
	MultiTenant bool `protobuf:"varint,4,opt,name=multi_tenant,json=multiTenant,proto3" json:"multi_tenant,omitempty"`
	// when not set on a multi-tenant realm, the user has access to all tenants,
	// i.e. super-admin.
	TenantId *string `protobuf:"bytes,5,opt,name=tenant_id,json=tenantId,proto3,oneof" json:"tenant_id,omitempty"`
	// Key-value pairs of metadata for this realm, which are interpreted in the
	// context of the realm type
	Metadata map[string]string `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RealmAccess) Descriptor deprecated

func (*RealmAccess) Descriptor() ([]byte, []int)

Deprecated: Use RealmAccess.ProtoReflect.Descriptor instead.

func (*RealmAccess) GetBaseUrl

func (x *RealmAccess) GetBaseUrl() string

func (*RealmAccess) GetMetadata

func (x *RealmAccess) GetMetadata() map[string]string

func (*RealmAccess) GetMultiTenant

func (x *RealmAccess) GetMultiTenant() bool

func (*RealmAccess) GetRealmId

func (x *RealmAccess) GetRealmId() string

func (*RealmAccess) GetRealmName

func (x *RealmAccess) GetRealmName() string

func (*RealmAccess) GetTenantId

func (x *RealmAccess) GetTenantId() string

func (*RealmAccess) ProtoMessage

func (*RealmAccess) ProtoMessage()

func (*RealmAccess) ProtoReflect

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

func (*RealmAccess) Reset

func (x *RealmAccess) Reset()

func (*RealmAccess) String

func (x *RealmAccess) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) Whoami

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type WhoamiRequest

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

func (*WhoamiRequest) Descriptor deprecated

func (*WhoamiRequest) Descriptor() ([]byte, []int)

Deprecated: Use WhoamiRequest.ProtoReflect.Descriptor instead.

func (*WhoamiRequest) ProtoMessage

func (*WhoamiRequest) ProtoMessage()

func (*WhoamiRequest) ProtoReflect

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

func (*WhoamiRequest) Reset

func (x *WhoamiRequest) Reset()

func (*WhoamiRequest) String

func (x *WhoamiRequest) String() string

type WhoamiResponse

type WhoamiResponse struct {
	RealmAccess []*RealmAccess `protobuf:"bytes,1,rep,name=realm_access,json=realmAccess,proto3" json:"realm_access,omitempty"`
	// contains filtered or unexported fields
}

func (*WhoamiResponse) Descriptor deprecated

func (*WhoamiResponse) Descriptor() ([]byte, []int)

Deprecated: Use WhoamiResponse.ProtoReflect.Descriptor instead.

func (*WhoamiResponse) GetRealmAccess

func (x *WhoamiResponse) GetRealmAccess() []*RealmAccess

func (*WhoamiResponse) ProtoMessage

func (*WhoamiResponse) ProtoMessage()

func (*WhoamiResponse) ProtoReflect

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

func (*WhoamiResponse) Reset

func (x *WhoamiResponse) Reset()

func (*WhoamiResponse) String

func (x *WhoamiResponse) String() string

Jump to

Keyboard shortcuts

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