Documentation ¶
Index ¶
- func GenerateCompleteMenu(kc client.Client, disco discovery.ServerResourcesInterface) (*rsapi.Menu, error)
- func GenerateMenuItems(kc client.Client, disco discovery.ServerResourcesInterface) (map[string]map[string]*rsapi.MenuItem, error)
- func GetGalleryMenu(driver *UserMenuDriver, opts *rsapi.RenderMenuRequest) (*rsapi.Menu, error)
- func GetPresetName(kc client.Client, ref core.TypedLocalObjectReference) (string, error)
- func RenderAccordionMenu(kc client.Client, disco discovery.ServerResourcesInterface, menuName string) (*rsapi.Menu, error)
- func RenderGalleryMenu(kc client.Client, in *rsapi.Menu, opts *rsapi.RenderMenuRequest) (*rsapi.Menu, error)
- func RenderMenu(driver *UserMenuDriver, req *rsapi.RenderMenuRequest) (*rsapi.Menu, error)
- type UserMenuDriver
- func (r *UserMenuDriver) Available(menu string) (*rsapi.Menu, error)
- func (r *UserMenuDriver) Delete(menu string) (*rsapi.Menu, error)
- func (r *UserMenuDriver) Get(menu string) (*rsapi.Menu, error)
- func (r *UserMenuDriver) GetClient() client.Client
- func (r *UserMenuDriver) GetDiscoveryClient() discovery.ServerResourcesInterface
- func (r *UserMenuDriver) List() (*rsapi.MenuList, error)
- func (r *UserMenuDriver) Upsert(menu *rsapi.Menu) (*rsapi.Menu, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCompleteMenu ¶
func GenerateMenuItems ¶
func GetGalleryMenu ¶
func GetGalleryMenu(driver *UserMenuDriver, opts *rsapi.RenderMenuRequest) (*rsapi.Menu, error)
func GetPresetName ¶
func RenderAccordionMenu ¶
func RenderGalleryMenu ¶
func RenderMenu ¶
func RenderMenu(driver *UserMenuDriver, req *rsapi.RenderMenuRequest) (*rsapi.Menu, error)
Types ¶
type UserMenuDriver ¶
type UserMenuDriver struct {
// contains filtered or unexported fields
}
func NewUserMenuDriver ¶
func NewUserMenuDriver(kc client.Client, disco discovery.ServerResourcesInterface, ns, user string) *UserMenuDriver
func (*UserMenuDriver) Available ¶
func (r *UserMenuDriver) Available(menu string) (*rsapi.Menu, error)
func (*UserMenuDriver) Delete ¶ added in v0.0.3
func (r *UserMenuDriver) Delete(menu string) (*rsapi.Menu, error)
func (*UserMenuDriver) GetClient ¶
func (r *UserMenuDriver) GetClient() client.Client
func (*UserMenuDriver) GetDiscoveryClient ¶
func (r *UserMenuDriver) GetDiscoveryClient() discovery.ServerResourcesInterface
Click to show internal directories.
Click to hide internal directories.