kernelidentityv1

package
v0.0.0-...-f863f97 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	KernelIdentity_CreateSubscriber_FullMethodName       = "/anixops.kernelidentity.v1.KernelIdentity/CreateSubscriber"
	KernelIdentity_UpdateSubscriber_FullMethodName       = "/anixops.kernelidentity.v1.KernelIdentity/UpdateSubscriber"
	KernelIdentity_ApplyAccountProjection_FullMethodName = "/anixops.kernelidentity.v1.KernelIdentity/ApplyAccountProjection"
	KernelIdentity_DeleteSubscriber_FullMethodName       = "/anixops.kernelidentity.v1.KernelIdentity/DeleteSubscriber"
	KernelIdentity_PublishRevocation_FullMethodName      = "/anixops.kernelidentity.v1.KernelIdentity/PublishRevocation"
	KernelIdentity_ResolveActorAccess_FullMethodName     = "/anixops.kernelidentity.v1.KernelIdentity/ResolveActorAccess"
	KernelIdentity_GetIdentitySettings_FullMethodName    = "/anixops.kernelidentity.v1.KernelIdentity/GetIdentitySettings"
	KernelIdentity_GetSubscriber_FullMethodName          = "/anixops.kernelidentity.v1.KernelIdentity/GetSubscriber"
)

Variables

View Source
var File_api_kernelidentity_v1_kernel_identity_proto protoreflect.FileDescriptor
View Source
var KernelIdentity_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "anixops.kernelidentity.v1.KernelIdentity",
	HandlerType: (*KernelIdentityServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateSubscriber",
			Handler:    _KernelIdentity_CreateSubscriber_Handler,
		},
		{
			MethodName: "UpdateSubscriber",
			Handler:    _KernelIdentity_UpdateSubscriber_Handler,
		},
		{
			MethodName: "ApplyAccountProjection",
			Handler:    _KernelIdentity_ApplyAccountProjection_Handler,
		},
		{
			MethodName: "DeleteSubscriber",
			Handler:    _KernelIdentity_DeleteSubscriber_Handler,
		},
		{
			MethodName: "PublishRevocation",
			Handler:    _KernelIdentity_PublishRevocation_Handler,
		},
		{
			MethodName: "ResolveActorAccess",
			Handler:    _KernelIdentity_ResolveActorAccess_Handler,
		},
		{
			MethodName: "GetIdentitySettings",
			Handler:    _KernelIdentity_GetIdentitySettings_Handler,
		},
		{
			MethodName: "GetSubscriber",
			Handler:    _KernelIdentity_GetSubscriber_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/kernelidentity/v1/kernel_identity.proto",
}

KernelIdentity_ServiceDesc is the grpc.ServiceDesc for KernelIdentity service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKernelIdentityServer

func RegisterKernelIdentityServer(s grpc.ServiceRegistrar, srv KernelIdentityServer)

Types

type ApplyAccountProjectionRequest

