server

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAuthInput

type BaseAuthInput struct {
	Authorization string `header:"Authorization" doc:"Bearer token" required:"true"`
}

BaseAuthInput can be used when no input is needed and the user must be authenticated.

type DeletedResponse

type DeletedResponse struct {
	ID      string `json:"id"`
	Deleted bool   `json:"deleted"`
}

DeletedResponse is used to return a deleted response.

type EmptyInput

type EmptyInput struct{}

EmptyInput can be used when no input is needed.

type Server

type Server struct {
	KubeClient           *k8s.KubeClient
	Cfg                  *config.Config
	GithubClient         *github.GithubClient
	Repository           repositories.RepositoriesInterface
	StringCache          *cache.RedisCache[string]
	HttpClient           *http.Client
	DeploymentController *deployctl.DeploymentController
	DatabaseProvider     *databases.DatabaseProvider
	DNSChecker           *utils.DNSChecker
	OauthConfig          *oauth2.Config
	UpdateManager        *updater.Updater
	// Services
	TeamService         *team_service.TeamService
	ProjectService      *project_service.ProjectService
	ServiceService      *service_service.ServiceService
	EnvironmentService  *environment_service.EnvironmentService
	LogService          *logs_service.LogsService
	DeploymentService   *deployments_service.DeploymentService
	SystemService       *system_service.SystemService
	MetricsService      *metric_service.MetricsService
	WebhooksService     *webhooks_service.WebhooksService
	InstanceService     *instance_service.InstanceService
	VariablesService    *variables_service.VariablesService
	StorageService      *storage_service.StorageService
	TemplateService     *template_service.TemplatesService
	ServiceGroupService *servicegroup_service.ServiceGroupService
}

Server implements generated.ServerInterface

func (*Server) GetUserFromContext

func (self *Server) GetUserFromContext(ctx context.Context) (user *ent.User, found bool)

Jump to

Keyboard shortcuts

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