Documentation
¶
Index ¶
- Constants
- func NewRemoteProxyREST(serializer runtime.NegotiatedSerializer, connGetter ClusterConnectionGetter) http.Handler
- type ClusterConnectionGetter
- type Connector
- type PodSubresourceRemoteProxyREST
- func (r *PodSubresourceRemoteProxyREST) Connect(ctx context.Context, name string, opts runtime.Object, ...) (http.Handler, error)
- func (r *PodSubresourceRemoteProxyREST) ConnectMethods() []string
- func (r *PodSubresourceRemoteProxyREST) Destroy()
- func (r *PodSubresourceRemoteProxyREST) Namespaced() bool
- func (r *PodSubresourceRemoteProxyREST) New() runtime.Object
- func (r *PodSubresourceRemoteProxyREST) NewConnectOptions() (runtime.Object, bool, string)
- func (r *PodSubresourceRemoteProxyREST) ParentGroupResource() schema.GroupResource
- func (r *PodSubresourceRemoteProxyREST) ParentKind() string
- func (r *PodSubresourceRemoteProxyREST) Subresource() string
- type RemoteProxyREST
Constants ¶
View Source
const DefaultProxyRequestHeaderPrefix = "X-Clusterpedia-Proxy-"
Variables ¶
This section is empty.
Functions ¶
func NewRemoteProxyREST ¶
func NewRemoteProxyREST(serializer runtime.NegotiatedSerializer, connGetter ClusterConnectionGetter) http.Handler
Types ¶
type ClusterConnectionGetter ¶
type ClusterConnectionGetter interface {
GetClusterConnection(ctx context.Context, cluster string, req *http.Request) (string, http.RoundTripper, error)
}
func NewProxyConnector ¶
func NewProxyConnector(clusterLister clusterlister.PediaClusterLister, secretLister corev1listers.SecretNamespaceLister, allowPediaClusterConfigReuse bool, extraHeaderPrefixes []string) ClusterConnectionGetter
type PodSubresourceRemoteProxyREST ¶
type PodSubresourceRemoteProxyREST struct {
// contains filtered or unexported fields
}
func GetSubresourceRESTs ¶
func GetSubresourceRESTs(connGetter ClusterConnectionGetter) []*PodSubresourceRemoteProxyREST
func (*PodSubresourceRemoteProxyREST) ConnectMethods ¶
func (r *PodSubresourceRemoteProxyREST) ConnectMethods() []string
func (*PodSubresourceRemoteProxyREST) Destroy ¶
func (r *PodSubresourceRemoteProxyREST) Destroy()
func (*PodSubresourceRemoteProxyREST) Namespaced ¶
func (r *PodSubresourceRemoteProxyREST) Namespaced() bool
func (*PodSubresourceRemoteProxyREST) New ¶
func (r *PodSubresourceRemoteProxyREST) New() runtime.Object
func (*PodSubresourceRemoteProxyREST) NewConnectOptions ¶
func (r *PodSubresourceRemoteProxyREST) NewConnectOptions() (runtime.Object, bool, string)
func (*PodSubresourceRemoteProxyREST) ParentGroupResource ¶
func (r *PodSubresourceRemoteProxyREST) ParentGroupResource() schema.GroupResource
func (*PodSubresourceRemoteProxyREST) ParentKind ¶
func (r *PodSubresourceRemoteProxyREST) ParentKind() string
func (*PodSubresourceRemoteProxyREST) Subresource ¶
func (r *PodSubresourceRemoteProxyREST) Subresource() string
type RemoteProxyREST ¶
type RemoteProxyREST struct {
// contains filtered or unexported fields
}
func (*RemoteProxyREST) Error ¶
func (r *RemoteProxyREST) Error(w http.ResponseWriter, req *http.Request, err error)
func (*RemoteProxyREST) ServeHTTP ¶
func (r *RemoteProxyREST) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.