v1

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriftService_ListDriftEvents_FullMethodName       = "/pbufregistry.v1.DriftService/ListDriftEvents"
	DriftService_GetModuleDriftEvents_FullMethodName  = "/pbufregistry.v1.DriftService/GetModuleDriftEvents"
	DriftService_AcknowledgeDriftEvent_FullMethodName = "/pbufregistry.v1.DriftService/AcknowledgeDriftEvent"
)
View Source
const (
	Registry_ListModules_FullMethodName           = "/pbufregistry.v1.Registry/ListModules"
	Registry_GetModule_FullMethodName             = "/pbufregistry.v1.Registry/GetModule"
	Registry_RegisterModule_FullMethodName        = "/pbufregistry.v1.Registry/RegisterModule"
	Registry_PullModule_FullMethodName            = "/pbufregistry.v1.Registry/PullModule"
	Registry_PushModule_FullMethodName            = "/pbufregistry.v1.Registry/PushModule"
	Registry_DeleteModule_FullMethodName          = "/pbufregistry.v1.Registry/DeleteModule"
	Registry_DeleteModuleTag_FullMethodName       = "/pbufregistry.v1.Registry/DeleteModuleTag"
	Registry_GetModuleDependencies_FullMethodName = "/pbufregistry.v1.Registry/GetModuleDependencies"
)
View Source
const (
	UserService_CreateUser_FullMethodName          = "/pbufregistry.v1.UserService/CreateUser"
	UserService_ListUsers_FullMethodName           = "/pbufregistry.v1.UserService/ListUsers"
	UserService_GetUser_FullMethodName             = "/pbufregistry.v1.UserService/GetUser"
	UserService_UpdateUser_FullMethodName          = "/pbufregistry.v1.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName          = "/pbufregistry.v1.UserService/DeleteUser"
	UserService_RegenerateToken_FullMethodName     = "/pbufregistry.v1.UserService/RegenerateToken"
	UserService_GrantPermission_FullMethodName     = "/pbufregistry.v1.UserService/GrantPermission"
	UserService_RevokePermission_FullMethodName    = "/pbufregistry.v1.UserService/RevokePermission"
	UserService_ListUserPermissions_FullMethodName = "/pbufregistry.v1.UserService/ListUserPermissions"
)
View Source
const (
	MetadataService_GetMetadata_FullMethodName = "/pbufregistry.v1.MetadataService/GetMetadata"
)

Variables

View Source
var (
	DriftEventType_name = map[int32]string{
		0: "DRIFT_EVENT_TYPE_UNSPECIFIED",
		1: "DRIFT_EVENT_TYPE_ADDED",
		2: "DRIFT_EVENT_TYPE_MODIFIED",
		3: "DRIFT_EVENT_TYPE_DELETED",
	}
	DriftEventType_value = map[string]int32{
		"DRIFT_EVENT_TYPE_UNSPECIFIED": 0,
		"DRIFT_EVENT_TYPE_ADDED":       1,
		"DRIFT_EVENT_TYPE_MODIFIED":    2,
		"DRIFT_EVENT_TYPE_DELETED":     3,
	}
)

Enum value maps for DriftEventType.

View Source
var (
	DriftSeverity_name = map[int32]string{
		0: "DRIFT_SEVERITY_UNSPECIFIED",
		1: "DRIFT_SEVERITY_INFO",
		2: "DRIFT_SEVERITY_WARNING",
		3: "DRIFT_SEVERITY_CRITICAL",
	}
	DriftSeverity_value = map[string]int32{
		"DRIFT_SEVERITY_UNSPECIFIED": 0,
		"DRIFT_SEVERITY_INFO":        1,
		"DRIFT_SEVERITY_WARNING":     2,
		"DRIFT_SEVERITY_CRITICAL":    3,
	}
)

Enum value maps for DriftSeverity.

View Source
var (
	UserType_name = map[int32]string{
		0: "USER_TYPE_UNSPECIFIED",
		1: "USER_TYPE_USER",
		2: "USER_TYPE_BOT",
	}
	UserType_value = map[string]int32{
		"USER_TYPE_UNSPECIFIED": 0,
		"USER_TYPE_USER":        1,
		"USER_TYPE_BOT":         2,
	}
)

Enum value maps for UserType.

View Source
var (
	Permission_name = map[int32]string{
		0: "PERMISSION_UNSPECIFIED",
		1: "PERMISSION_READ",
		2: "PERMISSION_WRITE",
		3: "PERMISSION_ADMIN",
	}
	Permission_value = map[string]int32{
		"PERMISSION_UNSPECIFIED": 0,
		"PERMISSION_READ":        1,
		"PERMISSION_WRITE":       2,
		"PERMISSION_ADMIN":       3,
	}
)

Enum value maps for Permission.

View Source
var DriftService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pbufregistry.v1.DriftService",
	HandlerType: (*DriftServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListDriftEvents",
			Handler:    _DriftService_ListDriftEvents_Handler,
		},
		{
			MethodName: "GetModuleDriftEvents",
			Handler:    _DriftService_GetModuleDriftEvents_Handler,
		},
		{
			MethodName: "AcknowledgeDriftEvent",
			Handler:    _DriftService_AcknowledgeDriftEvent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pbuf-registry/v1/drift.proto",
}

DriftService_ServiceDesc is the grpc.ServiceDesc for DriftService 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_pbuf_registry_v1_drift_proto protoreflect.FileDescriptor
View Source
var File_pbuf_registry_v1_entities_proto protoreflect.FileDescriptor
View Source
var File_pbuf_registry_v1_metadata_proto protoreflect.FileDescriptor
View Source
var File_pbuf_registry_v1_registry_proto protoreflect.FileDescriptor
View Source
var File_pbuf_registry_v1_users_proto protoreflect.FileDescriptor
View Source
var MetadataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pbufregistry.v1.MetadataService",
	HandlerType: (*MetadataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMetadata",
			Handler:    _MetadataService_GetMetadata_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pbuf-registry/v1/metadata.proto",
}

MetadataService_ServiceDesc is the grpc.ServiceDesc for MetadataService 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 Registry_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pbufregistry.v1.Registry",
	HandlerType: (*RegistryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListModules",
			Handler:    _Registry_ListModules_Handler,
		},
		{
			MethodName: "GetModule",
			Handler:    _Registry_GetModule_Handler,
		},
		{
			MethodName: "RegisterModule",
			Handler:    _Registry_RegisterModule_Handler,
		},
		{
			MethodName: "PullModule",
			Handler:    _Registry_PullModule_Handler,
		},
		{
			MethodName: "PushModule",
			Handler:    _Registry_PushModule_Handler,
		},
		{
			MethodName: "DeleteModule",
			Handler:    _Registry_DeleteModule_Handler,
		},
		{
			MethodName: "DeleteModuleTag",
			Handler:    _Registry_DeleteModuleTag_Handler,
		},
		{
			MethodName: "GetModuleDependencies",
			Handler:    _Registry_GetModuleDependencies_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pbuf-registry/v1/registry.proto",
}

