user

package
v0.0.0-...-e47837b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "ROLE_MEMBER",
		2: "ROLE_ADMINISTRATOR",
		3: "ROLE_SUPER_ADMINISTRATOR",
	}
	Role_value = map[string]int32{
		"ROLE_UNSPECIFIED":         0,
		"ROLE_MEMBER":              1,
		"ROLE_ADMINISTRATOR":       2,
		"ROLE_SUPER_ADMINISTRATOR": 3,
	}
)

Enum value maps for Role.

View Source
var File_kentik_user_v202211_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kentik.user.v202211.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "ResetApiToken",
			Handler:    _UserService_ResetApiToken_Handler,
		},
		{
			MethodName: "ResetActiveSessions",
			Handler:    _UserService_ResetActiveSessions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kentik/user/v202211/user.proto",
}

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

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CreateUserRequest

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

{{.Name}}

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
}

{{.Name}}

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 DeleteUserRequest

type DeleteUserRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

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

{{.Name}}

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type GetUserRequest

type GetUserRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

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
}

{{.Name}}

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 ListUsersRequest

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

{{.Name}}

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Users        []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	InvalidCount uint32  `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetInvalidCount

func (x *ListUsersResponse) GetInvalidCount() uint32

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type PermissionEntry

type PermissionEntry struct {
	Capability string `protobuf:"bytes,1,opt,name=capability,proto3" json:"capability,omitempty"`
	Allowed    bool   `protobuf:"varint,2,opt,name=allowed,proto3" json:"allowed,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*PermissionEntry) Descriptor deprecated

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

Deprecated: Use PermissionEntry.ProtoReflect.Descriptor instead.

func (*PermissionEntry) GetAllowed

func (x *PermissionEntry) GetAllowed() bool

func (*PermissionEntry) GetCapability

func (x *PermissionEntry) GetCapability() string

func (*PermissionEntry) ProtoMessage

func (*PermissionEntry) ProtoMessage()

func (*PermissionEntry) ProtoReflect

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

func (*PermissionEntry) Reset

func (x *PermissionEntry) Reset()

func (*PermissionEntry) String

func (x *PermissionEntry) String() string

type ResetActiveSessionsRequest

type ResetActiveSessionsRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ResetActiveSessionsRequest) Descriptor deprecated

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

Deprecated: Use ResetActiveSessionsRequest.ProtoReflect.Descriptor instead.

func (*ResetActiveSessionsRequest) GetId

func (*ResetActiveSessionsRequest) ProtoMessage

func (*ResetActiveSessionsRequest) ProtoMessage()

func (*ResetActiveSessionsRequest) ProtoReflect

func (*ResetActiveSessionsRequest) Reset

func (x *ResetActiveSessionsRequest) Reset()

func (*ResetActiveSessionsRequest) String

func (x *ResetActiveSessionsRequest) String() string

type ResetActiveSessionsResponse

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

{{.Name}}

func (*ResetActiveSessionsResponse) Descriptor deprecated

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

Deprecated: Use ResetActiveSessionsResponse.ProtoReflect.Descriptor instead.

func (*ResetActiveSessionsResponse) ProtoMessage

func (*ResetActiveSessionsResponse) ProtoMessage()

func (*ResetActiveSessionsResponse) ProtoReflect

func (*ResetActiveSessionsResponse) Reset

func (x *ResetActiveSessionsResponse) Reset()

func (*ResetActiveSessionsResponse) String

func (x *ResetActiveSessionsResponse) String() string

type ResetApiTokenRequest

type ResetApiTokenRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ResetApiTokenRequest) Descriptor deprecated

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

Deprecated: Use ResetApiTokenRequest.ProtoReflect.Descriptor instead.

func (*ResetApiTokenRequest) GetId

func (x *ResetApiTokenRequest) GetId() string

func (*ResetApiTokenRequest) ProtoMessage

func (*ResetApiTokenRequest) ProtoMessage()

func (*ResetApiTokenRequest) ProtoReflect

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

func (*ResetApiTokenRequest) Reset

func (x *ResetApiTokenRequest) Reset()

func (*ResetApiTokenRequest) String

func (x *ResetApiTokenRequest) String() string

type ResetApiTokenResponse

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

{{.Name}}

func (*ResetApiTokenResponse) Descriptor deprecated

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

Deprecated: Use ResetApiTokenResponse.ProtoReflect.Descriptor instead.

func (*ResetApiTokenResponse) ProtoMessage

func (*ResetApiTokenResponse) ProtoMessage()

func (*ResetApiTokenResponse) ProtoReflect

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

func (*ResetApiTokenResponse) Reset

func (x *ResetApiTokenResponse) Reset()

func (*ResetApiTokenResponse) String

func (x *ResetApiTokenResponse) String() string

type Role

type Role int32

{{.Name}}

const (
	// Invalid value.
	Role_ROLE_UNSPECIFIED Role = 0
	// Member
	Role_ROLE_MEMBER Role = 1
	// Administrator
	Role_ROLE_ADMINISTRATOR Role = 2
	// Super-administrator
	Role_ROLE_SUPER_ADMINISTRATOR Role = 3
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

func (Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) ResetApiToken

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeUserServiceServer

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

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

type UpdateUserRequest

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

{{.Name}}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

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

{{.Name}}

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetUser

func (x *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type User

type User struct {
	Id           string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserEmail    string                 `protobuf:"bytes,2,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
	UserFullName string                 `protobuf:"bytes,4,opt,name=user_full_name,json=userFullName,proto3" json:"user_full_name,omitempty"`
	Role         Role                   `protobuf:"varint,5,opt,name=role,proto3,enum=kentik.user.v202211.Role" json:"role,omitempty"`
	Permissions  []*PermissionEntry     `protobuf:"bytes,6,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Filter       string                 `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"`
	LastLogin    *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"`
	Cdate        *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=cdate,proto3" json:"cdate,omitempty"`
	Edate        *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=edate,proto3" json:"edate,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCdate

func (x *User) GetCdate() *timestamppb.Timestamp

func (*User) GetEdate

func (x *User) GetEdate() *timestamppb.Timestamp

func (*User) GetFilter

func (x *User) GetFilter() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetLastLogin

func (x *User) GetLastLogin() *timestamppb.Timestamp

func (*User) GetPermissions

func (x *User) GetPermissions() []*PermissionEntry

func (*User) GetRole

func (x *User) GetRole() Role

func (*User) GetUserEmail

func (x *User) GetUserEmail() string

func (*User) GetUserFullName

func (x *User) GetUserFullName() string

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

type UserServiceClient

type UserServiceClient interface {
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	ResetApiToken(ctx context.Context, in *ResetApiTokenRequest, opts ...grpc.CallOption) (*ResetApiTokenResponse, error)
	ResetActiveSessions(ctx context.Context, in *ResetActiveSessionsRequest, opts ...grpc.CallOption) (*ResetActiveSessionsResponse, error)
}

UserServiceClient is the client API for UserService 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 UserServiceServer

UserServiceServer is the server API for UserService service. All implementations should embed UnimplementedUserServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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