manager exposes renderer + secrets manager (#54629)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package rendering
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"github.com/Masterminds/semver"
|
||||
@@ -22,8 +23,8 @@ const (
|
||||
var ErrUnknownCapability = errors.New("unknown capability")
|
||||
var ErrInvalidPluginVersion = errors.New("invalid plugin version")
|
||||
|
||||
func (rs *RenderingService) HasCapability(capability CapabilityName) (CapabilitySupportRequestResult, error) {
|
||||
if !rs.IsAvailable() {
|
||||
func (rs *RenderingService) HasCapability(ctx context.Context, capability CapabilityName) (CapabilitySupportRequestResult, error) {
|
||||
if !rs.IsAvailable(ctx) {
|
||||
return CapabilitySupportRequestResult{IsSupported: false, SemverConstraint: ""}, ErrRenderUnavailable
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user