ophelia_ci

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

README

Ophelia CI

License Docker Pulls

Ophelia CI is an open-source Git server that allows teams to host and manage their own Git repositories. It provides a comprehensive solution with a server, a CLI client, and a graphical web interface.

Features

  • Self-Hosted Git Server: Host your own Git server on your infrastructure.
  • Multi-Platform Support: Available as .deb, .snap, .rock packages, and Docker images for the server and CLI. The web interface is available as .deb, .snap, .rock, .AppImage, .flatpak and Docker.
  • Command-Line Interface (CLI): Manage repositories efficiently from the command line.
  • Web Interface: An intuitive web interface for easy repository management.
  • Open Source: Released under the GPLv3 License.
  • Coming Soon: Integrated CI/CD: Plan to add a built-in CI tool with YAML workflow support.

Components

  • Ophelia Server: A Linux daemon written in Go, responsible for managing Git repositories.
  • Ophelia CLI: A command-line client written in Go for interacting with the Ophelia Server.
  • Ophelia Web: A graphical web interface built with Python and FastAPI for user-friendly repository management.

Installation

Docker
  • Server:

    docker pull edmilsonrodrigues/ophelia-server
    docker run -d -p 50051:50051 edmilsonrodrigues/ophelia-server
    
  • Web Interface:

    docker pull edmilsonrodrigues/ophelia-web
    docker run -d -p 8000:8000 edmilsonrodrigues/ophelia-web
    
Package Managers
  • .deb, .snap, .rock, .AppImage, .flatpak:

    Download the appropriate package from the releases page and install it using your system's package manager.

    Example for .deb:

    sudo dpkg -i ophelia-server.deb
    

    (Replace ophelia-server.deb with the actual file name.)

    Example for snap:

    sudo snap install ophelia-server.snap
    

    (Replace ophelia-server.snap with the actual file name.)

    Follow similar procedures for other package types.

Usage

  • Server:

    The server runs as a daemon. Refer to the server's documentation for configuration options.

  • CLI:

    Use the ophelia-cli command followed by the desired subcommands. Refer to the CLI's documentation for command details.

  • Web Interface:

    Access the web interface in your browser at http://localhost:8000 (or the port you configured).

Roadmap

  • Continuous Integration (CI): Implement a CI tool with YAML workflow support for automated testing and deployment.
  • Enhanced Web Interface: Add more features and improve the user experience of the web interface.
  • Improved Security: Strengthen the security of the server and web interface.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the GPLv3 License.

Contact

For questions and support, please open an issue or contact edmilon.monteiro.rodrigues@gmail.com.

Documentation

Index

Constants

View Source
const (
	RepositoryService_CreateRepository_FullMethodName = "/repository.RepositoryService/CreateRepository"
	RepositoryService_UpdateRepository_FullMethodName = "/repository.RepositoryService/UpdateRepository"
	RepositoryService_ListRepository_FullMethodName   = "/repository.RepositoryService/ListRepository"
	RepositoryService_GetRepository_FullMethodName    = "/repository.RepositoryService/GetRepository"
	RepositoryService_DeleteRepository_FullMethodName = "/repository.RepositoryService/DeleteRepository"
)
View Source
const (
	AuthService_AuthenticationChallenge_FullMethodName = "/user.AuthService/AuthenticationChallenge"
	AuthService_Authentication_FullMethodName          = "/user.AuthService/Authentication"
	AuthService_UniqueKeyLogin_FullMethodName          = "/user.AuthService/UniqueKeyLogin"
)
View Source
const (
	UserService_CreateUser_FullMethodName = "/user.UserService/CreateUser"
	UserService_UpdateUser_FullMethodName = "/user.UserService/UpdateUser"
	UserService_ListUser_FullMethodName   = "/user.UserService/ListUser"
	UserService_GetUser_FullMethodName    = "/user.UserService/GetUser"
	UserService_DeleteUser_FullMethodName = "/user.UserService/DeleteUser"
)
View Source
const (
	HealthService_Health_FullMethodName = "/health.HealthService/Health"
)
View Source
const (
	Signals_CommitSignal_FullMethodName = "/signal.Signals/CommitSignal"
)

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AuthenticationChallenge",
			Handler:    _AuthService_AuthenticationChallenge_Handler,
		},
		{
			MethodName: "Authentication",
			Handler:    _AuthService_Authentication_Handler,
		},
		{
			MethodName: "UniqueKeyLogin",
			Handler:    _AuthService_UniqueKeyLogin_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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_common_proto protoreflect.FileDescriptor
View Source
var File_health_proto protoreflect.FileDescriptor
View Source
var File_repository_proto protoreflect.FileDescriptor
View Source
var File_signal_proto protoreflect.FileDescriptor
View Source
var HealthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "health.HealthService",
	HandlerType: (*HealthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Health",
			Handler:    _HealthService_Health_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "health.proto",
}

HealthService_ServiceDesc is the grpc.ServiceDesc for HealthService 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 RepositoryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "repository.RepositoryService",
	HandlerType: (*RepositoryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRepository",
			Handler:    _RepositoryService_CreateRepository_Handler,
		},
		{
			MethodName: "UpdateRepository",
			Handler:    _RepositoryService_UpdateRepository_Handler,
		},
		{
			MethodName: "ListRepository",
			Handler:    _RepositoryService_ListRepository_Handler,
		},
		{
			MethodName: "GetRepository",
			Handler:    _RepositoryService_GetRepository_Handler,
		},
		{
			MethodName: "DeleteRepository",
			Handler:    _RepositoryService_DeleteRepository_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "repository.proto",
}

RepositoryService_ServiceDesc is the grpc.ServiceDesc for RepositoryService 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 Signals_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "signal.Signals",
	HandlerType: (*SignalsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CommitSignal",
			Handler:    _Signals_CommitSignal_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "signal.proto",
}

Signals_ServiceDesc is the grpc.ServiceDesc for Signals 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: "user.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "ListUser",
			Handler:    _UserService_ListUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user.proto",
}

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

