Documentation ¶
Index ¶
- func WrapServer(factory Factory, server *server.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)
Click to show internal directories.
Click to hide internal directories.