stableunixusersv1

package
v0.0.0-...-7f3eb19 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StableUNIXUsersService_ObtainUIDForUsername_FullMethodName = "/teleport.stableunixusers.v1.StableUNIXUsersService/ObtainUIDForUsername"
	StableUNIXUsersService_ListStableUNIXUsers_FullMethodName  = "/teleport.stableunixusers.v1.StableUNIXUsersService/ListStableUNIXUsers"
)

Variables

View Source
var File_teleport_stableunixusers_v1_stableunixusers_proto protoreflect.FileDescriptor
View Source
var StableUNIXUsersService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "teleport.stableunixusers.v1.StableUNIXUsersService",
	HandlerType: (*StableUNIXUsersServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ObtainUIDForUsername",
			Handler:    _StableUNIXUsersService_ObtainUIDForUsername_Handler,
		},
		{
			MethodName: "ListStableUNIXUsers",
			Handler:    _StableUNIXUsersService_ListStableUNIXUsers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "teleport/stableunixusers/v1/stableunixusers.proto",
}

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

Functions

func RegisterStableUNIXUsersServiceServer

func RegisterStableUNIXUsersServiceServer(s grpc.ServiceRegistrar, srv StableUNIXUsersServiceServer)

Types

type ListStableUNIXUsersRequest

