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.