server

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 27 Imported by: 0

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