Documentation ¶
Index ¶
- func GenerateCompleteMenu(kc client.Client, disco discovery.DiscoveryInterface) (*rsapi.Menu, error)
- func GenerateMenuItems(kc client.Client, disco discovery.DiscoveryInterface) (map[string]map[string]*rsapi.MenuItem, error)
- func GetGalleryMenu(driver *UserMenuDriver, opts *rsapi.RenderMenuRequest) (*rsapi.Menu, error)
- func RenderAccordionMenu(kc client.Client, disco discovery.DiscoveryInterface, menuName string) (*rsapi.Menu, error)
- func RenderGalleryMenu(kc client.Client, disco discovery.DiscoveryInterface, in *rsapi.Menu, ...) (*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 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.DiscoveryInterface, 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.