controller

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	openapi.Error
	StatusCode int `json:"-"`
}

func (*APIError) Render

func (e *APIError) Render(_ http.ResponseWriter, r *http.Request) error

type Clock

type Clock interface {
	Now() time.Time
}

type HealthController

type HealthController struct{}

func NewHealthController

func NewHealthController() *HealthController

func (*HealthController) GetLiveness added in v0.1.2

func (c *HealthController) GetLiveness(w http.ResponseWriter, r *http.Request)

func (*HealthController) GetReadiness added in v0.1.2

func (c *HealthController) GetReadiness(w http.ResponseWriter, r *http.Request)

func (*HealthController) WireUp

func (c *HealthController) WireUp(_ context.Context, r chi.Router)

type MetricsController

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

func NewMetricsController

func NewMetricsController(
	gitHubClient *github.Client,
	gitHubAppID int64,
	gitHubAppInstallationID int64,
) *MetricsController

func (*MetricsController) WireUp

func (c *MetricsController) WireUp(_ context.Context, r chi.Router)

type ProfilerController

type ProfilerController struct{}

func NewProfilerController

func NewProfilerController() *ProfilerController

func (*ProfilerController) WireUp

func (c *ProfilerController) WireUp(_ context.Context, r chi.Router)

type SwaggerController

type SwaggerController struct {
}

func NewSwaggerController

func NewSwaggerController() *SwaggerController

func (*SwaggerController) WireUp

func (c *SwaggerController) WireUp(_ context.Context, r chi.Router)

type V1Controller

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

func NewV1Controller

func NewV1Controller(
	clock Clock,
	helmChartProvider *helm.ChartProvider,
	helmChartRenderer *helm.ChartRenderer,
	kustomizationProvider *kustomize.KustomizationProvider,
	kustomizationRenderer *kustomize.KustomizationRenderer,
) *V1Controller

func (*V1Controller) WireUp

func (c *V1Controller) WireUp(_ context.Context, r chi.Router)

Jump to

Keyboard shortcuts

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