server

package
v0.8.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MPL-2.0 Imports: 39 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FluxNamespacePartOf = "flux"
)

Variables

View Source
var (
	KustomizeNameKey      = fmt.Sprintf("%s/name", kustomizev1.GroupVersion.Group)
	KustomizeNamespaceKey = fmt.Sprintf("%s/namespace", kustomizev1.GroupVersion.Group)
	HelmNameKey           = fmt.Sprintf("%s/name", helmv2.GroupVersion.Group)
	HelmNamespaceKey      = fmt.Sprintf("%s/namespace", helmv2.GroupVersion.Group)

	// ErrFluxNamespaceNotFound no flux namespace found
	ErrFluxNamespaceNotFound = errors.New("could not find flux namespace in cluster")
	// ErrListingDeployments no deployments found
	ErrListingDeployments = errors.New("could not list deployments in namespace")
)
View Source
var (
	Version   = "v0.0.0"
	GitCommit = ""
	Branch    = ""
	Buildtime = ""
)

Variables that we'll set @ build time

Functions

func Hydrate

func Hydrate(ctx context.Context, mux *runtime.ServeMux, cfg CoreServerConfig) error

func NewCoreServer

func NewCoreServer(cfg CoreServerConfig, setters ...CoreOption) (pb.CoreServer, error)

Types

type ClientGetterFn

type ClientGetterFn func(ctx context.Context) clustersmngr.Client

type CoreOption added in v0.8.1

type CoreOption func(*CoreOptions)

CoreOption defines the signature of a function that can be used to set an option for an CoreServer.

func WithClientGetter added in v0.8.1

func WithClientGetter(clientGetter kube.ClientGetter) CoreOption

WithClientGetter allows for setting a ClientGetter.

type CoreOptions added in v0.8.1

type CoreOptions struct {
	ClientGetter kube.ClientGetter
}

CoreOptions includes all the options that can be set for an CoreServer.

type CoreServerConfig

type CoreServerConfig struct {
	RestCfg *rest.Config

	NSAccess       nsaccess.Checker
	ClientsFactory clustersmngr.ClientsFactory
	// contains filtered or unexported fields
}

func NewCoreConfig

func NewCoreConfig(log logr.Logger, cfg *rest.Config, clusterName string, clusterClientFactory clustersmngr.ClientsFactory) CoreServerConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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