type ListStableUNIXUsersRequest struct {

	// if left unset, the page size will default to a reasonable value chosen by
	// the server
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// if unset or blank, the rpc will return the first page
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

request message for ListStableUNIXUsers

func (*ListStableUNIXUsersRequest) Descriptor deprecated

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

Deprecated: Use ListStableUNIXUsersRequest.ProtoReflect.Descriptor instead.

func (*ListStableUNIXUsersRequest) GetPageSize

func (x *ListStableUNIXUsersRequest) GetPageSize() int32

func (*ListStableUNIXUsersRequest) GetPageToken

func (x *ListStableUNIXUsersRequest) GetPageToken() string

func (*ListStableUNIXUsersRequest) ProtoMessage

func (*ListStableUNIXUsersRequest) ProtoMessage()

func (*ListStableUNIXUsersRequest) ProtoReflect

func (*ListStableUNIXUsersRequest) Reset

func (x *ListStableUNIXUsersRequest) Reset()

func (*ListStableUNIXUsersRequest) String

func (x *ListStableUNIXUsersRequest) String() string

type ListStableUNIXUsersResponse

type ListStableUNIXUsersResponse struct {
	StableUnixUsers []*StableUNIXUser `protobuf:"bytes,1,rep,name=stable_unix_users,json=stableUnixUsers,proto3" json:"stable_unix_users,omitempty"`
	// if empty, the listing has reached the end; otherwise, ListStableUNIXUsers
	// can be called again with the new page_token to get more data
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

response message for ListStableUNIXUsers

func (*ListStableUNIXUsersResponse) Descriptor deprecated

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

Deprecated: Use ListStableUNIXUsersResponse.ProtoReflect.Descriptor instead.

func (*ListStableUNIXUsersResponse) GetNextPageToken

func (x *ListStableUNIXUsersResponse) GetNextPageToken() string

func (*ListStableUNIXUsersResponse) GetStableUnixUsers

func (x *ListStableUNIXUsersResponse) GetStableUnixUsers() []*StableUNIXUser

func (*ListStableUNIXUsersResponse) ProtoMessage

func (*ListStableUNIXUsersResponse) ProtoMessage()

func (*ListStableUNIXUsersResponse) ProtoReflect

func (*ListStableUNIXUsersResponse) Reset

func (x *ListStableUNIXUsersResponse) Reset()

func (*ListStableUNIXUsersResponse) String

func (x *ListStableUNIXUsersResponse) String() string

type ObtainUIDForUsernameRequest

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

request message for ObtainUIDForUsername

func (*ObtainUIDForUsernameRequest) Descriptor deprecated

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

Deprecated: Use ObtainUIDForUsernameRequest.ProtoReflect.Descriptor instead.

func (*ObtainUIDForUsernameRequest) GetUsername

func (x *ObtainUIDForUsernameRequest) GetUsername() string

func (*ObtainUIDForUsernameRequest) ProtoMessage

func (*ObtainUIDForUsernameRequest) ProtoMessage()

func (*ObtainUIDForUsernameRequest) ProtoReflect

func (*ObtainUIDForUsernameRequest) Reset

func (x *ObtainUIDForUsernameRequest) Reset()

func (*ObtainUIDForUsernameRequest) String

func (x *ObtainUIDForUsernameRequest) String() string

type ObtainUIDForUsernameResponse

type ObtainUIDForUsernameResponse struct {
	Uid int32 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

response message for ObtainUIDForUsername

func (*ObtainUIDForUsernameResponse) Descriptor deprecated

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

Deprecated: Use ObtainUIDForUsernameResponse.ProtoReflect.Descriptor instead.

func (*ObtainUIDForUsernameResponse) GetUid

func (x *ObtainUIDForUsernameResponse) GetUid() int32

func (*ObtainUIDForUsernameResponse) ProtoMessage

func (*ObtainUIDForUsernameResponse) ProtoMessage()

func (*ObtainUIDForUsernameResponse) ProtoReflect

func (*ObtainUIDForUsernameResponse) Reset

func (x *ObtainUIDForUsernameResponse) Reset()

func (*ObtainUIDForUsernameResponse) String

type StableUNIXUser

type StableUNIXUser struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Uid      int32  `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// contains filtered or unexported fields
}

a pair of stable UNIX username and UID

func (*StableUNIXUser) Descriptor deprecated

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

Deprecated: Use StableUNIXUser.ProtoReflect.Descriptor instead.

func (*StableUNIXUser) GetUid

func (x *StableUNIXUser) GetUid() int32

func (*StableUNIXUser) GetUsername

func (x *StableUNIXUser) GetUsername() string

func (*StableUNIXUser) ProtoMessage

func (*StableUNIXUser) ProtoMessage()

func (*StableUNIXUser) ProtoReflect

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

func (*StableUNIXUser) Reset

func (x *StableUNIXUser) Reset()

func (*StableUNIXUser) String

func (x *StableUNIXUser) String() string

type StableUNIXUsersServiceClient

type StableUNIXUsersServiceClient interface {
	// returns the assigned stable UID for a given UNIX username, assigning one
	// from the configured UID range if necessary; if the feature is disabled or
	// the available UID range is full the returned error will be
	// RESOURCE_EXHAUSTED (i.e. trace.LimitExceededError), whereas an error caused
	// by high concurrent access to the storage will be (incorrectly, alas)
	// signaled by a FAILED_PRECONDITION error (i.e. trace.CompareFailedError)
	ObtainUIDForUsername(ctx context.Context, in *ObtainUIDForUsernameRequest, opts ...grpc.CallOption) (*ObtainUIDForUsernameResponse, error)
	// returns a page of username/UID pairs from the collection of stable UID assignments
	ListStableUNIXUsers(ctx context.Context, in *ListStableUNIXUsersRequest, opts ...grpc.CallOption) (*ListStableUNIXUsersResponse, error)
}

StableUNIXUsersServiceClient is the client API for StableUNIXUsersService 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.

contains the RPCs related to the stable UNIX users functionality

type StableUNIXUsersServiceServer

type StableUNIXUsersServiceServer interface {
	// returns the assigned stable UID for a given UNIX username, assigning one
	// from the configured UID range if necessary; if the feature is disabled or
	// the available UID range is full the returned error will be
	// RESOURCE_EXHAUSTED (i.e. trace.LimitExceededError), whereas an error caused
	// by high concurrent access to the storage will be (incorrectly, alas)
	// signaled by a FAILED_PRECONDITION error (i.e. trace.CompareFailedError)
	ObtainUIDForUsername(context.Context, *ObtainUIDForUsernameRequest) (*ObtainUIDForUsernameResponse, error)
	// returns a page of username/UID pairs from the collection of stable UID assignments
	ListStableUNIXUsers(context.Context, *ListStableUNIXUsersRequest) (*ListStableUNIXUsersResponse, error)
	// contains filtered or unexported methods
}

StableUNIXUsersServiceServer is the server API for StableUNIXUsersService service. All implementations must embed UnimplementedStableUNIXUsersServiceServer for forward compatibility.

contains the RPCs related to the stable UNIX users functionality

type UnimplementedStableUNIXUsersServiceServer

type UnimplementedStableUNIXUsersServiceServer struct{}

UnimplementedStableUNIXUsersServiceServer 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 (UnimplementedStableUNIXUsersServiceServer) ListStableUNIXUsers

func (UnimplementedStableUNIXUsersServiceServer) ObtainUIDForUsername

type UnsafeStableUNIXUsersServiceServer

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

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

Jump to

Keyboard shortcuts

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