apputils

package
v0.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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, namespace string) (app.AppService, error)

func GetAppServiceForAdd

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

func GetBaseClients

func GetBaseClients() (osys.Osys, flux.Flux, kube.Kube, logger.Logger, error)

func GetLogger

func GetLogger() logger.Logger

func IsClusterReady

func IsClusterReady() error

Types

type AppFactory

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

type DefaultAppFactory

type DefaultAppFactory struct {
}

func (*DefaultAppFactory) GetAppService

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

func (*DefaultAppFactory) GetKubeService

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

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