Documentation ¶
Index ¶
- Constants
- func ServiceInstanceExternalIDIndexFunc(obj interface{}) ([]string, error)
- type API
- type Action
- type Controller
- type Info
- type OpenAPISpec
- type PathDefinition
- type Provider
- func (p *Provider) Name() string
- func (p *Provider) OwnsPlan(planID string) bool
- func (p *Provider) ProxyRequest(asapConfig pkiutil.ASAP, w http.ResponseWriter, r *http.Request, uri string)
- func (Provider) Render(w http.ResponseWriter, r *http.Request) error
- func (p *Provider) ReportAction() string
- func (p *Provider) Request(asapConfig pkiutil.ASAP, r *http.Request, uri string, user string) (*http.Response, error)
- type ProviderInterface
- type ProviderResponse
- type RouteAPI
- type Server
Constants ¶
View Source
const (
ServiceInstanceExternalIDIndex = "serviceInstanceExternalID"
)
Variables ¶
This section is empty.
Functions ¶
func ServiceInstanceExternalIDIndexFunc ¶
ServiceInstanceExternalIDIndexFunc indexes based on a ServiceInstance's externalID
Types ¶
type API ¶
type API struct { Providers map[string]ProviderInterface ProviderLock sync.RWMutex ASAPConfig pkiutil.ASAP // contains filtered or unexported fields }
func NewOpsAPI ¶
func NewOpsAPI(logger *zap.Logger, asapConfig pkiutil.ASAP, router *chi.Mux, registry prometheus.Registerer, instanceInf cache.SharedIndexInformer) (*API, error)
func (*API) AddOrUpdateProvider ¶
func (o *API) AddOrUpdateProvider(p ProviderInterface)
func (*API) GetProvider ¶
func (o *API) GetProvider(name string) (ProviderInterface, error)
func (*API) RemoveProvider ¶
type Controller ¶
type Controller struct { Logger *zap.Logger ReadyForWork func() RouteInformer cache.SharedIndexInformer API RouteAPI }
func (*Controller) Process ¶
func (c *Controller) Process(ctx *ctrl.ProcessContext) (externalErr bool, retriable bool, err error)
func (*Controller) Run ¶
func (c *Controller) Run(ctx context.Context)
Run begins watching and syncing.
type OpenAPISpec ¶
type OpenAPISpec struct { OpenAPI string `json:"openapi"` Info Info `json:"info,omitempty"` Servers []Server `json:"servers,omitempty"` Paths map[string]interface{} `json:"paths"` }
Temporary until we find a stable OpenApi3 spec library
type PathDefinition ¶
type Provider ¶
type Provider struct { ProviderName string `json:"name"` // contains filtered or unexported fields }
func NewProvider ¶
func (*Provider) ProxyRequest ¶
func (*Provider) ReportAction ¶
type ProviderInterface ¶
type ProviderInterface interface { ProxyRequest(asapConfig pkiutil.ASAP, w http.ResponseWriter, r *http.Request, uri string) Request(asapConfig pkiutil.ASAP, r *http.Request, uri string, user string) (*http.Response, error) ReportAction() string Render(w http.ResponseWriter, r *http.Request) error Name() string OwnsPlan(string) bool }
type ProviderResponse ¶
type ProviderResponse struct {
ProviderNames []string
}
func (*ProviderResponse) Render ¶
func (*ProviderResponse) Render(w http.ResponseWriter, r *http.Request) error
type RouteAPI ¶
type RouteAPI interface {
AddOrUpdateProvider(ProviderInterface)
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
typed/ops/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
typed/ops/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
util
|
|
Click to show internal directories.
Click to hide internal directories.