server

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MPL-2.0 Imports: 46 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyAccessToken = errors.New("access token is empty")
	ErrBadProvider      = errors.New("wrong provider name")
)
View Source
var (
	KustomizeNameKey      = fmt.Sprintf("%s/name", kustomizev2.GroupVersion.Group)
	KustomizeNamespaceKey = fmt.Sprintf("%s/namespace", kustomizev2.GroupVersion.Group)
	HelmNameKey           = fmt.Sprintf("%s/name", helmv2.GroupVersion.Group)
	HelmNamespaceKey      = fmt.Sprintf("%s/namespace", helmv2.GroupVersion.Group)
)

Flux owner labels

Functions

func MatchGRPCError added in v0.2.5

func MatchGRPCError(code interface{}, err interface{}) types.GomegaMatcher

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 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
	AppFactory       apputils.ServerAppFactory
	JwtClient        auth.JWTClient
	KubeClient       client.Client
	GithubAuthClient auth.GithubAuthClient
	Fetcher          applicationv2.Fetcher
}

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 a Server

Jump to

Keyboard shortcuts

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