type ApplyAccountProjectionRequest struct {
	UserId  uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Email   string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	IsAdmin bool   `protobuf:"varint,4,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	IsStaff bool   `protobuf:"varint,5,opt,name=is_staff,json=isStaff,proto3" json:"is_staff,omitempty"`
	Banned  bool   `protobuf:"varint,6,opt,name=banned,proto3" json:"banned,omitempty"`
	// legacy_mirror carries credentials back into the legacy tables until the
	// identity cutover is finalized, so a rollback to legacy routes works.
	LegacyMirror *LegacyCredentialMirror `protobuf:"bytes,7,opt,name=legacy_mirror,json=legacyMirror,proto3" json:"legacy_mirror,omitempty"`
	// token_version is the account's token version after the change. When the
	// change ends sessions and token_version is above the last one projected,
	// identity tokens with a smaller tv claim stop working and tokens issued
	// afterwards, even within the same second, keep working.
	TokenVersion uint64 `protobuf:"varint,8,opt,name=token_version,json=tokenVersion,proto3" json:"token_version,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyAccountProjectionRequest) Descriptor deprecated

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

Deprecated: Use ApplyAccountProjectionRequest.ProtoReflect.Descriptor instead.

func (*ApplyAccountProjectionRequest) GetBanned

func (x *ApplyAccountProjectionRequest) GetBanned() bool

func (*ApplyAccountProjectionRequest) GetEmail

func (x *ApplyAccountProjectionRequest) GetEmail() string

func (*ApplyAccountProjectionRequest) GetIsAdmin

func (x *ApplyAccountProjectionRequest) GetIsAdmin() bool

func (*ApplyAccountProjectionRequest) GetIsStaff

func (x *ApplyAccountProjectionRequest) GetIsStaff() bool

func (*ApplyAccountProjectionRequest) GetLegacyMirror

func (*ApplyAccountProjectionRequest) GetTokenVersion

func (x *ApplyAccountProjectionRequest) GetTokenVersion() uint64

func (*ApplyAccountProjectionRequest) GetUserId

func (x *ApplyAccountProjectionRequest) GetUserId() uint64

func (*ApplyAccountProjectionRequest) GetVersion

func (x *ApplyAccountProjectionRequest) GetVersion() uint64

func (*ApplyAccountProjectionRequest) ProtoMessage

func (*ApplyAccountProjectionRequest) ProtoMessage()

func (*ApplyAccountProjectionRequest) ProtoReflect

func (*ApplyAccountProjectionRequest) Reset

func (x *ApplyAccountProjectionRequest) Reset()

func (*ApplyAccountProjectionRequest) String

type ApplyAccountProjectionResponse

type ApplyAccountProjectionResponse struct {
	Applied       bool   `protobuf:"varint,1,opt,name=applied,proto3" json:"applied,omitempty"`
	StoredVersion uint64 `protobuf:"varint,2,opt,name=stored_version,json=storedVersion,proto3" json:"stored_version,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyAccountProjectionResponse) Descriptor deprecated

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

Deprecated: Use ApplyAccountProjectionResponse.ProtoReflect.Descriptor instead.

func (*ApplyAccountProjectionResponse) GetApplied

func (x *ApplyAccountProjectionResponse) GetApplied() bool

func (*ApplyAccountProjectionResponse) GetStoredVersion

func (x *ApplyAccountProjectionResponse) GetStoredVersion() uint64

func (*ApplyAccountProjectionResponse) ProtoMessage

func (*ApplyAccountProjectionResponse) ProtoMessage()

func (*ApplyAccountProjectionResponse) ProtoReflect

func (*ApplyAccountProjectionResponse) Reset

func (x *ApplyAccountProjectionResponse) Reset()

func (*ApplyAccountProjectionResponse) String

type CreateSubscriberRequest

type CreateSubscriberRequest struct {
	AccountUuid  string `protobuf:"bytes,1,opt,name=account_uuid,json=accountUuid,proto3" json:"account_uuid,omitempty"`
	Email        string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	InviteUserId uint64 `protobuf:"varint,3,opt,name=invite_user_id,json=inviteUserId,proto3" json:"invite_user_id,omitempty"`
	// invite_code, when set, is validated and consumed together with the new
	// subscriber: the code's owner becomes the inviter. Codes stay with the
	// kernel. Refusals are FailedPrecondition with the v2 message.
	InviteCode string `protobuf:"bytes,4,opt,name=invite_code,json=inviteCode,proto3" json:"invite_code,omitempty"`
	// is_admin and is_staff set the new subscriber's projected flags, for
	// accounts an administrator creates.
	IsAdmin bool `protobuf:"varint,5,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	IsStaff bool `protobuf:"varint,6,opt,name=is_staff,json=isStaff,proto3" json:"is_staff,omitempty"`
	// legacy_mirror sets the new subscriber's legacy credentials (until the
	// authority is finalized), so switching back to the legacy routes keeps
	// the account usable. Being part of the creation, it revokes nothing.
	LegacyMirror *LegacyCredentialMirror `protobuf:"bytes,7,opt,name=legacy_mirror,json=legacyMirror,proto3" json:"legacy_mirror,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubscriberRequest) Descriptor deprecated

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

Deprecated: Use CreateSubscriberRequest.ProtoReflect.Descriptor instead.

func (*CreateSubscriberRequest) GetAccountUuid

func (x *CreateSubscriberRequest) GetAccountUuid() string

func (*CreateSubscriberRequest) GetEmail

func (x *CreateSubscriberRequest) GetEmail() string

func (*CreateSubscriberRequest) GetInviteCode

func (x *CreateSubscriberRequest) GetInviteCode() string

func (*CreateSubscriberRequest) GetInviteUserId

func (x *CreateSubscriberRequest) GetInviteUserId() uint64

func (*CreateSubscriberRequest) GetIsAdmin

func (x *CreateSubscriberRequest) GetIsAdmin() bool

func (*CreateSubscriberRequest) GetIsStaff

func (x *CreateSubscriberRequest) GetIsStaff() bool

func (*CreateSubscriberRequest) GetLegacyMirror

func (x *CreateSubscriberRequest) GetLegacyMirror() *LegacyCredentialMirror

func (*CreateSubscriberRequest) ProtoMessage

func (*CreateSubscriberRequest) ProtoMessage()

func (*CreateSubscriberRequest) ProtoReflect

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

func (*CreateSubscriberRequest) Reset

func (x *CreateSubscriberRequest) Reset()

func (*CreateSubscriberRequest) String

func (x *CreateSubscriberRequest) String() string

type CreateSubscriberResponse

type CreateSubscriberResponse struct {
	UserId  uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Created bool   `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubscriberResponse) Descriptor deprecated

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

Deprecated: Use CreateSubscriberResponse.ProtoReflect.Descriptor instead.

func (*CreateSubscriberResponse) GetCreated

func (x *CreateSubscriberResponse) GetCreated() bool

func (*CreateSubscriberResponse) GetUserId

func (x *CreateSubscriberResponse) GetUserId() uint64

func (*CreateSubscriberResponse) ProtoMessage

func (*CreateSubscriberResponse) ProtoMessage()

func (*CreateSubscriberResponse) ProtoReflect

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

func (*CreateSubscriberResponse) Reset

func (x *CreateSubscriberResponse) Reset()

func (*CreateSubscriberResponse) String

func (x *CreateSubscriberResponse) String() string

type DeleteSubscriberRequest

type DeleteSubscriberRequest struct {
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSubscriberRequest) Descriptor deprecated

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

Deprecated: Use DeleteSubscriberRequest.ProtoReflect.Descriptor instead.

func (*DeleteSubscriberRequest) GetUserId

func (x *DeleteSubscriberRequest) GetUserId() uint64

func (*DeleteSubscriberRequest) ProtoMessage

func (*DeleteSubscriberRequest) ProtoMessage()

func (*DeleteSubscriberRequest) ProtoReflect

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

func (*DeleteSubscriberRequest) Reset

func (x *DeleteSubscriberRequest) Reset()

func (*DeleteSubscriberRequest) String

func (x *DeleteSubscriberRequest) String() string

type DeleteSubscriberResponse

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

func (*DeleteSubscriberResponse) Descriptor deprecated

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

Deprecated: Use DeleteSubscriberResponse.ProtoReflect.Descriptor instead.

func (*DeleteSubscriberResponse) ProtoMessage

func (*DeleteSubscriberResponse) ProtoMessage()

func (*DeleteSubscriberResponse) ProtoReflect

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

func (*DeleteSubscriberResponse) Reset

func (x *DeleteSubscriberResponse) Reset()

func (*DeleteSubscriberResponse) String

func (x *DeleteSubscriberResponse) String() string

type GetIdentitySettingsRequest

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

func (*GetIdentitySettingsRequest) Descriptor deprecated

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

Deprecated: Use GetIdentitySettingsRequest.ProtoReflect.Descriptor instead.

func (*GetIdentitySettingsRequest) ProtoMessage

func (*GetIdentitySettingsRequest) ProtoMessage()

func (*GetIdentitySettingsRequest) ProtoReflect

func (*GetIdentitySettingsRequest) Reset

func (x *GetIdentitySettingsRequest) Reset()

func (*GetIdentitySettingsRequest) String

func (x *GetIdentitySettingsRequest) String() string

type GetIdentitySettingsResponse

type GetIdentitySettingsResponse struct {

	// settings_json is the kernel's auth configuration: registration policy,
	// login rate limits and the admin MFA configuration.
	SettingsJson []byte `protobuf:"bytes,1,opt,name=settings_json,json=settingsJson,proto3" json:"settings_json,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIdentitySettingsResponse) Descriptor deprecated

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

Deprecated: Use GetIdentitySettingsResponse.ProtoReflect.Descriptor instead.

func (*GetIdentitySettingsResponse) GetSettingsJson

func (x *GetIdentitySettingsResponse) GetSettingsJson() []byte

func (*GetIdentitySettingsResponse) ProtoMessage

func (*GetIdentitySettingsResponse) ProtoMessage()

func (*GetIdentitySettingsResponse) ProtoReflect

func (*GetIdentitySettingsResponse) Reset

func (x *GetIdentitySettingsResponse) Reset()

func (*GetIdentitySettingsResponse) String

func (x *GetIdentitySettingsResponse) String() string

type GetSubscriberRequest

type GetSubscriberRequest struct {
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubscriberRequest) Descriptor deprecated

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

Deprecated: Use GetSubscriberRequest.ProtoReflect.Descriptor instead.

func (*GetSubscriberRequest) GetUserId

func (x *GetSubscriberRequest) GetUserId() uint64

func (*GetSubscriberRequest) ProtoMessage

func (*GetSubscriberRequest) ProtoMessage()

func (*GetSubscriberRequest) ProtoReflect

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

func (*GetSubscriberRequest) Reset

func (x *GetSubscriberRequest) Reset()

func (*GetSubscriberRequest) String

func (x *GetSubscriberRequest) String() string

type GetSubscriberResponse

type GetSubscriberResponse struct {

	// subscriber_json is the v2 user object with its plan. It carries no
	// password hash, but it does carry the subscription token and proxy uuid,
	// which the v2 admin API and the account's own profile show.
	SubscriberJson []byte `protobuf:"bytes,1,opt,name=subscriber_json,json=subscriberJson,proto3" json:"subscriber_json,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubscriberResponse) Descriptor deprecated

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

Deprecated: Use GetSubscriberResponse.ProtoReflect.Descriptor instead.

func (*GetSubscriberResponse) GetSubscriberJson

func (x *GetSubscriberResponse) GetSubscriberJson() []byte

func (*GetSubscriberResponse) ProtoMessage

func (*GetSubscriberResponse) ProtoMessage()

func (*GetSubscriberResponse) ProtoReflect

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

func (*GetSubscriberResponse) Reset

func (x *GetSubscriberResponse) Reset()

func (*GetSubscriberResponse) String

func (x *GetSubscriberResponse) String() string

type KernelIdentityClient

type KernelIdentityClient interface {
	// CreateSubscriber allocates the v2_user row (id, uuid, subscription
	// token) for a new account. It is idempotent on account_uuid.
	CreateSubscriber(ctx context.Context, in *CreateSubscriberRequest, opts ...grpc.CallOption) (*CreateSubscriberResponse, error)
	// UpdateSubscriber changes entitlement fields an administrator edits
	// together with identity fields.
	UpdateSubscriber(ctx context.Context, in *UpdateSubscriberRequest, opts ...grpc.CallOption) (*UpdateSubscriberResponse, error)
	// ApplyAccountProjection writes identity fields into the projection. Older
	// versions than the stored one are ignored.
	ApplyAccountProjection(ctx context.Context, in *ApplyAccountProjectionRequest, opts ...grpc.CallOption) (*ApplyAccountProjectionResponse, error)
	DeleteSubscriber(ctx context.Context, in *DeleteSubscriberRequest, opts ...grpc.CallOption) (*DeleteSubscriberResponse, error)
	// PublishRevocation makes tokens issued before a point, or with an older
	// token version, or with a session id, stop working in the kernel.
	PublishRevocation(ctx context.Context, in *PublishRevocationRequest, opts ...grpc.CallOption) (*PublishRevocationResponse, error)
	// ResolveActorAccess returns the plugin permissions the v2 login and
	// profile responses carry.
	ResolveActorAccess(ctx context.Context, in *ResolveActorAccessRequest, opts ...grpc.CallOption) (*ResolveActorAccessResponse, error)
	// GetIdentitySettings returns the kernel's legacy auth settings once, to
	// seed the identity installation configuration.
	GetIdentitySettings(ctx context.Context, in *GetIdentitySettingsRequest, opts ...grpc.CallOption) (*GetIdentitySettingsResponse, error)
	// GetSubscriber returns one subscriber as the v2 admin API shows it, with
	// its plan, for identity's administration answers and the account's own
	// profile and dashboard.
	GetSubscriber(ctx context.Context, in *GetSubscriberRequest, opts ...grpc.CallOption) (*GetSubscriberResponse, error)
}

KernelIdentityClient is the client API for KernelIdentity 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.

KernelIdentity is the kernel's contract for the identity module. It is served on the module listener and on the local package bridge, and only to a package whose signed manifest declares kernel.identity.v1 and that is signed by the official trust root.

v2_user stays the kernel's subscriber and entitlement table. Its email, is_admin, is_staff and banned columns are a read projection that only this contract writes.

type KernelIdentityServer

type KernelIdentityServer interface {
	// CreateSubscriber allocates the v2_user row (id, uuid, subscription
	// token) for a new account. It is idempotent on account_uuid.
	CreateSubscriber(context.Context, *CreateSubscriberRequest) (*CreateSubscriberResponse, error)
	// UpdateSubscriber changes entitlement fields an administrator edits
	// together with identity fields.
	UpdateSubscriber(context.Context, *UpdateSubscriberRequest) (*UpdateSubscriberResponse, error)
	// ApplyAccountProjection writes identity fields into the projection. Older
	// versions than the stored one are ignored.
	ApplyAccountProjection(context.Context, *ApplyAccountProjectionRequest) (*ApplyAccountProjectionResponse, error)
	DeleteSubscriber(context.Context, *DeleteSubscriberRequest) (*DeleteSubscriberResponse, error)
	// PublishRevocation makes tokens issued before a point, or with an older
	// token version, or with a session id, stop working in the kernel.
	PublishRevocation(context.Context, *PublishRevocationRequest) (*PublishRevocationResponse, error)
	// ResolveActorAccess returns the plugin permissions the v2 login and
	// profile responses carry.
	ResolveActorAccess(context.Context, *ResolveActorAccessRequest) (*ResolveActorAccessResponse, error)
	// GetIdentitySettings returns the kernel's legacy auth settings once, to
	// seed the identity installation configuration.
	GetIdentitySettings(context.Context, *GetIdentitySettingsRequest) (*GetIdentitySettingsResponse, error)
	// GetSubscriber returns one subscriber as the v2 admin API shows it, with
	// its plan, for identity's administration answers and the account's own
	// profile and dashboard.
	GetSubscriber(context.Context, *GetSubscriberRequest) (*GetSubscriberResponse, error)
	// contains filtered or unexported methods
}

KernelIdentityServer is the server API for KernelIdentity service. All implementations must embed UnimplementedKernelIdentityServer for forward compatibility.

KernelIdentity is the kernel's contract for the identity module. It is served on the module listener and on the local package bridge, and only to a package whose signed manifest declares kernel.identity.v1 and that is signed by the official trust root.

v2_user stays the kernel's subscriber and entitlement table. Its email, is_admin, is_staff and banned columns are a read projection that only this contract writes.

type LegacyCredentialMirror

type LegacyCredentialMirror struct {
	PasswordHash     string   `protobuf:"bytes,1,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"`
	PasswordAlgo     string   `protobuf:"bytes,2,opt,name=password_algo,json=passwordAlgo,proto3" json:"password_algo,omitempty"`
	PasswordSalt     string   `protobuf:"bytes,3,opt,name=password_salt,json=passwordSalt,proto3" json:"password_salt,omitempty"`
	MfaEnabled       bool     `protobuf:"varint,4,opt,name=mfa_enabled,json=mfaEnabled,proto3" json:"mfa_enabled,omitempty"`
	TotpSecret       string   `protobuf:"bytes,5,opt,name=totp_secret,json=totpSecret,proto3" json:"totp_secret,omitempty"`
	BackupCodeHashes []string `protobuf:"bytes,6,rep,name=backup_code_hashes,json=backupCodeHashes,proto3" json:"backup_code_hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*LegacyCredentialMirror) Descriptor deprecated

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

Deprecated: Use LegacyCredentialMirror.ProtoReflect.Descriptor instead.

func (*LegacyCredentialMirror) GetBackupCodeHashes

func (x *LegacyCredentialMirror) GetBackupCodeHashes() []string

func (*LegacyCredentialMirror) GetMfaEnabled

func (x *LegacyCredentialMirror) GetMfaEnabled() bool

func (*LegacyCredentialMirror) GetPasswordAlgo

func (x *LegacyCredentialMirror) GetPasswordAlgo() string

func (*LegacyCredentialMirror) GetPasswordHash

func (x *LegacyCredentialMirror) GetPasswordHash() string

func (*LegacyCredentialMirror) GetPasswordSalt

func (x *LegacyCredentialMirror) GetPasswordSalt() string

func (*LegacyCredentialMirror) GetTotpSecret

func (x *LegacyCredentialMirror) GetTotpSecret() string

func (*LegacyCredentialMirror) ProtoMessage

func (*LegacyCredentialMirror) ProtoMessage()

func (*LegacyCredentialMirror) ProtoReflect

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

func (*LegacyCredentialMirror) Reset

func (x *LegacyCredentialMirror) Reset()

func (*LegacyCredentialMirror) String

func (x *LegacyCredentialMirror) String() string

type PublishRevocationRequest

type PublishRevocationRequest struct {
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// token_version: identity tokens with a smaller tv claim stop working; the
	// kernel's own tokens, which carry none, stop working if issued until
	// not_before (now when not_before is unset).
	TokenVersion uint64 `protobuf:"varint,2,opt,name=token_version,json=tokenVersion,proto3" json:"token_version,omitempty"`
	// not_before_unix: tokens issued before it stop working.
	NotBeforeUnix int64 `protobuf:"varint,3,opt,name=not_before_unix,json=notBeforeUnix,proto3" json:"not_before_unix,omitempty"`
	// session_id revokes one session (logout); tokens expire by exp anyway.
	SessionId            string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	SessionExpiresAtUnix int64  `` /* 126-byte string literal not displayed */
	Reason               string `protobuf:"bytes,6,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishRevocationRequest) Descriptor deprecated

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

Deprecated: Use PublishRevocationRequest.ProtoReflect.Descriptor instead.

func (*PublishRevocationRequest) GetNotBeforeUnix

func (x *PublishRevocationRequest) GetNotBeforeUnix() int64

func (*PublishRevocationRequest) GetReason

func (x *PublishRevocationRequest) GetReason() string

func (*PublishRevocationRequest) GetSessionExpiresAtUnix

func (x *PublishRevocationRequest) GetSessionExpiresAtUnix() int64

func (*PublishRevocationRequest) GetSessionId

func (x *PublishRevocationRequest) GetSessionId() string

func (*PublishRevocationRequest) GetTokenVersion

func (x *PublishRevocationRequest) GetTokenVersion() uint64

func (*PublishRevocationRequest) GetUserId

func (x *PublishRevocationRequest) GetUserId() uint64

func (*PublishRevocationRequest) ProtoMessage

func (*PublishRevocationRequest) ProtoMessage()

func (*PublishRevocationRequest) ProtoReflect

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

func (*PublishRevocationRequest) Reset

func (x *PublishRevocationRequest) Reset()

func (*PublishRevocationRequest) String

func (x *PublishRevocationRequest) String() string

type PublishRevocationResponse

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

func (*PublishRevocationResponse) Descriptor deprecated

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

Deprecated: Use PublishRevocationResponse.ProtoReflect.Descriptor instead.

func (*PublishRevocationResponse) ProtoMessage

func (*PublishRevocationResponse) ProtoMessage()

func (*PublishRevocationResponse) ProtoReflect

func (*PublishRevocationResponse) Reset

func (x *PublishRevocationResponse) Reset()

func (*PublishRevocationResponse) String

func (x *PublishRevocationResponse) String() string

type ResolveActorAccessRequest

type ResolveActorAccessRequest struct {
	UserId  uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	IsAdmin bool   `protobuf:"varint,2,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveActorAccessRequest) Descriptor deprecated

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

Deprecated: Use ResolveActorAccessRequest.ProtoReflect.Descriptor instead.

func (*ResolveActorAccessRequest) GetIsAdmin

func (x *ResolveActorAccessRequest) GetIsAdmin() bool

func (*ResolveActorAccessRequest) GetUserId

func (x *ResolveActorAccessRequest) GetUserId() uint64

func (*ResolveActorAccessRequest) ProtoMessage

func (*ResolveActorAccessRequest) ProtoMessage()

func (*ResolveActorAccessRequest) ProtoReflect

func (*ResolveActorAccessRequest) Reset

func (x *ResolveActorAccessRequest) Reset()

func (*ResolveActorAccessRequest) String

func (x *ResolveActorAccessRequest) String() string

type ResolveActorAccessResponse

type ResolveActorAccessResponse struct {
	PermissionMode    string   `protobuf:"bytes,1,opt,name=permission_mode,json=permissionMode,proto3" json:"permission_mode,omitempty"`
	Permissions       []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
	RestrictedPlugins []string `protobuf:"bytes,3,rep,name=restricted_plugins,json=restrictedPlugins,proto3" json:"restricted_plugins,omitempty"`
	// unrestricted actors get "permissions": null in v2 responses, which a
	// repeated field cannot express.
	Unrestricted bool `protobuf:"varint,4,opt,name=unrestricted,proto3" json:"unrestricted,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveActorAccessResponse) Descriptor deprecated

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

Deprecated: Use ResolveActorAccessResponse.ProtoReflect.Descriptor instead.

func (*ResolveActorAccessResponse) GetPermissionMode

func (x *ResolveActorAccessResponse) GetPermissionMode() string

func (*ResolveActorAccessResponse) GetPermissions

func (x *ResolveActorAccessResponse) GetPermissions() []string

func (*ResolveActorAccessResponse) GetRestrictedPlugins

func (x *ResolveActorAccessResponse) GetRestrictedPlugins() []string

func (*ResolveActorAccessResponse) GetUnrestricted

func (x *ResolveActorAccessResponse) GetUnrestricted() bool

func (*ResolveActorAccessResponse) ProtoMessage

func (*ResolveActorAccessResponse) ProtoMessage()

func (*ResolveActorAccessResponse) ProtoReflect

func (*ResolveActorAccessResponse) Reset

func (x *ResolveActorAccessResponse) Reset()

func (*ResolveActorAccessResponse) String

func (x *ResolveActorAccessResponse) String() string

type UnimplementedKernelIdentityServer

type UnimplementedKernelIdentityServer struct{}

UnimplementedKernelIdentityServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedKernelIdentityServer) CreateSubscriber

func (UnimplementedKernelIdentityServer) DeleteSubscriber

func (UnimplementedKernelIdentityServer) GetIdentitySettings

func (UnimplementedKernelIdentityServer) GetSubscriber

func (UnimplementedKernelIdentityServer) PublishRevocation

func (UnimplementedKernelIdentityServer) ResolveActorAccess

func (UnimplementedKernelIdentityServer) UpdateSubscriber

type UnsafeKernelIdentityServer

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

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

type UpdateSubscriberRequest

type UpdateSubscriberRequest struct {
	UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// entitlements_json holds only the entitlement fields of the v2 admin
	// user update (plan_id, group_id, transfer_enable, expired_at, limits,
	// balance); absent fields are unchanged.
	EntitlementsJson []byte `protobuf:"bytes,2,opt,name=entitlements_json,json=entitlementsJson,proto3" json:"entitlements_json,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSubscriberRequest) Descriptor deprecated

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

Deprecated: Use UpdateSubscriberRequest.ProtoReflect.Descriptor instead.

func (*UpdateSubscriberRequest) GetEntitlementsJson

func (x *UpdateSubscriberRequest) GetEntitlementsJson() []byte

func (*UpdateSubscriberRequest) GetUserId

func (x *UpdateSubscriberRequest) GetUserId() uint64

func (*UpdateSubscriberRequest) ProtoMessage

func (*UpdateSubscriberRequest) ProtoMessage()

func (*UpdateSubscriberRequest) ProtoReflect

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

func (*UpdateSubscriberRequest) Reset

func (x *UpdateSubscriberRequest) Reset()

func (*UpdateSubscriberRequest) String

func (x *UpdateSubscriberRequest) String() string

type UpdateSubscriberResponse

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

func (*UpdateSubscriberResponse) Descriptor deprecated

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

Deprecated: Use UpdateSubscriberResponse.ProtoReflect.Descriptor instead.

func (*UpdateSubscriberResponse) ProtoMessage

func (*UpdateSubscriberResponse) ProtoMessage()

func (*UpdateSubscriberResponse) ProtoReflect

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

func (*UpdateSubscriberResponse) Reset

func (x *UpdateSubscriberResponse) Reset()

func (*UpdateSubscriberResponse) String

func (x *UpdateSubscriberResponse) String() string

Jump to

Keyboard shortcuts

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