user

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_holos_user_v1alpha1_user_proto protoreflect.FileDescriptor
View Source
var File_holos_user_v1alpha1_user_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CreateUserRequest

type CreateUserRequest struct {

	// User resource to create.  If absent, the server populates User fields with
	// the oidc id token claims of the authenticated request.
	User *User `protobuf:"bytes,1,opt,name=user,proto3,oneof" json:"user,omitempty"`
	// contains filtered or unexported fields
}

Create a User from the oidc id token claims or the provided user. Each one of subject, email, and user id must be globally unique.

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

type CreateUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUser

func (x *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type GetUserRequest

type GetUserRequest struct {

	// UserRef represents the user to return in the response.
	User *v1alpha1.UserRef `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// FieldMask represents the response User fields to include.
	FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3,oneof" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetFieldMask

func (x *GetUserRequest) GetFieldMask() *fieldmaskpb.FieldMask

func (*GetUserRequest) GetUser

func (x *GetUserRequest) GetUser() *v1alpha1.UserRef

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type RegisterUserRequest

type RegisterUserRequest struct {

	// User resource to create.  If absent, the server populates User fields with
	// the oidc id token claims of the authenticated request.
	// NOTE: The server may ignore this request field and register the user solely
	// from authenticated identity claims.
	User *User `protobuf:"bytes,1,opt,name=user,proto3,oneof" json:"user,omitempty"`
	// Mask of the user fields to include in the response.
	UserMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=user_mask,json=userMask,proto3,oneof" json:"user_mask,omitempty"`
	// Organization resource to create.  If absent, the server generates an
	// organization based on the user fields.
	// NOTE: The server may ignore this request field and register the
	// organization solely from authenticated identity claims.
	Organization *v1alpha11.Organization `protobuf:"bytes,3,opt,name=organization,proto3,oneof" json:"organization,omitempty"`
	// Mask of the organization fields to include in the response.
	OrganizationMask *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=organization_mask,json=organizationMask,proto3,oneof" json:"organization_mask,omitempty"`
	// contains filtered or unexported fields
}

Register a User from the oidc id token claims or the provided user. Each one of subject, email, and user id must be globally unique.

func (*RegisterUserRequest) Descriptor deprecated

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

Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.

func (*RegisterUserRequest) GetOrganization

func (x *RegisterUserRequest) GetOrganization() *v1alpha11.Organization

func (*RegisterUserRequest) GetOrganizationMask

func (x *RegisterUserRequest) GetOrganizationMask() *fieldmaskpb.FieldMask

func (*RegisterUserRequest) GetUser

func (x *RegisterUserRequest) GetUser() *User

func (*RegisterUserRequest) GetUserMask

func (x *RegisterUserRequest) GetUserMask() *fieldmaskpb.FieldMask

func (*RegisterUserRequest) ProtoMessage

func (*RegisterUserRequest) ProtoMessage()

func (*RegisterUserRequest) ProtoReflect

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

func (*RegisterUserRequest) Reset

func (x *RegisterUserRequest) Reset()

func (*RegisterUserRequest) String

func (x *RegisterUserRequest) String() string

type RegisterUserResponse

type RegisterUserResponse struct {
	User         *User                   `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Organization *v1alpha11.Organization `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterUserResponse) Descriptor deprecated

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

Deprecated: Use RegisterUserResponse.ProtoReflect.Descriptor instead.

func (*RegisterUserResponse) GetOrganization

func (x *RegisterUserResponse) GetOrganization() *v1alpha11.Organization

func (*RegisterUserResponse) GetUser

func (x *RegisterUserResponse) GetUser() *User

func (*RegisterUserResponse) ProtoMessage

func (*RegisterUserResponse) ProtoMessage()

func (*RegisterUserResponse) ProtoReflect

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

func (*RegisterUserResponse) Reset

func (x *RegisterUserResponse) Reset()

func (*RegisterUserResponse) String

func (x *RegisterUserResponse) String() string

type User

type User struct {

	// Unique uuid assigned by the server.
	Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// Subject represents the oidc iss and sub claims of the user.
	Subject *v1alpha1.Subject `protobuf:"bytes,2,opt,name=subject,proto3,oneof" json:"subject,omitempty"`
	// Email address of the user.
	Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	// True if the user email has been verified.
	EmailVerified *bool `protobuf:"varint,4,opt,name=email_verified,json=emailVerified,proto3,oneof" json:"email_verified,omitempty"`
	// Full name provided by the user.
	Name *string `protobuf:"bytes,5,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Given or first name of the user.
	GivenName *string `protobuf:"bytes,6,opt,name=given_name,json=givenName,proto3,oneof" json:"given_name,omitempty"`
	// Family or last name of the user.
	FamilyName *string `protobuf:"bytes,7,opt,name=family_name,json=familyName,proto3,oneof" json:"family_name,omitempty"`
	// Groups the user is a member of.  This field represents the oidc groups
	// claim.
	Groups []string `protobuf:"bytes,8,rep,name=groups,proto3" json:"groups,omitempty"`
	// https url to an user avatar profile picture.  Should be at least a 200x200 px square image.
	Picture *string `protobuf:"bytes,9,opt,name=picture,proto3,oneof" json:"picture,omitempty"`
	// Detail applicable to all resource objects in the system such as created and
	// updated metadata.
	Detail *v1alpha1.Detail `protobuf:"bytes,10,opt,name=detail,proto3,oneof" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

User represents a human user of the system.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDetail

func (x *User) GetDetail() *v1alpha1.Detail

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEmailVerified

func (x *User) GetEmailVerified() bool

func (*User) GetFamilyName

func (x *User) GetFamilyName() string

func (*User) GetGivenName

func (x *User) GetGivenName() string

func (*User) GetGroups

func (x *User) GetGroups() []string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPicture

func (x *User) GetPicture() string

func (*User) GetSubject

func (x *User) GetSubject() *v1alpha1.Subject

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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