apputils

package
v0.3.3-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppService

func GetAppService(ctx context.Context, appName string, namespace string) (app.AppService, error)

func GetAppServiceForAdd

func GetAppServiceForAdd(ctx context.Context, url, configUrl, namespace string, isHelmRepository bool, dryRun bool) (app.AppService, error)

func GetAuthService added in v0.3.2

func GetAuthService(ctx context.Context, normalizedUrl gitproviders.RepoURL, dryRun bool) (auth.AuthService, error)

func GetLogger

func GetLogger() logger.Logger

func IsClusterReady

func IsClusterReady() error

Types

type AppClients added in v0.3.2

type AppClients struct {
	Osys   osys.Osys
	Flux   flux.Flux
	Kube   kube.Kube
	Logger logger.Logger
}

func GetBaseClients

func GetBaseClients() (AppClients, error)

type AppFactory

type AppFactory interface {
	GetKubeService() (kube.Kube, error)
	GetAppService(ctx context.Context, name, namespace string) (app.AppService, error)
	GetAppServiceForAdd(ctx context.Context, params AppServiceParams) (app.AppService, error)
}

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

type AppServiceParams added in v0.3.1

type AppServiceParams struct {
	URL              string
	ConfigURL        string
	Namespace        string
	IsHelmRepository bool
	DryRun           bool
	Token            string
}

type DefaultAppFactory

type DefaultAppFactory struct {
}

func (*DefaultAppFactory) GetAppService

func (f *DefaultAppFactory) GetAppService(ctx context.Context, name, namespace string) (app.AppService, error)

func (*DefaultAppFactory) GetAppServiceForAdd added in v0.3.1

func (f *DefaultAppFactory) GetAppServiceForAdd(ctx context.Context, params AppServiceParams) (app.AppService, error)

func (*DefaultAppFactory) GetKubeService

func (f *DefaultAppFactory) GetKubeService() (kube.Kube, error)

type ServerAppFactory added in v0.3.1

type ServerAppFactory interface {
	GetKubeService() (kube.Kube, error)
	GetAppService(ctx context.Context, params AppServiceParams) (app.AppService, error)
}

func NewServerAppFactory added in v0.3.1

func NewServerAppFactory(k client.Client, l logger.Logger) ServerAppFactory

Directories

Path Synopsis
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