server

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MPL-2.0 Imports: 19 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationsHandler added in v0.2.3

func NewApplicationsHandler(ctx context.Context, cfg *ApplicationsConfig, opts ...runtime.ServeMuxOption) (http.Handler, error)

NewApplicationsHandler allow for other applications to embed the Weave GitOps Applications HTTP API. This handler can be muxed with other services or used as a standalone service.

func NewApplicationsServer

func NewApplicationsServer(cfg *ApplicationsConfig) pb.ApplicationsServer

NewApplicationsServer creates a grpc Applications server

Types

type ApplicationsConfig added in v0.2.3

type ApplicationsConfig struct {
	Logger     logr.Logger
	KubeClient kube.Kube
}

An ApplicationsConfig allows for the customization of an ApplicationsServer. Use the DefaultConfig() to use the default dependencies.

func DefaultConfig added in v0.2.3

func DefaultConfig() (*ApplicationsConfig, error)

DefaultConfig creates a populated config with the dependencies for an ApplicationsServer

Jump to

Keyboard shortcuts

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