krci

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitServerService

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

func NewGitServerService

func NewGitServerService(k8sClinet client.Client, namespace string) *GitServerService

func (*GitServerService) GitServerNames added in v0.8.0

func (g *GitServerService) GitServerNames(ctx context.Context) ([]string, error)

GitServerNames lists GitServer names in the namespace and caches each listed GitServer; reads no Secrets.

func (*GitServerService) Resolve added in v0.8.0

func (g *GitServerService) Resolve(
	ctx context.Context,
	name string,
	check func(gitProvider string) error,
) (GitServerSettings, error)

Resolve returns the settings of the named GitServer. Order: GitServer CR → check(gitProvider) → Secret + token. A GitServer that does not exist yields an error matching gferrors.ErrNotFound; a missing Secret does not. An error from check is returned unchanged and the Secret is not read.

type GitServerSettings

type GitServerSettings struct {
	Url           string
	Token         string
	GitProvider   string
	GitServerName string
}

Jump to

Keyboard shortcuts

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