Documentation
¶
Index ¶
- 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]*types2.APISchema)
- func (c *Collection) Schema(id string) *types2.APISchema
- func (c *Collection) Schemas(user user.Info) (*types2.APISchemas, error)
- type Factory
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func NewCollection ¶
func NewCollection(ctx context.Context, baseSchema *types2.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) (*types2.APISchemas, error)
Click to show internal directories.
Click to hide internal directories.