Documentation ¶
Index ¶
- Variables
- func MatchGRPCError(code interface{}, err interface{}) types.GomegaMatcher
- func NewApplicationsHandler(ctx context.Context, cfg *ApplicationsConfig, opts ...runtime.ServeMuxOption) (http.Handler, error)
- func NewApplicationsServer(cfg *ApplicationsConfig) pb.ApplicationsServer
- type ApplicationsConfig
Constants ¶
This section is empty.
Variables ¶
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
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
Click to show internal directories.
Click to hide internal directories.