server

package
v0.5.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MPL-2.0 Imports: 49 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
	Factory          services.Factory
	JwtClient        auth.JWTClient
	KubeClient       client.Client
	GithubAuthClient auth.GithubAuthClient
	Fetcher          applicationv2.Fetcher
	GitlabAuthClient auth.GitlabAuthClient
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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