Functions

func CheckRunningFromImage

func CheckRunningFromImage() bool

func LoadConfigFromFile

func LoadConfigFromFile[CT any](configFile string, config CT) (CT, error)

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterHealthServiceServer

func RegisterHealthServiceServer(s grpc.ServiceRegistrar, srv HealthServiceServer)

func RegisterRepositoryServiceServer

func RegisterRepositoryServiceServer(s grpc.ServiceRegistrar, srv RepositoryServiceServer)

func RegisterSignalsServer

func RegisterSignalsServer(s grpc.ServiceRegistrar, srv SignalsServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

func SaveConfig

func SaveConfig[CT any](configFile string, config CT) (err error)

Types

type AuthServiceClient

type AuthServiceClient interface {
	AuthenticationChallenge(ctx context.Context, in *AuthenticationChallengeRequest, opts ...grpc.CallOption) (*AuthenticationChallengeResponse, error)
	Authentication(ctx context.Context, in *AuthenticationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
	UniqueKeyLogin(ctx context.Context, in *UniqueKeyLoginRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	AuthenticationChallenge(context.Context, *AuthenticationChallengeRequest) (*AuthenticationChallengeResponse, error)
	Authentication(context.Context, *AuthenticationRequest) (*AuthenticationResponse, error)
	UniqueKeyLogin(context.Context, *UniqueKeyLoginRequest) (*AuthenticationResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility.

type AuthenticationChallengeRequest

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

func (*AuthenticationChallengeRequest) Descriptor deprecated

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

Deprecated: Use AuthenticationChallengeRequest.ProtoReflect.Descriptor instead.

func (*AuthenticationChallengeRequest) GetUsername

func (x *AuthenticationChallengeRequest) GetUsername() string

func (*AuthenticationChallengeRequest) ProtoMessage

func (*AuthenticationChallengeRequest) ProtoMessage()

func (*AuthenticationChallengeRequest) ProtoReflect

func (*AuthenticationChallengeRequest) Reset

func (x *AuthenticationChallengeRequest) Reset()

func (*AuthenticationChallengeRequest) String

type AuthenticationChallengeResponse

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

func (*AuthenticationChallengeResponse) Descriptor deprecated

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

Deprecated: Use AuthenticationChallengeResponse.ProtoReflect.Descriptor instead.

func (*AuthenticationChallengeResponse) GetChallenge

func (x *AuthenticationChallengeResponse) GetChallenge() string

func (*AuthenticationChallengeResponse) ProtoMessage

func (*AuthenticationChallengeResponse) ProtoMessage()

func (*AuthenticationChallengeResponse) ProtoReflect

func (*AuthenticationChallengeResponse) Reset

func (*AuthenticationChallengeResponse) String

type AuthenticationRequest

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

func (*AuthenticationRequest) Descriptor deprecated

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

Deprecated: Use AuthenticationRequest.ProtoReflect.Descriptor instead.

func (*AuthenticationRequest) GetChallenge

func (x *AuthenticationRequest) GetChallenge() string

func (*AuthenticationRequest) GetUsername

func (x *AuthenticationRequest) GetUsername() string

func (*AuthenticationRequest) ProtoMessage

func (*AuthenticationRequest) ProtoMessage()

func (*AuthenticationRequest) ProtoReflect

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

func (*AuthenticationRequest) Reset

func (x *AuthenticationRequest) Reset()

func (*AuthenticationRequest) String

func (x *AuthenticationRequest) String() string

type AuthenticationResponse

type AuthenticationResponse struct {
	Authenticated bool   `protobuf:"varint,1,opt,name=authenticated,proto3" json:"authenticated,omitempty"`
	Token         string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationResponse) Descriptor deprecated

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

Deprecated: Use AuthenticationResponse.ProtoReflect.Descriptor instead.

func (*AuthenticationResponse) GetAuthenticated

func (x *AuthenticationResponse) GetAuthenticated() bool

func (*AuthenticationResponse) GetToken

func (x *AuthenticationResponse) GetToken() string

func (*AuthenticationResponse) ProtoMessage

func (*AuthenticationResponse) ProtoMessage()

func (*AuthenticationResponse) ProtoReflect

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

func (*AuthenticationResponse) Reset

func (x *AuthenticationResponse) Reset()

func (*AuthenticationResponse) String

func (x *AuthenticationResponse) String() string

type CommitRequest

type CommitRequest struct {
	CommitHash string `protobuf:"bytes,1,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
	Branch     string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	Repository string `protobuf:"bytes,3,opt,name=repository,proto3" json:"repository,omitempty"`
	Tag        string `protobuf:"bytes,4,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitRequest) Descriptor deprecated

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

Deprecated: Use CommitRequest.ProtoReflect.Descriptor instead.

func (*CommitRequest) GetBranch

func (x *CommitRequest) GetBranch() string

func (*CommitRequest) GetCommitHash

func (x *CommitRequest) GetCommitHash() string

func (*CommitRequest) GetRepository

func (x *CommitRequest) GetRepository() string

func (*CommitRequest) GetTag

func (x *CommitRequest) GetTag() string

func (*CommitRequest) ProtoMessage

func (*CommitRequest) ProtoMessage()

func (*CommitRequest) ProtoReflect

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

func (*CommitRequest) Reset

func (x *CommitRequest) Reset()

func (*CommitRequest) String

func (x *CommitRequest) String() string

type CreateRepositoryRequest

type CreateRepositoryRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Gitignore   string `protobuf:"bytes,3,opt,name=gitignore,proto3" json:"gitignore,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRepositoryRequest) Descriptor deprecated

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

Deprecated: Use CreateRepositoryRequest.ProtoReflect.Descriptor instead.

func (*CreateRepositoryRequest) GetDescription

func (x *CreateRepositoryRequest) GetDescription() string

func (*CreateRepositoryRequest) GetGitignore

func (x *CreateRepositoryRequest) GetGitignore() string

func (*CreateRepositoryRequest) GetName

func (x *CreateRepositoryRequest) GetName() string

func (*CreateRepositoryRequest) ProtoMessage

func (*CreateRepositoryRequest) ProtoMessage()

func (*CreateRepositoryRequest) ProtoReflect

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

func (*CreateRepositoryRequest) Reset

func (x *CreateRepositoryRequest) Reset()

func (*CreateRepositoryRequest) String

func (x *CreateRepositoryRequest) String() string

type CreateUserRequest

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

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetPublicKey

func (x *CreateUserRequest) GetPublicKey() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type DeleteRepositoryRequest

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

func (*DeleteRepositoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteRepositoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteRepositoryRequest) GetId

func (x *DeleteRepositoryRequest) GetId() string

func (*DeleteRepositoryRequest) ProtoMessage

func (*DeleteRepositoryRequest) ProtoMessage()

func (*DeleteRepositoryRequest) ProtoReflect

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

func (*DeleteRepositoryRequest) Reset

func (x *DeleteRepositoryRequest) Reset()

func (*DeleteRepositoryRequest) String

func (x *DeleteRepositoryRequest) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetRepositoryRequest

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

func (*GetRepositoryRequest) Descriptor deprecated

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

Deprecated: Use GetRepositoryRequest.ProtoReflect.Descriptor instead.

func (*GetRepositoryRequest) GetId

func (x *GetRepositoryRequest) GetId() string

func (*GetRepositoryRequest) GetName

func (x *GetRepositoryRequest) GetName() string

func (*GetRepositoryRequest) ProtoMessage

func (*GetRepositoryRequest) ProtoMessage()

func (*GetRepositoryRequest) ProtoReflect

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

func (*GetRepositoryRequest) Reset

func (x *GetRepositoryRequest) Reset()

func (*GetRepositoryRequest) String

func (x *GetRepositoryRequest) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) GetUsername

func (x *GetUserRequest) GetUsername() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type HealthServiceClient

type HealthServiceClient interface {
	Health(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

HealthServiceClient is the client API for HealthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type HealthServiceServer

type HealthServiceServer interface {
	Health(context.Context, *Empty) (*Empty, error)
	// contains filtered or unexported methods
}

HealthServiceServer is the server API for HealthService service. All implementations must embed UnimplementedHealthServiceServer for forward compatibility.

type ListRepositoryResponse

type ListRepositoryResponse struct {
	Repositories []*RepositoryResponse `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRepositoryResponse) Descriptor deprecated

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

Deprecated: Use ListRepositoryResponse.ProtoReflect.Descriptor instead.

func (*ListRepositoryResponse) GetRepositories

func (x *ListRepositoryResponse) GetRepositories() []*RepositoryResponse

func (*ListRepositoryResponse) ProtoMessage

func (*ListRepositoryResponse) ProtoMessage()

func (*ListRepositoryResponse) ProtoReflect

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

func (*ListRepositoryResponse) Reset

func (x *ListRepositoryResponse) Reset()

func (*ListRepositoryResponse) String

func (x *ListRepositoryResponse) String() string

type ListUserResponse

type ListUserResponse struct {
	Users []*UserResponse `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserResponse) Descriptor deprecated

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

Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.

func (*ListUserResponse) GetUsers

func (x *ListUserResponse) GetUsers() []*UserResponse

func (*ListUserResponse) ProtoMessage

func (*ListUserResponse) ProtoMessage()

func (*ListUserResponse) ProtoReflect

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

func (*ListUserResponse) Reset

func (x *ListUserResponse) Reset()

func (*ListUserResponse) String

func (x *ListUserResponse) String() string

type RepositoryResponse

type RepositoryResponse struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	LastUpdate  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
	// contains filtered or unexported fields
}

func (*RepositoryResponse) Descriptor deprecated

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

Deprecated: Use RepositoryResponse.ProtoReflect.Descriptor instead.

func (*RepositoryResponse) GetDescription

func (x *RepositoryResponse) GetDescription() string

func (*RepositoryResponse) GetId

func (x *RepositoryResponse) GetId() string

func (*RepositoryResponse) GetLastUpdate

func (x *RepositoryResponse) GetLastUpdate() *timestamppb.Timestamp

func (*RepositoryResponse) GetName

func (x *RepositoryResponse) GetName() string

func (*RepositoryResponse) ProtoMessage

func (*RepositoryResponse) ProtoMessage()

func (*RepositoryResponse) ProtoReflect

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

func (*RepositoryResponse) Reset

func (x *RepositoryResponse) Reset()

func (*RepositoryResponse) String

func (x *RepositoryResponse) String() string

type RepositoryServiceClient

type RepositoryServiceClient interface {
	CreateRepository(ctx context.Context, in *CreateRepositoryRequest, opts ...grpc.CallOption) (*RepositoryResponse, error)
	UpdateRepository(ctx context.Context, in *UpdateRepositoryRequest, opts ...grpc.CallOption) (*RepositoryResponse, error)
	ListRepository(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListRepositoryResponse, error)
	GetRepository(ctx context.Context, in *GetRepositoryRequest, opts ...grpc.CallOption) (*RepositoryResponse, error)
	DeleteRepository(ctx context.Context, in *DeleteRepositoryRequest, opts ...grpc.CallOption) (*Empty, error)
}

RepositoryServiceClient is the client API for RepositoryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type RepositoryServiceServer

type RepositoryServiceServer interface {
	CreateRepository(context.Context, *CreateRepositoryRequest) (*RepositoryResponse, error)
	UpdateRepository(context.Context, *UpdateRepositoryRequest) (*RepositoryResponse, error)
	ListRepository(context.Context, *Empty) (*ListRepositoryResponse, error)
	GetRepository(context.Context, *GetRepositoryRequest) (*RepositoryResponse, error)
	DeleteRepository(context.Context, *DeleteRepositoryRequest) (*Empty, error)
	// contains filtered or unexported methods
}

RepositoryServiceServer is the server API for RepositoryService service. All implementations must embed UnimplementedRepositoryServiceServer for forward compatibility.

type SignalsClient

type SignalsClient interface {
	CommitSignal(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*Empty, error)
}

SignalsClient is the client API for Signals 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.

func NewSignalsClient

func NewSignalsClient(cc grpc.ClientConnInterface) SignalsClient

type SignalsServer

type SignalsServer interface {
	CommitSignal(context.Context, *CommitRequest) (*Empty, error)
	// contains filtered or unexported methods
}

SignalsServer is the server API for Signals service. All implementations must embed UnimplementedSignalsServer for forward compatibility.

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct{}

UnimplementedAuthServiceServer 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 (UnimplementedAuthServiceServer) Authentication

func (UnimplementedAuthServiceServer) UniqueKeyLogin

type UnimplementedHealthServiceServer

type UnimplementedHealthServiceServer struct{}

UnimplementedHealthServiceServer 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 (UnimplementedHealthServiceServer) Health

type UnimplementedRepositoryServiceServer

type UnimplementedRepositoryServiceServer struct{}

UnimplementedRepositoryServiceServer 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 (UnimplementedRepositoryServiceServer) CreateRepository

func (UnimplementedRepositoryServiceServer) DeleteRepository

func (UnimplementedRepositoryServiceServer) GetRepository

func (UnimplementedRepositoryServiceServer) ListRepository

func (UnimplementedRepositoryServiceServer) UpdateRepository

type UnimplementedSignalsServer

type UnimplementedSignalsServer struct{}

UnimplementedSignalsServer 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 (UnimplementedSignalsServer) CommitSignal

type UnimplementedUserServiceServer

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

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUser

func (UnimplementedUserServiceServer) UpdateUser

type UniqueKeyLoginRequest

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

func (*UniqueKeyLoginRequest) Descriptor deprecated

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

Deprecated: Use UniqueKeyLoginRequest.ProtoReflect.Descriptor instead.

func (*UniqueKeyLoginRequest) GetUniqueKey

func (x *UniqueKeyLoginRequest) GetUniqueKey() string

func (*UniqueKeyLoginRequest) ProtoMessage

func (*UniqueKeyLoginRequest) ProtoMessage()

func (*UniqueKeyLoginRequest) ProtoReflect

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

func (*UniqueKeyLoginRequest) Reset

func (x *UniqueKeyLoginRequest) Reset()

func (*UniqueKeyLoginRequest) String

func (x *UniqueKeyLoginRequest) String() string

type UnsafeAuthServiceServer

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

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

type UnsafeHealthServiceServer

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

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

type UnsafeRepositoryServiceServer

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

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

type UnsafeSignalsServer

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

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

type UnsafeUserServiceServer

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

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

type UpdateRepositoryRequest

type UpdateRepositoryRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRepositoryRequest) Descriptor deprecated

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

Deprecated: Use UpdateRepositoryRequest.ProtoReflect.Descriptor instead.

func (*UpdateRepositoryRequest) GetDescription

func (x *UpdateRepositoryRequest) GetDescription() string

func (*UpdateRepositoryRequest) GetId

func (x *UpdateRepositoryRequest) GetId() string

func (*UpdateRepositoryRequest) GetName

func (x *UpdateRepositoryRequest) GetName() string

func (*UpdateRepositoryRequest) ProtoMessage

func (*UpdateRepositoryRequest) ProtoMessage()

func (*UpdateRepositoryRequest) ProtoReflect

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

func (*UpdateRepositoryRequest) Reset

func (x *UpdateRepositoryRequest) Reset()

func (*UpdateRepositoryRequest) String

func (x *UpdateRepositoryRequest) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username  string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	PublicKey string `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() string

func (*UpdateUserRequest) GetPublicKey

func (x *UpdateUserRequest) GetPublicKey() string

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UserResponse

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

func (*UserResponse) Descriptor deprecated

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

Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.

func (*UserResponse) GetId

func (x *UserResponse) GetId() string

func (*UserResponse) GetUsername

func (x *UserResponse) GetUsername() string

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) ProtoReflect

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

func (*UserResponse) Reset

func (x *UserResponse) Reset()

func (*UserResponse) String

func (x *UserResponse) String() string

type UserServiceClient

type UserServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	ListUser(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListUserResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*Empty, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	CreateUser(context.Context, *CreateUserRequest) (*UserResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UserResponse, error)
	ListUser(context.Context, *Empty) (*ListUserResponse, error)
	GetUser(context.Context, *GetUserRequest) (*UserResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*Empty, error)
	// contains filtered or unexported methods
}

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

Directories

Path Synopsis
git

Jump to

Keyboard shortcuts

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