manifest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 16 Imported by: ? 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

Overview

Package manifest implements the HTTP handler that returns the flag manifest of a flagset.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctrl

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

Ctrl is the controller of the manifest endpoint.

func NewManifest

func NewManifest(
	flagsetManager service.FlagSetResolver, metrics *metric.Metrics) *Ctrl

NewManifest returns the handler that serves the flag manifest of a flagset.

func (*Ctrl) GetManifest

func (m *Ctrl) GetManifest(ctx context.Context, in *Input) (*Output, error)

GetManifest returns the flags configured in Semaphore as an OpenFeature flag manifest: the active flags, the archived flags are excluded.

type Input added in v0.2.0

type Input struct {
	controller.Request
}

Input is the request of the manifest endpoint.

type Output added in v0.2.0

type Output struct {
	Capabilities string `header:"X-Manifest-Capabilities"`
	Body         model.ManifestSuccessResponse
}

Output is the response of the manifest endpoint.

Jump to

Keyboard shortcuts

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