groupsuffix

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 12 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

Examples

Constants

View Source
const (
	PinnipedDefaultSuffix = "pinniped.dev"
)

Variables

This section is empty.

Functions

func New

func New(apiGroupSuffix string) kubeclient.Middleware

func Replace

func Replace(baseAPIGroup, apiGroupSuffix string) (string, bool)

Replace constructs an API group from a baseAPIGroup and a parameterized apiGroupSuffix.

We assume that all baseAPIGroup's will end in "pinniped.dev", and therefore we can safely replace the reference to "pinniped.dev" with the provided apiGroupSuffix. If the provided baseAPIGroup does not end in "pinniped.dev", then this function will return an empty string and false.

See ExampleReplace_loginv1alpha1 and ExampleReplace_string for more information on input/output pairs.

Example (Loginv1alpha1)
s, _ := Replace(loginv1alpha1.GroupName, "tuna.fish.io")
fmt.Println(s)
Output:
login.concierge.tuna.fish.io
Example (String)
s, _ := Replace("idp.supervisor.pinniped.dev", "marlin.io")
fmt.Println(s)
Output:
idp.supervisor.marlin.io

func Unreplace

func Unreplace(baseAPIGroup, apiGroupSuffix string) (string, bool)

Unreplace is like performing an undo of Replace().

func Validate

func Validate(apiGroupSuffix string) error

Validate validates the provided apiGroupSuffix is usable as an API group suffix. Specifically, it makes sure that the provided apiGroupSuffix is a valid DNS-1123 subdomain with at least one dot, to match Kubernetes behavior.

Types

type GroupData added in v0.7.0

type GroupData schema.GroupVersion

func ConciergeAggregatedGroups added in v0.7.0

func ConciergeAggregatedGroups(apiGroupSuffix string) (login, identity GroupData)

func SupervisorAggregatedGroups added in v0.20.0

func SupervisorAggregatedGroups(apiGroupSuffix string) (clientSecret GroupData)

func (GroupData) APIServiceName added in v0.7.0

func (d GroupData) APIServiceName() string

Jump to

Keyboard shortcuts

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