Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(client kubernetes.Interface, opts ...ServerOption) *Server
func (*Server) AddSubresource ¶
func (s *Server) AddSubresource(r *Subresource)
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
func WithAddr ¶
func WithAddr(addr string) ServerOption
func WithCertDir ¶
func WithCertDir(certDir string) ServerOption
func WithCertFileName ¶
func WithCertFileName(certFileName string) ServerOption
func WithKeyFileName ¶
func WithKeyFileName(keyFileName string) ServerOption
type Subresource ¶
type Subresource struct { NamespaceScoped bool GroupVersionResource schema.GroupVersionResource Name string ConnectMethods []string Connect func(ctx context.Context, key types.NamespacedName) (http.Handler, error) Route func(ctx context.Context, key types.NamespacedName, path string) (http.Handler, error) }
func (*Subresource) Path ¶
func (r *Subresource) Path(key types.NamespacedName) string
Click to show internal directories.
Click to hide internal directories.