services

package
v0.5.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MPL-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	GetKubeService() (kube.Kube, error)
	GetAppService(ctx context.Context) (app.AppService, error)
	GetGitClients(ctx context.Context, gpClient gitproviders.Client, params GitConfigParams) (git.Git, gitproviders.GitProvider, error)
}

Factory provides helpers for generating various WeGO service objects at runtime.

func NewFactory

func NewFactory(fluxClient flux.Flux, log logger.Logger) Factory

func NewServerFactory

func NewServerFactory(fluxClient flux.Flux, log logger.Logger, rest *rest.Config, clusterName string) Factory

type GitConfigParams

type GitConfigParams struct {
	URL              string
	ConfigURL        string
	Namespace        string
	IsHelmRepository bool
	DryRun           bool
}

func NewGitConfigParamsFromApp

func NewGitConfigParamsFromApp(app *wego.Application, dryRun bool) GitConfigParams

Directories

Path Synopsis
applicationv2fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
authfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
types/typesfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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