Documentation ¶
Index ¶
- func WrapServer(factory Factory, server *apiserver.Server) http.Handler
- type Collection
- func (c *Collection) AddTemplate(templates ...Template)
- func (c *Collection) ByGVK(gvk schema.GroupVersionKind) string
- func (c *Collection) ByGVR(gvr schema.GroupVersionResource) string
- func (c *Collection) IDs() (result []string)
- func (c *Collection) OnChange(ctx context.Context, cb func())
- func (c *Collection) Reset(schemas map[string]*types.APISchema)
- func (c *Collection) Schema(id string) *types.APISchema
- func (c *Collection) Schemas(user user.Info) (*types.APISchemas, error)
- type Factory
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func NewCollection ¶
func NewCollection(ctx context.Context, baseSchema *types.APISchemas, access accesscontrol.AccessSetLookup) *Collection
func (*Collection) AddTemplate ¶
func (c *Collection) AddTemplate(templates ...Template)
func (*Collection) ByGVK ¶
func (c *Collection) ByGVK(gvk schema.GroupVersionKind) string
func (*Collection) ByGVR ¶
func (c *Collection) ByGVR(gvr schema.GroupVersionResource) string
func (*Collection) IDs ¶
func (c *Collection) IDs() (result []string)
func (*Collection) OnChange ¶
func (c *Collection) OnChange(ctx context.Context, cb func())
func (*Collection) Schemas ¶
func (c *Collection) Schemas(user user.Info) (*types.APISchemas, error)
Directories ¶
Path | Synopsis |
---|---|
Package converter is responsible for converting the types registered with a k8s server to schemas which can be used by the UI (and other consumers) to discover the resources available and the current user's permissions.
|
Package converter is responsible for converting the types registered with a k8s server to schemas which can be used by the UI (and other consumers) to discover the resources available and the current user's permissions. |
Package fake is a generated GoMock package.
|
Package fake is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.