server

package
v0.3.3-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MPL-2.0 Imports: 37 Imported by: 3

Documentation

Index

Constants

View Source
const KustomizeNameKey string = "kustomize.toolkit.fluxcd.io/name"
View Source
const KustomizeNamespaceKey string = "kustomize.toolkit.fluxcd.io/namespace"

Variables

View Source
var ErrBadProvider = errors.New("wrong provider name")
View Source
var ErrEmptyAccessToken = fmt.Errorf("access token is empty")

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
}

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