Registry_ServiceDesc is the grpc.ServiceDesc for Registry 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 UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pbufregistry.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "RegenerateToken",
			Handler:    _UserService_RegenerateToken_Handler,
		},
		{
			MethodName: "GrantPermission",
			Handler:    _UserService_GrantPermission_Handler,
		},
		{
			MethodName: "RevokePermission",
			Handler:    _UserService_RevokePermission_Handler,
		},
		{
			MethodName: "ListUserPermissions",
			Handler:    _UserService_ListUserPermissions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pbuf-registry/v1/users.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 RegisterDriftServiceServer added in v0.7.0

func RegisterDriftServiceServer(s grpc.ServiceRegistrar, srv DriftServiceServer)

func RegisterMetadataServiceServer added in v0.4.0

func RegisterMetadataServiceServer(s grpc.ServiceRegistrar, srv MetadataServiceServer)

func RegisterRegistryServer

func RegisterRegistryServer(s grpc.ServiceRegistrar, srv RegistryServer)

func RegisterUserServiceServer added in v0.6.0

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type ACLEntry added in v0.6.0

type ACLEntry struct {

	// The unique identifier of the ACL entry
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The user ID this permission belongs to
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The module name ("*" for all modules)
	ModuleName string `protobuf:"bytes,3,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// The permission level
	Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=pbufregistry.v1.Permission" json:"permission,omitempty"`
	// When the permission was granted
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

ACLEntry represents a permission entry

func (*ACLEntry) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ACLEntry.ProtoReflect.Descriptor instead.

func (*ACLEntry) GetCreatedAt added in v0.6.0

func (x *ACLEntry) GetCreatedAt() *timestamppb.Timestamp

func (*ACLEntry) GetId added in v0.6.0

func (x *ACLEntry) GetId() string

func (*ACLEntry) GetModuleName added in v0.6.0

func (x *ACLEntry) GetModuleName() string

func (*ACLEntry) GetPermission added in v0.6.0

func (x *ACLEntry) GetPermission() Permission

func (*ACLEntry) GetUserId added in v0.6.0

func (x *ACLEntry) GetUserId() string

func (*ACLEntry) ProtoMessage added in v0.6.0

func (*ACLEntry) ProtoMessage()

func (*ACLEntry) ProtoReflect added in v0.6.0

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

func (*ACLEntry) Reset added in v0.6.0

func (x *ACLEntry) Reset()

func (*ACLEntry) String added in v0.6.0

func (x *ACLEntry) String() string

type AcknowledgeDriftEventRequest added in v0.7.0

type AcknowledgeDriftEventRequest struct {

	// The ID of the drift event to acknowledge
	EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// Who is acknowledging the event
	AcknowledgedBy string `protobuf:"bytes,2,opt,name=acknowledged_by,json=acknowledgedBy,proto3" json:"acknowledged_by,omitempty"`
	// contains filtered or unexported fields
}

AcknowledgeDriftEventRequest is the request message for AcknowledgeDriftEvent

func (*AcknowledgeDriftEventRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use AcknowledgeDriftEventRequest.ProtoReflect.Descriptor instead.

func (*AcknowledgeDriftEventRequest) GetAcknowledgedBy added in v0.7.0

func (x *AcknowledgeDriftEventRequest) GetAcknowledgedBy() string

func (*AcknowledgeDriftEventRequest) GetEventId added in v0.7.0

func (x *AcknowledgeDriftEventRequest) GetEventId() string

func (*AcknowledgeDriftEventRequest) ProtoMessage added in v0.7.0

func (*AcknowledgeDriftEventRequest) ProtoMessage()

func (*AcknowledgeDriftEventRequest) ProtoReflect added in v0.7.0

func (*AcknowledgeDriftEventRequest) Reset added in v0.7.0

func (x *AcknowledgeDriftEventRequest) Reset()

func (*AcknowledgeDriftEventRequest) String added in v0.7.0

type AcknowledgeDriftEventResponse added in v0.7.0

type AcknowledgeDriftEventResponse struct {

	// The acknowledged drift event
	Event *DriftEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

AcknowledgeDriftEventResponse is the response message for AcknowledgeDriftEvent

func (*AcknowledgeDriftEventResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use AcknowledgeDriftEventResponse.ProtoReflect.Descriptor instead.

func (*AcknowledgeDriftEventResponse) GetEvent added in v0.7.0

func (*AcknowledgeDriftEventResponse) ProtoMessage added in v0.7.0

func (*AcknowledgeDriftEventResponse) ProtoMessage()

func (*AcknowledgeDriftEventResponse) ProtoReflect added in v0.7.0

func (*AcknowledgeDriftEventResponse) Reset added in v0.7.0

func (x *AcknowledgeDriftEventResponse) Reset()

func (*AcknowledgeDriftEventResponse) String added in v0.7.0

type CreateUserRequest added in v0.6.0

type CreateUserRequest struct {

	// The name of the user
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the user
	Type UserType `protobuf:"varint,2,opt,name=type,proto3,enum=pbufregistry.v1.UserType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

CreateUserRequest is the request for creating a user or bot

func (*CreateUserRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetName added in v0.6.0

func (x *CreateUserRequest) GetName() string

func (*CreateUserRequest) GetType added in v0.6.0

func (x *CreateUserRequest) GetType() UserType

func (*CreateUserRequest) ProtoMessage added in v0.6.0

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect added in v0.6.0

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

func (*CreateUserRequest) Reset added in v0.6.0

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String added in v0.6.0

func (x *CreateUserRequest) String() string

type CreateUserResponse added in v0.6.0

type CreateUserResponse struct {

	// The created user
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// The generated token (only returned once)
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

CreateUserResponse is the response for creating a user or bot

func (*CreateUserResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetToken added in v0.6.0

func (x *CreateUserResponse) GetToken() string

func (*CreateUserResponse) GetUser added in v0.6.0

func (x *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage added in v0.6.0

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect added in v0.6.0

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

func (*CreateUserResponse) Reset added in v0.6.0

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String added in v0.6.0

func (x *CreateUserResponse) String() string

type DeleteModuleRequest

type DeleteModuleRequest struct {

	// The name of the module to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

DeleteModuleRequest is the request message for DeleteModule.

func (*DeleteModuleRequest) Descriptor deprecated

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

Deprecated: Use DeleteModuleRequest.ProtoReflect.Descriptor instead.

func (*DeleteModuleRequest) GetName

func (x *DeleteModuleRequest) GetName() string

func (*DeleteModuleRequest) ProtoMessage

func (*DeleteModuleRequest) ProtoMessage()

func (*DeleteModuleRequest) ProtoReflect

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

func (*DeleteModuleRequest) Reset

func (x *DeleteModuleRequest) Reset()

func (*DeleteModuleRequest) String

func (x *DeleteModuleRequest) String() string

type DeleteModuleResponse

type DeleteModuleResponse struct {

	// The name of the deleted module.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

DeleteModuleResponse is the response message for DeleteModule.

func (*DeleteModuleResponse) Descriptor deprecated

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

Deprecated: Use DeleteModuleResponse.ProtoReflect.Descriptor instead.

func (*DeleteModuleResponse) GetName

func (x *DeleteModuleResponse) GetName() string

func (*DeleteModuleResponse) ProtoMessage

func (*DeleteModuleResponse) ProtoMessage()

func (*DeleteModuleResponse) ProtoReflect

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

func (*DeleteModuleResponse) Reset

func (x *DeleteModuleResponse) Reset()

func (*DeleteModuleResponse) String

func (x *DeleteModuleResponse) String() string

type DeleteModuleTagRequest

type DeleteModuleTagRequest struct {

	// The name of the module to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag of the module to delete.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

DeleteModuleTagRequest is the request message for DeleteModuleTag.

func (*DeleteModuleTagRequest) Descriptor deprecated

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

Deprecated: Use DeleteModuleTagRequest.ProtoReflect.Descriptor instead.

func (*DeleteModuleTagRequest) GetName

func (x *DeleteModuleTagRequest) GetName() string

func (*DeleteModuleTagRequest) GetTag

func (x *DeleteModuleTagRequest) GetTag() string

func (*DeleteModuleTagRequest) ProtoMessage

func (*DeleteModuleTagRequest) ProtoMessage()

func (*DeleteModuleTagRequest) ProtoReflect

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

func (*DeleteModuleTagRequest) Reset

func (x *DeleteModuleTagRequest) Reset()

func (*DeleteModuleTagRequest) String

func (x *DeleteModuleTagRequest) String() string

type DeleteModuleTagResponse

type DeleteModuleTagResponse struct {

	// The name of the deleted module.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag of the deleted module.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

DeleteModuleTagResponse is the response message for DeleteModuleTag.

func (*DeleteModuleTagResponse) Descriptor deprecated

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

Deprecated: Use DeleteModuleTagResponse.ProtoReflect.Descriptor instead.

func (*DeleteModuleTagResponse) GetName

func (x *DeleteModuleTagResponse) GetName() string

func (*DeleteModuleTagResponse) GetTag

func (x *DeleteModuleTagResponse) GetTag() string

func (*DeleteModuleTagResponse) ProtoMessage

func (*DeleteModuleTagResponse) ProtoMessage()

func (*DeleteModuleTagResponse) ProtoReflect

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

func (*DeleteModuleTagResponse) Reset

func (x *DeleteModuleTagResponse) Reset()

func (*DeleteModuleTagResponse) String

func (x *DeleteModuleTagResponse) String() string

type DeleteUserRequest added in v0.6.0

type DeleteUserRequest struct {

	// The ID of the user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserRequest is the request for deleting a user

func (*DeleteUserRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId added in v0.6.0

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage added in v0.6.0

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect added in v0.6.0

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

func (*DeleteUserRequest) Reset added in v0.6.0

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String added in v0.6.0

func (x *DeleteUserRequest) String() string

type DeleteUserResponse added in v0.6.0

type DeleteUserResponse struct {

	// The ID of the deleted user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserResponse is the response for deleting a user

func (*DeleteUserResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) GetId added in v0.6.0

func (x *DeleteUserResponse) GetId() string

func (*DeleteUserResponse) ProtoMessage added in v0.6.0

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect added in v0.6.0

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

func (*DeleteUserResponse) Reset added in v0.6.0

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String added in v0.6.0

func (x *DeleteUserResponse) String() string

type Dependency

type Dependency struct {

	// The name of the dependency.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag of the dependency.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

Dependency is a dependency registered in the registry.

func (*Dependency) Descriptor deprecated

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

Deprecated: Use Dependency.ProtoReflect.Descriptor instead.

func (*Dependency) GetName

func (x *Dependency) GetName() string

func (*Dependency) GetTag

func (x *Dependency) GetTag() string

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) ProtoReflect

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

func (*Dependency) Reset

func (x *Dependency) Reset()

func (*Dependency) String

func (x *Dependency) String() string

type DriftEvent added in v0.7.0

type DriftEvent struct {

	// The unique identifier of the drift event
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The module name where the drift was detected
	ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// The tag name where the drift was detected
	TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"`
	// The filename of the proto file that changed
	Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
	// The type of drift event
	EventType DriftEventType `protobuf:"varint,5,opt,name=event_type,json=eventType,proto3,enum=pbufregistry.v1.DriftEventType" json:"event_type,omitempty"`
	// The previous content hash (empty for added files)
	PreviousHash string `protobuf:"bytes,6,opt,name=previous_hash,json=previousHash,proto3" json:"previous_hash,omitempty"`
	// The current content hash (empty for deleted files)
	CurrentHash string `protobuf:"bytes,7,opt,name=current_hash,json=currentHash,proto3" json:"current_hash,omitempty"`
	// The severity of the drift event
	Severity DriftSeverity `protobuf:"varint,8,opt,name=severity,proto3,enum=pbufregistry.v1.DriftSeverity" json:"severity,omitempty"`
	// When the drift was detected
	DetectedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=detected_at,json=detectedAt,proto3" json:"detected_at,omitempty"`
	// Whether the event has been acknowledged
	Acknowledged bool `protobuf:"varint,10,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"`
	// When the event was acknowledged
	AcknowledgedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=acknowledged_at,json=acknowledgedAt,proto3" json:"acknowledged_at,omitempty"`
	// Who acknowledged the event
	AcknowledgedBy string `protobuf:"bytes,12,opt,name=acknowledged_by,json=acknowledgedBy,proto3" json:"acknowledged_by,omitempty"`
	// contains filtered or unexported fields
}

DriftEvent represents a detected change in a proto file

func (*DriftEvent) Descriptor deprecated added in v0.7.0

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

Deprecated: Use DriftEvent.ProtoReflect.Descriptor instead.

func (*DriftEvent) GetAcknowledged added in v0.7.0

func (x *DriftEvent) GetAcknowledged() bool

func (*DriftEvent) GetAcknowledgedAt added in v0.7.0

func (x *DriftEvent) GetAcknowledgedAt() *timestamppb.Timestamp

func (*DriftEvent) GetAcknowledgedBy added in v0.7.0

func (x *DriftEvent) GetAcknowledgedBy() string

func (*DriftEvent) GetCurrentHash added in v0.7.0

func (x *DriftEvent) GetCurrentHash() string

func (*DriftEvent) GetDetectedAt added in v0.7.0

func (x *DriftEvent) GetDetectedAt() *timestamppb.Timestamp

func (*DriftEvent) GetEventType added in v0.7.0

func (x *DriftEvent) GetEventType() DriftEventType

func (*DriftEvent) GetFilename added in v0.7.0

func (x *DriftEvent) GetFilename() string

func (*DriftEvent) GetId added in v0.7.0

func (x *DriftEvent) GetId() string

func (*DriftEvent) GetModuleName added in v0.7.0

func (x *DriftEvent) GetModuleName() string

func (*DriftEvent) GetPreviousHash added in v0.7.0

func (x *DriftEvent) GetPreviousHash() string

func (*DriftEvent) GetSeverity added in v0.7.0

func (x *DriftEvent) GetSeverity() DriftSeverity

func (*DriftEvent) GetTagName added in v0.7.0

func (x *DriftEvent) GetTagName() string

func (*DriftEvent) ProtoMessage added in v0.7.0

func (*DriftEvent) ProtoMessage()

func (*DriftEvent) ProtoReflect added in v0.7.0

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

func (*DriftEvent) Reset added in v0.7.0

func (x *DriftEvent) Reset()

func (*DriftEvent) String added in v0.7.0

func (x *DriftEvent) String() string

type DriftEventType added in v0.7.0

type DriftEventType int32

DriftEventType represents the type of drift event

const (
	DriftEventType_DRIFT_EVENT_TYPE_UNSPECIFIED DriftEventType = 0
	DriftEventType_DRIFT_EVENT_TYPE_ADDED       DriftEventType = 1
	DriftEventType_DRIFT_EVENT_TYPE_MODIFIED    DriftEventType = 2
	DriftEventType_DRIFT_EVENT_TYPE_DELETED     DriftEventType = 3
)

func (DriftEventType) Descriptor added in v0.7.0

func (DriftEventType) Enum added in v0.7.0

func (x DriftEventType) Enum() *DriftEventType

func (DriftEventType) EnumDescriptor deprecated added in v0.7.0

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

Deprecated: Use DriftEventType.Descriptor instead.

func (DriftEventType) Number added in v0.7.0

func (DriftEventType) String added in v0.7.0

func (x DriftEventType) String() string

func (DriftEventType) Type added in v0.7.0

type DriftServiceClient added in v0.7.0

type DriftServiceClient interface {
	// List all unacknowledged drift events
	ListDriftEvents(ctx context.Context, in *ListDriftEventsRequest, opts ...grpc.CallOption) (*ListDriftEventsResponse, error)
	// Get drift events for a specific module
	GetModuleDriftEvents(ctx context.Context, in *GetModuleDriftEventsRequest, opts ...grpc.CallOption) (*GetModuleDriftEventsResponse, error)
	// Acknowledge a drift event
	AcknowledgeDriftEvent(ctx context.Context, in *AcknowledgeDriftEventRequest, opts ...grpc.CallOption) (*AcknowledgeDriftEventResponse, error)
}

DriftServiceClient is the client API for DriftService 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.

DriftService provides access to drift detection events

func NewDriftServiceClient added in v0.7.0

func NewDriftServiceClient(cc grpc.ClientConnInterface) DriftServiceClient

type DriftServiceServer added in v0.7.0

type DriftServiceServer interface {
	// List all unacknowledged drift events
	ListDriftEvents(context.Context, *ListDriftEventsRequest) (*ListDriftEventsResponse, error)
	// Get drift events for a specific module
	GetModuleDriftEvents(context.Context, *GetModuleDriftEventsRequest) (*GetModuleDriftEventsResponse, error)
	// Acknowledge a drift event
	AcknowledgeDriftEvent(context.Context, *AcknowledgeDriftEventRequest) (*AcknowledgeDriftEventResponse, error)
	// contains filtered or unexported methods
}

DriftServiceServer is the server API for DriftService service. All implementations must embed UnimplementedDriftServiceServer for forward compatibility.

DriftService provides access to drift detection events

type DriftSeverity added in v0.7.0

type DriftSeverity int32

DriftSeverity represents the severity level of a drift event

const (
	DriftSeverity_DRIFT_SEVERITY_UNSPECIFIED DriftSeverity = 0
	DriftSeverity_DRIFT_SEVERITY_INFO        DriftSeverity = 1
	DriftSeverity_DRIFT_SEVERITY_WARNING     DriftSeverity = 2
	DriftSeverity_DRIFT_SEVERITY_CRITICAL    DriftSeverity = 3
)

func (DriftSeverity) Descriptor added in v0.7.0

func (DriftSeverity) Enum added in v0.7.0

func (x DriftSeverity) Enum() *DriftSeverity

func (DriftSeverity) EnumDescriptor deprecated added in v0.7.0

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

Deprecated: Use DriftSeverity.Descriptor instead.

func (DriftSeverity) Number added in v0.7.0

func (DriftSeverity) String added in v0.7.0

func (x DriftSeverity) String() string

func (DriftSeverity) Type added in v0.7.0

type Enum added in v0.4.0

type Enum struct {

	// The name of the enum.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The values of the enum.
	Values []*EnumValue `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

Enum is an enum in a proto file.

func (*Enum) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetName added in v0.4.0

func (x *Enum) GetName() string

func (*Enum) GetValues added in v0.4.0

func (x *Enum) GetValues() []*EnumValue

func (*Enum) ProtoMessage added in v0.4.0

func (*Enum) ProtoMessage()

func (*Enum) ProtoReflect added in v0.4.0

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

func (*Enum) Reset added in v0.4.0

func (x *Enum) Reset()

func (*Enum) String added in v0.4.0

func (x *Enum) String() string

type EnumValue added in v0.4.0

type EnumValue struct {

	// The name of the value.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag of the value.
	Tag int32 `protobuf:"varint,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

EnumValue is a value in an enum.

func (*EnumValue) Descriptor deprecated added in v0.4.0

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

Deprecated: Use EnumValue.ProtoReflect.Descriptor instead.

func (*EnumValue) GetName added in v0.4.0

func (x *EnumValue) GetName() string

func (*EnumValue) GetTag added in v0.4.0

func (x *EnumValue) GetTag() int32

func (*EnumValue) ProtoMessage added in v0.4.0

func (*EnumValue) ProtoMessage()

func (*EnumValue) ProtoReflect added in v0.4.0

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

func (*EnumValue) Reset added in v0.4.0

func (x *EnumValue) Reset()

func (*EnumValue) String added in v0.4.0

func (x *EnumValue) String() string

type Field added in v0.4.0

type Field struct {

	// The name of the field.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The message_type of the field.
	MessageType string `protobuf:"bytes,2,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"`
	// The tag of the field.
	Tag int32 `protobuf:"varint,3,opt,name=tag,proto3" json:"tag,omitempty"`
	// The repeated flag of the field.
	Repeated bool `protobuf:"varint,4,opt,name=repeated,proto3" json:"repeated,omitempty"`
	// The map flag of the field.
	Map bool `protobuf:"varint,5,opt,name=map,proto3" json:"map,omitempty"`
	// The oneof flag of the field.
	Oneof bool `protobuf:"varint,6,opt,name=oneof,proto3" json:"oneof,omitempty"`
	// The optional flag of the field.
	Optional bool `protobuf:"varint,7,opt,name=optional,proto3" json:"optional,omitempty"`
	// The required flag of the field.
	Required bool `protobuf:"varint,8,opt,name=required,proto3" json:"required,omitempty"`
	// The one of names of the field
	OneofNames []string `protobuf:"bytes,9,rep,name=oneof_names,json=oneofNames,proto3" json:"oneof_names,omitempty"`
	// The one of types of the field
	OneofTypes []string `protobuf:"bytes,10,rep,name=oneof_types,json=oneofTypes,proto3" json:"oneof_types,omitempty"`
	// The map key type of the field.
	MapKeyType string `protobuf:"bytes,11,opt,name=map_key_type,json=mapKeyType,proto3" json:"map_key_type,omitempty"`
	// The map value type of the field.
	MapValueType string `protobuf:"bytes,12,opt,name=map_value_type,json=mapValueType,proto3" json:"map_value_type,omitempty"`
	// contains filtered or unexported fields
}

Field is a field in a message.

func (*Field) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetMap added in v0.4.0

func (x *Field) GetMap() bool

func (*Field) GetMapKeyType added in v0.4.0

func (x *Field) GetMapKeyType() string

func (*Field) GetMapValueType added in v0.4.0

func (x *Field) GetMapValueType() string

func (*Field) GetMessageType added in v0.4.0

func (x *Field) GetMessageType() string

func (*Field) GetName added in v0.4.0

func (x *Field) GetName() string

func (*Field) GetOneof added in v0.4.0

func (x *Field) GetOneof() bool

func (*Field) GetOneofNames added in v0.4.0

func (x *Field) GetOneofNames() []string

func (*Field) GetOneofTypes added in v0.4.0

func (x *Field) GetOneofTypes() []string

func (*Field) GetOptional added in v0.4.0

func (x *Field) GetOptional() bool

func (*Field) GetRepeated added in v0.4.0

func (x *Field) GetRepeated() bool

func (*Field) GetRequired added in v0.4.0

func (x *Field) GetRequired() bool

func (*Field) GetTag added in v0.4.0

func (x *Field) GetTag() int32

func (*Field) ProtoMessage added in v0.4.0

func (*Field) ProtoMessage()

func (*Field) ProtoReflect added in v0.4.0

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

func (*Field) Reset added in v0.4.0

func (x *Field) Reset()

func (*Field) String added in v0.4.0

func (x *Field) String() string

type GetMetadataRequest added in v0.4.0

type GetMetadataRequest struct {

	// The module to get metadata for
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag id to get metadata for
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetadataRequest) Descriptor deprecated added in v0.4.0

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

Deprecated: Use GetMetadataRequest.ProtoReflect.Descriptor instead.

func (*GetMetadataRequest) GetName added in v0.4.0

func (x *GetMetadataRequest) GetName() string

func (*GetMetadataRequest) GetTag added in v0.4.0

func (x *GetMetadataRequest) GetTag() string

func (*GetMetadataRequest) ProtoMessage added in v0.4.0

func (*GetMetadataRequest) ProtoMessage()

func (*GetMetadataRequest) ProtoReflect added in v0.4.0

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

func (*GetMetadataRequest) Reset added in v0.4.0

func (x *GetMetadataRequest) Reset()

func (*GetMetadataRequest) String added in v0.4.0

func (x *GetMetadataRequest) String() string

type GetMetadataResponse added in v0.4.0

type GetMetadataResponse struct {

	// The packages in the module
	Packages []*Package `protobuf:"bytes,1,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetadataResponse) Descriptor deprecated added in v0.4.0

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

Deprecated: Use GetMetadataResponse.ProtoReflect.Descriptor instead.

func (*GetMetadataResponse) GetPackages added in v0.4.0

func (x *GetMetadataResponse) GetPackages() []*Package

func (*GetMetadataResponse) ProtoMessage added in v0.4.0

func (*GetMetadataResponse) ProtoMessage()

func (*GetMetadataResponse) ProtoReflect added in v0.4.0

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

func (*GetMetadataResponse) Reset added in v0.4.0

func (x *GetMetadataResponse) Reset()

func (*GetMetadataResponse) String added in v0.4.0

func (x *GetMetadataResponse) String() string

type GetModuleDependenciesRequest

type GetModuleDependenciesRequest struct {

	// The name of the module to retrieve
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag of the module to retrieve
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

GetModuleDependenciesRequest is the request message for GetModuleDependencies.

func (*GetModuleDependenciesRequest) Descriptor deprecated

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

Deprecated: Use GetModuleDependenciesRequest.ProtoReflect.Descriptor instead.

func (*GetModuleDependenciesRequest) GetName

func (x *GetModuleDependenciesRequest) GetName() string

func (*GetModuleDependenciesRequest) GetTag

func (*GetModuleDependenciesRequest) ProtoMessage

func (*GetModuleDependenciesRequest) ProtoMessage()

func (*GetModuleDependenciesRequest) ProtoReflect

func (*GetModuleDependenciesRequest) Reset

func (x *GetModuleDependenciesRequest) Reset()

func (*GetModuleDependenciesRequest) String

type GetModuleDependenciesResponse

type GetModuleDependenciesResponse struct {

	// The dependencies of the module.
	Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

GetModuleDependenciesResponse is the response message for GetModuleDependencies.

func (*GetModuleDependenciesResponse) Descriptor deprecated

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

Deprecated: Use GetModuleDependenciesResponse.ProtoReflect.Descriptor instead.

func (*GetModuleDependenciesResponse) GetDependencies

func (x *GetModuleDependenciesResponse) GetDependencies() []*Dependency

func (*GetModuleDependenciesResponse) ProtoMessage

func (*GetModuleDependenciesResponse) ProtoMessage()

func (*GetModuleDependenciesResponse) ProtoReflect

func (*GetModuleDependenciesResponse) Reset

func (x *GetModuleDependenciesResponse) Reset()

func (*GetModuleDependenciesResponse) String

type GetModuleDriftEventsRequest added in v0.7.0

type GetModuleDriftEventsRequest struct {

	// The module name to get drift events for
	ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// Optional: filter drift events by tag name
	TagName *string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3,oneof" json:"tag_name,omitempty"`
	// contains filtered or unexported fields
}

GetModuleDriftEventsRequest is the request message for GetModuleDriftEvents

func (*GetModuleDriftEventsRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use GetModuleDriftEventsRequest.ProtoReflect.Descriptor instead.

func (*GetModuleDriftEventsRequest) GetModuleName added in v0.7.0

func (x *GetModuleDriftEventsRequest) GetModuleName() string

func (*GetModuleDriftEventsRequest) GetTagName added in v0.7.0

func (x *GetModuleDriftEventsRequest) GetTagName() string

func (*GetModuleDriftEventsRequest) ProtoMessage added in v0.7.0

func (*GetModuleDriftEventsRequest) ProtoMessage()

func (*GetModuleDriftEventsRequest) ProtoReflect added in v0.7.0

func (*GetModuleDriftEventsRequest) Reset added in v0.7.0

func (x *GetModuleDriftEventsRequest) Reset()

func (*GetModuleDriftEventsRequest) String added in v0.7.0

func (x *GetModuleDriftEventsRequest) String() string

type GetModuleDriftEventsResponse added in v0.7.0

type GetModuleDriftEventsResponse struct {

	// The list of drift events for the module
	Events []*DriftEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

GetModuleDriftEventsResponse is the response message for GetModuleDriftEvents

func (*GetModuleDriftEventsResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use GetModuleDriftEventsResponse.ProtoReflect.Descriptor instead.

func (*GetModuleDriftEventsResponse) GetEvents added in v0.7.0

func (x *GetModuleDriftEventsResponse) GetEvents() []*DriftEvent

func (*GetModuleDriftEventsResponse) ProtoMessage added in v0.7.0

func (*GetModuleDriftEventsResponse) ProtoMessage()

func (*GetModuleDriftEventsResponse) ProtoReflect added in v0.7.0

func (*GetModuleDriftEventsResponse) Reset added in v0.7.0

func (x *GetModuleDriftEventsResponse) Reset()

func (*GetModuleDriftEventsResponse) String added in v0.7.0

type GetModuleRequest

type GetModuleRequest struct {

	// The name of the module to retrieve.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Include draft tags or not
	IncludeDraftTags bool `protobuf:"varint,2,opt,name=include_draft_tags,json=includeDraftTags,proto3" json:"include_draft_tags,omitempty"`
	// contains filtered or unexported fields
}

GetModuleRequest is the request message for GetModule.

func (*GetModuleRequest) Descriptor deprecated

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

Deprecated: Use GetModuleRequest.ProtoReflect.Descriptor instead.

func (*GetModuleRequest) GetIncludeDraftTags added in v0.4.0

func (x *GetModuleRequest) GetIncludeDraftTags() bool

func (*GetModuleRequest) GetName

func (x *GetModuleRequest) GetName() string

func (*GetModuleRequest) ProtoMessage

func (*GetModuleRequest) ProtoMessage()

func (*GetModuleRequest) ProtoReflect

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

func (*GetModuleRequest) Reset

func (x *GetModuleRequest) Reset()

func (*GetModuleRequest) String

func (x *GetModuleRequest) String() string

type GetUserRequest added in v0.6.0

type GetUserRequest struct {

	// The ID of the user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetUserRequest is the request for getting a user

func (*GetUserRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId added in v0.6.0

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage added in v0.6.0

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect added in v0.6.0

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

func (*GetUserRequest) Reset added in v0.6.0

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String added in v0.6.0

func (x *GetUserRequest) String() string

type GrantPermissionRequest added in v0.6.0

type GrantPermissionRequest struct {

	// The ID of the user
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The module name ("*" for all modules)
	ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// The permission level
	Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=pbufregistry.v1.Permission" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

GrantPermissionRequest is the request for granting a permission

func (*GrantPermissionRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use GrantPermissionRequest.ProtoReflect.Descriptor instead.

func (*GrantPermissionRequest) GetModuleName added in v0.6.0

func (x *GrantPermissionRequest) GetModuleName() string

func (*GrantPermissionRequest) GetPermission added in v0.6.0

func (x *GrantPermissionRequest) GetPermission() Permission

func (*GrantPermissionRequest) GetUserId added in v0.6.0

func (x *GrantPermissionRequest) GetUserId() string

func (*GrantPermissionRequest) ProtoMessage added in v0.6.0

func (*GrantPermissionRequest) ProtoMessage()

func (*GrantPermissionRequest) ProtoReflect added in v0.6.0

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

func (*GrantPermissionRequest) Reset added in v0.6.0

func (x *GrantPermissionRequest) Reset()

func (*GrantPermissionRequest) String added in v0.6.0

func (x *GrantPermissionRequest) String() string

type GrantPermissionResponse added in v0.6.0

type GrantPermissionResponse struct {

	// The created ACL entry
	Entry *ACLEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

GrantPermissionResponse is the response for granting a permission

func (*GrantPermissionResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use GrantPermissionResponse.ProtoReflect.Descriptor instead.

func (*GrantPermissionResponse) GetEntry added in v0.6.0

func (x *GrantPermissionResponse) GetEntry() *ACLEntry

func (*GrantPermissionResponse) ProtoMessage added in v0.6.0

func (*GrantPermissionResponse) ProtoMessage()

func (*GrantPermissionResponse) ProtoReflect added in v0.6.0

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

func (*GrantPermissionResponse) Reset added in v0.6.0

func (x *GrantPermissionResponse) Reset()

func (*GrantPermissionResponse) String added in v0.6.0

func (x *GrantPermissionResponse) String() string

type ListDriftEventsRequest added in v0.7.0

type ListDriftEventsRequest struct {

	// Optional: only return unacknowledged events (default: true)
	UnacknowledgedOnly bool `protobuf:"varint,1,opt,name=unacknowledged_only,json=unacknowledgedOnly,proto3" json:"unacknowledged_only,omitempty"`
	// contains filtered or unexported fields
}

ListDriftEventsRequest is the request message for ListDriftEvents

func (*ListDriftEventsRequest) Descriptor deprecated added in v0.7.0

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

Deprecated: Use ListDriftEventsRequest.ProtoReflect.Descriptor instead.

func (*ListDriftEventsRequest) GetUnacknowledgedOnly added in v0.7.0

func (x *ListDriftEventsRequest) GetUnacknowledgedOnly() bool

func (*ListDriftEventsRequest) ProtoMessage added in v0.7.0

func (*ListDriftEventsRequest) ProtoMessage()

func (*ListDriftEventsRequest) ProtoReflect added in v0.7.0

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

func (*ListDriftEventsRequest) Reset added in v0.7.0

func (x *ListDriftEventsRequest) Reset()

func (*ListDriftEventsRequest) String added in v0.7.0

func (x *ListDriftEventsRequest) String() string

type ListDriftEventsResponse added in v0.7.0

type ListDriftEventsResponse struct {

	// The list of drift events
	Events []*DriftEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

ListDriftEventsResponse is the response message for ListDriftEvents

func (*ListDriftEventsResponse) Descriptor deprecated added in v0.7.0

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

Deprecated: Use ListDriftEventsResponse.ProtoReflect.Descriptor instead.

func (*ListDriftEventsResponse) GetEvents added in v0.7.0

func (x *ListDriftEventsResponse) GetEvents() []*DriftEvent

func (*ListDriftEventsResponse) ProtoMessage added in v0.7.0

func (*ListDriftEventsResponse) ProtoMessage()

func (*ListDriftEventsResponse) ProtoReflect added in v0.7.0

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

func (*ListDriftEventsResponse) Reset added in v0.7.0

func (x *ListDriftEventsResponse) Reset()

func (*ListDriftEventsResponse) String added in v0.7.0

func (x *ListDriftEventsResponse) String() string

type ListModulesRequest

type ListModulesRequest struct {

	// The maximum number of modules to return.
	// The service may return fewer than this value.
	// If unspecified, at most 50 modules will be returned.
	// The maximum value is 1000; values above 1000 will be coerced to 1000.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous `ListModules` call.
	// Provide this to retrieve the subsequent page.
	//
	// When paginating, all other parameters provided to `ListModules` must match
	// the call that provided the page token.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListModulesRequest is the request message for ListModules.

func (*ListModulesRequest) Descriptor deprecated

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

Deprecated: Use ListModulesRequest.ProtoReflect.Descriptor instead.

func (*ListModulesRequest) GetPageSize

func (x *ListModulesRequest) GetPageSize() int32

func (*ListModulesRequest) GetPageToken

func (x *ListModulesRequest) GetPageToken() string

func (*ListModulesRequest) ProtoMessage

func (*ListModulesRequest) ProtoMessage()

func (*ListModulesRequest) ProtoReflect

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

func (*ListModulesRequest) Reset

func (x *ListModulesRequest) Reset()

func (*ListModulesRequest) String

func (x *ListModulesRequest) String() string

type ListModulesResponse

type ListModulesResponse struct {

	// The modules requested.
	Modules []*Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ListModulesResponse is the response message for ListModules.

func (*ListModulesResponse) Descriptor deprecated

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

Deprecated: Use ListModulesResponse.ProtoReflect.Descriptor instead.

func (*ListModulesResponse) GetModules

func (x *ListModulesResponse) GetModules() []*Module

func (*ListModulesResponse) GetNextPageToken

func (x *ListModulesResponse) GetNextPageToken() string

func (*ListModulesResponse) ProtoMessage

func (*ListModulesResponse) ProtoMessage()

func (*ListModulesResponse) ProtoReflect

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

func (*ListModulesResponse) Reset

func (x *ListModulesResponse) Reset()

func (*ListModulesResponse) String

func (x *ListModulesResponse) String() string

type ListUserPermissionsRequest added in v0.6.0

type ListUserPermissionsRequest struct {

	// The ID of the user
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

ListUserPermissionsRequest is the request for listing user permissions

func (*ListUserPermissionsRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListUserPermissionsRequest.ProtoReflect.Descriptor instead.

func (*ListUserPermissionsRequest) GetUserId added in v0.6.0

func (x *ListUserPermissionsRequest) GetUserId() string

func (*ListUserPermissionsRequest) ProtoMessage added in v0.6.0

func (*ListUserPermissionsRequest) ProtoMessage()

func (*ListUserPermissionsRequest) ProtoReflect added in v0.6.0

func (*ListUserPermissionsRequest) Reset added in v0.6.0

func (x *ListUserPermissionsRequest) Reset()

func (*ListUserPermissionsRequest) String added in v0.6.0

func (x *ListUserPermissionsRequest) String() string

type ListUserPermissionsResponse added in v0.6.0

type ListUserPermissionsResponse struct {

	// The list of permissions
	Permissions []*ACLEntry `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

ListUserPermissionsResponse is the response for listing user permissions

func (*ListUserPermissionsResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListUserPermissionsResponse.ProtoReflect.Descriptor instead.

func (*ListUserPermissionsResponse) GetPermissions added in v0.6.0

func (x *ListUserPermissionsResponse) GetPermissions() []*ACLEntry

func (*ListUserPermissionsResponse) ProtoMessage added in v0.6.0

func (*ListUserPermissionsResponse) ProtoMessage()

func (*ListUserPermissionsResponse) ProtoReflect added in v0.6.0

func (*ListUserPermissionsResponse) Reset added in v0.6.0

func (x *ListUserPermissionsResponse) Reset()

func (*ListUserPermissionsResponse) String added in v0.6.0

func (x *ListUserPermissionsResponse) String() string

type ListUsersRequest added in v0.6.0

type ListUsersRequest struct {

	// The maximum number of users to return
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The page number (0-indexed)
	Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

ListUsersRequest is the request for listing users

func (*ListUsersRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPage added in v0.6.0

func (x *ListUsersRequest) GetPage() int32

func (*ListUsersRequest) GetPageSize added in v0.6.0

func (x *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) ProtoMessage added in v0.6.0

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect added in v0.6.0

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

func (*ListUsersRequest) Reset added in v0.6.0

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String added in v0.6.0

func (x *ListUsersRequest) String() string

type ListUsersResponse added in v0.6.0

type ListUsersResponse struct {

	// The list of users
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// The total number of users
	Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

ListUsersResponse is the response for listing users

func (*ListUsersResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetTotal added in v0.6.0

func (x *ListUsersResponse) GetTotal() int32

func (*ListUsersResponse) GetUsers added in v0.6.0

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

func (*ListUsersResponse) ProtoMessage added in v0.6.0

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect added in v0.6.0

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

func (*ListUsersResponse) Reset added in v0.6.0

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String added in v0.6.0

func (x *ListUsersResponse) String() string

type Message added in v0.4.0

type Message struct {

	// The name of the message.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The fields of the message.
	Fields []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	// The nested messages of the message.
	NestedMessages []*Message `protobuf:"bytes,3,rep,name=nested_messages,json=nestedMessages,proto3" json:"nested_messages,omitempty"`
	// The nested enums of the message.
	NestedEnums []*Enum `protobuf:"bytes,4,rep,name=nested_enums,json=nestedEnums,proto3" json:"nested_enums,omitempty"`
	// contains filtered or unexported fields
}

Message is a message in a proto file.

func (*Message) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetFields added in v0.4.0

func (x *Message) GetFields() []*Field

func (*Message) GetName added in v0.4.0

func (x *Message) GetName() string

func (*Message) GetNestedEnums added in v0.4.0

func (x *Message) GetNestedEnums() []*Enum

func (*Message) GetNestedMessages added in v0.4.0

func (x *Message) GetNestedMessages() []*Message

func (*Message) ProtoMessage added in v0.4.0

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v0.4.0

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

func (*Message) Reset added in v0.4.0

func (x *Message) Reset()

func (*Message) String added in v0.4.0

func (x *Message) String() string

type MetadataServiceClient added in v0.4.0

type MetadataServiceClient interface {
	GetMetadata(ctx context.Context, in *GetMetadataRequest, opts ...grpc.CallOption) (*GetMetadataResponse, error)
}

MetadataServiceClient is the client API for MetadataService 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.

The metadata service must return parsed information

func NewMetadataServiceClient added in v0.4.0

func NewMetadataServiceClient(cc grpc.ClientConnInterface) MetadataServiceClient

type MetadataServiceServer added in v0.4.0

type MetadataServiceServer interface {
	GetMetadata(context.Context, *GetMetadataRequest) (*GetMetadataResponse, error)
	// contains filtered or unexported methods
}

MetadataServiceServer is the server API for MetadataService service. All implementations must embed UnimplementedMetadataServiceServer for forward compatibility.

The metadata service must return parsed information

type Method added in v0.4.0

type Method struct {

	// The name of the method.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The input type of the method.
	InputType string `protobuf:"bytes,2,opt,name=input_type,json=inputType,proto3" json:"input_type,omitempty"`
	// The output type of the method.
	OutputType string `protobuf:"bytes,3,opt,name=output_type,json=outputType,proto3" json:"output_type,omitempty"`
	// contains filtered or unexported fields
}

Method is a method in a service.

func (*Method) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Method.ProtoReflect.Descriptor instead.

func (*Method) GetInputType added in v0.4.0

func (x *Method) GetInputType() string

func (*Method) GetName added in v0.4.0

func (x *Method) GetName() string

func (*Method) GetOutputType added in v0.4.0

func (x *Method) GetOutputType() string

func (*Method) ProtoMessage added in v0.4.0

func (*Method) ProtoMessage()

func (*Method) ProtoReflect added in v0.4.0

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

func (*Method) Reset added in v0.4.0

func (x *Method) Reset()

func (*Method) String added in v0.4.0

func (x *Method) String() string

type Module

type Module struct {

	// id is the unique identifier of the module.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the module.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The tags of the module.
	Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	// The draft tags of the module.
	DraftTags []string `protobuf:"bytes,4,rep,name=draft_tags,json=draftTags,proto3" json:"draft_tags,omitempty"`
	// Packages that uses in this module
	Packages []string `protobuf:"bytes,5,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

Module is a module registered in the registry.

func (*Module) Descriptor deprecated

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

Deprecated: Use Module.ProtoReflect.Descriptor instead.

func (*Module) GetDraftTags added in v0.4.0

func (x *Module) GetDraftTags() []string

func (*Module) GetId

func (x *Module) GetId() string

func (*Module) GetName

func (x *Module) GetName() string

func (*Module) GetPackages added in v0.4.0

func (x *Module) GetPackages() []string

func (*Module) GetTags

func (x *Module) GetTags() []string

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) ProtoReflect

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

func (*Module) Reset

func (x *Module) Reset()

func (*Module) String

func (x *Module) String() string

type Package added in v0.4.0

type Package struct {

	// The name of the package.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The proto files of the package.
	ProtoFiles []*ParsedProtoFile `protobuf:"bytes,2,rep,name=proto_files,json=protoFiles,proto3" json:"proto_files,omitempty"`
	// The dependencies of the package.
	Dependencies []*PackageDependency `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

Package is a proto file package used in a module

func (*Package) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetDependencies added in v0.4.0

func (x *Package) GetDependencies() []*PackageDependency

func (*Package) GetName added in v0.4.0

func (x *Package) GetName() string

func (*Package) GetProtoFiles added in v0.4.0

func (x *Package) GetProtoFiles() []*ParsedProtoFile

func (*Package) ProtoMessage added in v0.4.0

func (*Package) ProtoMessage()

func (*Package) ProtoReflect added in v0.4.0

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

func (*Package) Reset added in v0.4.0

func (x *Package) Reset()

func (*Package) String added in v0.4.0

func (x *Package) String() string

type PackageDependency added in v0.4.0

type PackageDependency struct {

	// The name of the dependency.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

PackageDependency is a dependency of a package.

func (*PackageDependency) Descriptor deprecated added in v0.4.0

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

Deprecated: Use PackageDependency.ProtoReflect.Descriptor instead.

func (*PackageDependency) GetName added in v0.4.0

func (x *PackageDependency) GetName() string

func (*PackageDependency) ProtoMessage added in v0.4.0

func (*PackageDependency) ProtoMessage()

func (*PackageDependency) ProtoReflect added in v0.4.0

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

func (*PackageDependency) Reset added in v0.4.0

func (x *PackageDependency) Reset()

func (*PackageDependency) String added in v0.4.0

func (x *PackageDependency) String() string

type ParsedProtoFile added in v0.4.0

type ParsedProtoFile struct {

	// The filename of the proto file.
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	// The messages in the proto file.
	Messages []*Message `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
	// The services in the proto file.
	Services []*Service `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

ParsedProtoFile is a proto file parsed by the registry contains information about messages and services in the proto file

func (*ParsedProtoFile) Descriptor deprecated added in v0.4.0

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

Deprecated: Use ParsedProtoFile.ProtoReflect.Descriptor instead.

func (*ParsedProtoFile) GetFilename added in v0.4.0

func (x *ParsedProtoFile) GetFilename() string

func (*ParsedProtoFile) GetMessages added in v0.4.0

func (x *ParsedProtoFile) GetMessages() []*Message

func (*ParsedProtoFile) GetServices added in v0.4.0

func (x *ParsedProtoFile) GetServices() []*Service

func (*ParsedProtoFile) ProtoMessage added in v0.4.0

func (*ParsedProtoFile) ProtoMessage()

func (*ParsedProtoFile) ProtoReflect added in v0.4.0

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

func (*ParsedProtoFile) Reset added in v0.4.0

func (x *ParsedProtoFile) Reset()

func (*ParsedProtoFile) String added in v0.4.0

func (x *ParsedProtoFile) String() string

type Permission added in v0.6.0

type Permission int32

Permission defines the permission level

const (
	Permission_PERMISSION_UNSPECIFIED Permission = 0
	Permission_PERMISSION_READ        Permission = 1
	Permission_PERMISSION_WRITE       Permission = 2
	Permission_PERMISSION_ADMIN       Permission = 3
)

func (Permission) Descriptor added in v0.6.0

func (Permission) Descriptor() protoreflect.EnumDescriptor

func (Permission) Enum added in v0.6.0

func (x Permission) Enum() *Permission

func (Permission) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use Permission.Descriptor instead.

func (Permission) Number added in v0.6.0

func (x Permission) Number() protoreflect.EnumNumber

func (Permission) String added in v0.6.0

func (x Permission) String() string

func (Permission) Type added in v0.6.0

type ProtoFile

type ProtoFile struct {

	// The filename of the proto file.
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	// The content of the proto file.
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

ProtoFile is a proto file registered in the registry.

func (*ProtoFile) Descriptor deprecated

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

Deprecated: Use ProtoFile.ProtoReflect.Descriptor instead.

func (*ProtoFile) GetContent

func (x *ProtoFile) GetContent() string

func (*ProtoFile) GetFilename

func (x *ProtoFile) GetFilename() string

func (*ProtoFile) ProtoMessage

func (*ProtoFile) ProtoMessage()

func (*ProtoFile) ProtoReflect

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

func (*ProtoFile) Reset

func (x *ProtoFile) Reset()

func (*ProtoFile) String

func (x *ProtoFile) String() string

type PullModuleRequest

type PullModuleRequest struct {

	// The name of the module to retrieve.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tag of the module to retrieve.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

PullModuleRequest is the request message for PullModule.

func (*PullModuleRequest) Descriptor deprecated

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

Deprecated: Use PullModuleRequest.ProtoReflect.Descriptor instead.

func (*PullModuleRequest) GetName

func (x *PullModuleRequest) GetName() string

func (*PullModuleRequest) GetTag

func (x *PullModuleRequest) GetTag() string

func (*PullModuleRequest) ProtoMessage

func (*PullModuleRequest) ProtoMessage()

func (*PullModuleRequest) ProtoReflect

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

func (*PullModuleRequest) Reset

func (x *PullModuleRequest) Reset()

func (*PullModuleRequest) String

func (x *PullModuleRequest) String() string

type PullModuleResponse

type PullModuleResponse struct {

	// The module requested.
	Module *Module `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// The protofiles of the module.
	Protofiles []*ProtoFile `protobuf:"bytes,2,rep,name=protofiles,proto3" json:"protofiles,omitempty"`
	// contains filtered or unexported fields
}

PullModuleResponse is the response message for PullModule.

func (*PullModuleResponse) Descriptor deprecated

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

Deprecated: Use PullModuleResponse.ProtoReflect.Descriptor instead.

func (*PullModuleResponse) GetModule

func (x *PullModuleResponse) GetModule() *Module

func (*PullModuleResponse) GetProtofiles

func (x *PullModuleResponse) GetProtofiles() []*ProtoFile

func (*PullModuleResponse) ProtoMessage

func (*PullModuleResponse) ProtoMessage()

func (*PullModuleResponse) ProtoReflect

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

func (*PullModuleResponse) Reset

func (x *PullModuleResponse) Reset()

func (*PullModuleResponse) String

func (x *PullModuleResponse) String() string

type PushModuleRequest

type PushModuleRequest struct {

	// The module to register.
	ModuleName string `protobuf:"bytes,1,opt,name=module_name,proto3" json:"module_name,omitempty"`
	// The tag of the module to register.
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// Protofiles
	Protofiles []*ProtoFile `protobuf:"bytes,3,rep,name=protofiles,proto3" json:"protofiles,omitempty"`
	// Dependencies
	Dependencies []*Dependency `protobuf:"bytes,4,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// Is tag a draft
	IsDraft bool `protobuf:"varint,5,opt,name=is_draft,json=isDraft,proto3" json:"is_draft,omitempty"`
	// contains filtered or unexported fields
}

PushModuleRequest is the request message for PushModule.

func (*PushModuleRequest) Descriptor deprecated

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

Deprecated: Use PushModuleRequest.ProtoReflect.Descriptor instead.

func (*PushModuleRequest) GetDependencies

func (x *PushModuleRequest) GetDependencies() []*Dependency

func (*PushModuleRequest) GetIsDraft added in v0.4.0

func (x *PushModuleRequest) GetIsDraft() bool

func (*PushModuleRequest) GetModuleName

func (x *PushModuleRequest) GetModuleName() string

func (*PushModuleRequest) GetProtofiles

func (x *PushModuleRequest) GetProtofiles() []*ProtoFile

func (*PushModuleRequest) GetTag

func (x *PushModuleRequest) GetTag() string

func (*PushModuleRequest) ProtoMessage

func (*PushModuleRequest) ProtoMessage()

func (*PushModuleRequest) ProtoReflect

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

func (*PushModuleRequest) Reset

func (x *PushModuleRequest) Reset()

func (*PushModuleRequest) String

func (x *PushModuleRequest) String() string

type RegenerateTokenRequest added in v0.6.0

type RegenerateTokenRequest struct {

	// The ID of the user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

RegenerateTokenRequest is the request for regenerating a token

func (*RegenerateTokenRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use RegenerateTokenRequest.ProtoReflect.Descriptor instead.

func (*RegenerateTokenRequest) GetId added in v0.6.0

func (x *RegenerateTokenRequest) GetId() string

func (*RegenerateTokenRequest) ProtoMessage added in v0.6.0

func (*RegenerateTokenRequest) ProtoMessage()

func (*RegenerateTokenRequest) ProtoReflect added in v0.6.0

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

func (*RegenerateTokenRequest) Reset added in v0.6.0

func (x *RegenerateTokenRequest) Reset()

func (*RegenerateTokenRequest) String added in v0.6.0

func (x *RegenerateTokenRequest) String() string

type RegenerateTokenResponse added in v0.6.0

type RegenerateTokenResponse struct {

	// The new token
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

RegenerateTokenResponse is the response for regenerating a token

func (*RegenerateTokenResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use RegenerateTokenResponse.ProtoReflect.Descriptor instead.

func (*RegenerateTokenResponse) GetToken added in v0.6.0

func (x *RegenerateTokenResponse) GetToken() string

func (*RegenerateTokenResponse) ProtoMessage added in v0.6.0

func (*RegenerateTokenResponse) ProtoMessage()

func (*RegenerateTokenResponse) ProtoReflect added in v0.6.0

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

func (*RegenerateTokenResponse) Reset added in v0.6.0

func (x *RegenerateTokenResponse) Reset()

func (*RegenerateTokenResponse) String added in v0.6.0

func (x *RegenerateTokenResponse) String() string

type RegisterModuleRequest

type RegisterModuleRequest struct {

	// Module name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

RegisterModuleRequest is the request message for RegisterModule.

func (*RegisterModuleRequest) Descriptor deprecated

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

Deprecated: Use RegisterModuleRequest.ProtoReflect.Descriptor instead.

func (*RegisterModuleRequest) GetName

func (x *RegisterModuleRequest) GetName() string

func (*RegisterModuleRequest) ProtoMessage

func (*RegisterModuleRequest) ProtoMessage()

func (*RegisterModuleRequest) ProtoReflect

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

func (*RegisterModuleRequest) Reset

func (x *RegisterModuleRequest) Reset()

func (*RegisterModuleRequest) String

func (x *RegisterModuleRequest) String() string

type RegistryClient

type RegistryClient interface {
	// List all registered modules
	ListModules(ctx context.Context, in *ListModulesRequest, opts ...grpc.CallOption) (*ListModulesResponse, error)
	// Get a module by name
	GetModule(ctx context.Context, in *GetModuleRequest, opts ...grpc.CallOption) (*Module, error)
	// Register a module
	RegisterModule(ctx context.Context, in *RegisterModuleRequest, opts ...grpc.CallOption) (*Module, error)
	// Pull a module tag
	PullModule(ctx context.Context, in *PullModuleRequest, opts ...grpc.CallOption) (*PullModuleResponse, error)
	// Push a module
	PushModule(ctx context.Context, in *PushModuleRequest, opts ...grpc.CallOption) (*Module, error)
	// Delete a module by name
	DeleteModule(ctx context.Context, in *DeleteModuleRequest, opts ...grpc.CallOption) (*DeleteModuleResponse, error)
	// Delete a specific module tag
	DeleteModuleTag(ctx context.Context, in *DeleteModuleTagRequest, opts ...grpc.CallOption) (*DeleteModuleTagResponse, error)
	// Get Module Dependencies
	GetModuleDependencies(ctx context.Context, in *GetModuleDependenciesRequest, opts ...grpc.CallOption) (*GetModuleDependenciesResponse, error)
}

RegistryClient is the client API for Registry 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.

Registry service definition

func NewRegistryClient

func NewRegistryClient(cc grpc.ClientConnInterface) RegistryClient

type RegistryServer

type RegistryServer interface {
	// List all registered modules
	ListModules(context.Context, *ListModulesRequest) (*ListModulesResponse, error)
	// Get a module by name
	GetModule(context.Context, *GetModuleRequest) (*Module, error)
	// Register a module
	RegisterModule(context.Context, *RegisterModuleRequest) (*Module, error)
	// Pull a module tag
	PullModule(context.Context, *PullModuleRequest) (*PullModuleResponse, error)
	// Push a module
	PushModule(context.Context, *PushModuleRequest) (*Module, error)
	// Delete a module by name
	DeleteModule(context.Context, *DeleteModuleRequest) (*DeleteModuleResponse, error)
	// Delete a specific module tag
	DeleteModuleTag(context.Context, *DeleteModuleTagRequest) (*DeleteModuleTagResponse, error)
	// Get Module Dependencies
	GetModuleDependencies(context.Context, *GetModuleDependenciesRequest) (*GetModuleDependenciesResponse, error)
	// contains filtered or unexported methods
}

RegistryServer is the server API for Registry service. All implementations must embed UnimplementedRegistryServer for forward compatibility.

Registry service definition

type RevokePermissionRequest added in v0.6.0

type RevokePermissionRequest struct {

	// The ID of the user
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// The module name
	ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// contains filtered or unexported fields
}

RevokePermissionRequest is the request for revoking a permission

func (*RevokePermissionRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use RevokePermissionRequest.ProtoReflect.Descriptor instead.

func (*RevokePermissionRequest) GetModuleName added in v0.6.0

func (x *RevokePermissionRequest) GetModuleName() string

func (*RevokePermissionRequest) GetUserId added in v0.6.0

func (x *RevokePermissionRequest) GetUserId() string

func (*RevokePermissionRequest) ProtoMessage added in v0.6.0

func (*RevokePermissionRequest) ProtoMessage()

func (*RevokePermissionRequest) ProtoReflect added in v0.6.0

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

func (*RevokePermissionRequest) Reset added in v0.6.0

func (x *RevokePermissionRequest) Reset()

func (*RevokePermissionRequest) String added in v0.6.0

func (x *RevokePermissionRequest) String() string

type RevokePermissionResponse added in v0.6.0

type RevokePermissionResponse struct {

	// Success indicator
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

RevokePermissionResponse is the response for revoking a permission

func (*RevokePermissionResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use RevokePermissionResponse.ProtoReflect.Descriptor instead.

func (*RevokePermissionResponse) GetSuccess added in v0.6.0

func (x *RevokePermissionResponse) GetSuccess() bool

func (*RevokePermissionResponse) ProtoMessage added in v0.6.0

func (*RevokePermissionResponse) ProtoMessage()

func (*RevokePermissionResponse) ProtoReflect added in v0.6.0

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

func (*RevokePermissionResponse) Reset added in v0.6.0

func (x *RevokePermissionResponse) Reset()

func (*RevokePermissionResponse) String added in v0.6.0

func (x *RevokePermissionResponse) String() string

type Service added in v0.4.0

type Service struct {

	// The name of the service.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The methods of the service.
	Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

Service is a service in a proto file.

func (*Service) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetMethods added in v0.4.0

func (x *Service) GetMethods() []*Method

func (*Service) GetName added in v0.4.0

func (x *Service) GetName() string

func (*Service) ProtoMessage added in v0.4.0

func (*Service) ProtoMessage()

func (*Service) ProtoReflect added in v0.4.0

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

func (*Service) Reset added in v0.4.0

func (x *Service) Reset()

func (*Service) String added in v0.4.0

func (x *Service) String() string

type UnimplementedDriftServiceServer added in v0.7.0

type UnimplementedDriftServiceServer struct{}

UnimplementedDriftServiceServer 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 (UnimplementedDriftServiceServer) AcknowledgeDriftEvent added in v0.7.0

func (UnimplementedDriftServiceServer) GetModuleDriftEvents added in v0.7.0

func (UnimplementedDriftServiceServer) ListDriftEvents added in v0.7.0

type UnimplementedMetadataServiceServer added in v0.4.0

type UnimplementedMetadataServiceServer struct{}

UnimplementedMetadataServiceServer 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 (UnimplementedMetadataServiceServer) GetMetadata added in v0.4.0

type UnimplementedRegistryServer

type UnimplementedRegistryServer struct{}

UnimplementedRegistryServer 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 (UnimplementedRegistryServer) DeleteModule

func (UnimplementedRegistryServer) DeleteModuleTag

func (UnimplementedRegistryServer) GetModule

func (UnimplementedRegistryServer) ListModules

func (UnimplementedRegistryServer) PullModule

func (UnimplementedRegistryServer) PushModule

func (UnimplementedRegistryServer) RegisterModule

type UnimplementedUserServiceServer added in v0.6.0

type UnimplementedUserServiceServer struct{}

UnimplementedUserServiceServer 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 (UnimplementedUserServiceServer) CreateUser added in v0.6.0

func (UnimplementedUserServiceServer) DeleteUser added in v0.6.0

func (UnimplementedUserServiceServer) GetUser added in v0.6.0

func (UnimplementedUserServiceServer) GrantPermission added in v0.6.0

func (UnimplementedUserServiceServer) ListUserPermissions added in v0.6.0

func (UnimplementedUserServiceServer) ListUsers added in v0.6.0

func (UnimplementedUserServiceServer) RegenerateToken added in v0.6.0

func (UnimplementedUserServiceServer) RevokePermission added in v0.6.0

func (UnimplementedUserServiceServer) UpdateUser added in v0.6.0

type UnsafeDriftServiceServer added in v0.7.0

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

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

type UnsafeMetadataServiceServer added in v0.4.0

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

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

type UnsafeRegistryServer

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

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

type UnsafeUserServiceServer added in v0.6.0

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 added in v0.6.0

type UpdateUserRequest struct {

	// The ID of the user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The new name (optional)
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Whether the user is active (optional)
	IsActive bool `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserRequest is the request for updating a user

func (*UpdateUserRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetId added in v0.6.0

func (x *UpdateUserRequest) GetId() string

func (*UpdateUserRequest) GetIsActive added in v0.6.0

func (x *UpdateUserRequest) GetIsActive() bool

func (*UpdateUserRequest) GetName added in v0.6.0

func (x *UpdateUserRequest) GetName() string

func (*UpdateUserRequest) ProtoMessage added in v0.6.0

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect added in v0.6.0

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

func (*UpdateUserRequest) Reset added in v0.6.0

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String added in v0.6.0

func (x *UpdateUserRequest) String() string

type User added in v0.6.0

type User struct {

	// The unique identifier of the user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the user
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the user (user or bot)
	Type UserType `protobuf:"varint,3,opt,name=type,proto3,enum=pbufregistry.v1.UserType" json:"type,omitempty"`
	// Whether the user is active
	IsActive bool `protobuf:"varint,4,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// When the user was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// When the user was last updated
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

User represents a user or bot in the system

func (*User) Descriptor deprecated added in v0.6.0

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt added in v0.6.0

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

func (*User) GetId added in v0.6.0

func (x *User) GetId() string

func (*User) GetIsActive added in v0.6.0

func (x *User) GetIsActive() bool

func (*User) GetName added in v0.6.0

func (x *User) GetName() string

func (*User) GetType added in v0.6.0

func (x *User) GetType() UserType

func (*User) GetUpdatedAt added in v0.6.0

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

func (*User) ProtoMessage added in v0.6.0

func (*User) ProtoMessage()

func (*User) ProtoReflect added in v0.6.0

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

func (*User) Reset added in v0.6.0

func (x *User) Reset()

func (*User) String added in v0.6.0

func (x *User) String() string

type UserServiceClient added in v0.6.0

type UserServiceClient interface {
	// Create a new user or bot
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	// List all users and bots
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	// Get a user or bot by ID
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	// Update a user or bot
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Delete a user or bot
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	// Regenerate a user or bot token
	RegenerateToken(ctx context.Context, in *RegenerateTokenRequest, opts ...grpc.CallOption) (*RegenerateTokenResponse, error)
	// Grant permission to a user or bot
	GrantPermission(ctx context.Context, in *GrantPermissionRequest, opts ...grpc.CallOption) (*GrantPermissionResponse, error)
	// Revoke permission from a user or bot
	RevokePermission(ctx context.Context, in *RevokePermissionRequest, opts ...grpc.CallOption) (*RevokePermissionResponse, error)
	// List permissions for a user or bot
	ListUserPermissions(ctx context.Context, in *ListUserPermissionsRequest, opts ...grpc.CallOption) (*ListUserPermissionsResponse, 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.

UserService manages users, bots, and their permissions

func NewUserServiceClient added in v0.6.0

func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient

type UserServiceServer added in v0.6.0

type UserServiceServer interface {
	// Create a new user or bot
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	// List all users and bots
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// Get a user or bot by ID
	GetUser(context.Context, *GetUserRequest) (*User, error)
	// Update a user or bot
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	// Delete a user or bot
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	// Regenerate a user or bot token
	RegenerateToken(context.Context, *RegenerateTokenRequest) (*RegenerateTokenResponse, error)
	// Grant permission to a user or bot
	GrantPermission(context.Context, *GrantPermissionRequest) (*GrantPermissionResponse, error)
	// Revoke permission from a user or bot
	RevokePermission(context.Context, *RevokePermissionRequest) (*RevokePermissionResponse, error)
	// List permissions for a user or bot
	ListUserPermissions(context.Context, *ListUserPermissionsRequest) (*ListUserPermissionsResponse, error)
	// contains filtered or unexported methods
}

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

UserService manages users, bots, and their permissions

type UserType added in v0.6.0

type UserType int32

UserType defines the type of user

const (
	UserType_USER_TYPE_UNSPECIFIED UserType = 0
	UserType_USER_TYPE_USER        UserType = 1
	UserType_USER_TYPE_BOT         UserType = 2
)

func (UserType) Descriptor added in v0.6.0

func (UserType) Descriptor() protoreflect.EnumDescriptor

func (UserType) Enum added in v0.6.0

func (x UserType) Enum() *UserType

func (UserType) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use UserType.Descriptor instead.

func (UserType) Number added in v0.6.0

func (x UserType) Number() protoreflect.EnumNumber

func (UserType) String added in v0.6.0

func (x UserType) String() string

func (UserType) Type added in v0.6.0

Jump to

Keyboard shortcuts

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