menu

package
v0.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCompleteMenu

func GenerateCompleteMenu(kc client.Client, disco discovery.DiscoveryInterface) (*rsapi.Menu, error)

func GenerateMenuItems

func GenerateMenuItems(kc client.Client, disco discovery.DiscoveryInterface) (map[string]map[string]*rsapi.MenuItem, error)

func GetGalleryMenu

func GetGalleryMenu(driver *UserMenuDriver, opts *rsapi.RenderMenuRequest) (*rsapi.Menu, error)

func RenderAccordionMenu

func RenderAccordionMenu(kc client.Client, disco discovery.DiscoveryInterface, menuName string) (*rsapi.Menu, error)

func RenderGalleryMenu

func RenderGalleryMenu(kc client.Client, disco discovery.DiscoveryInterface, in *rsapi.Menu, opts *rsapi.RenderMenuRequest) (*rsapi.Menu, error)

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) Get

func (r *UserMenuDriver) Get(menu string) (*rsapi.Menu, error)

func (*UserMenuDriver) GetClient

func (r *UserMenuDriver) GetClient() client.Client

func (*UserMenuDriver) GetDiscoveryClient

func (r *UserMenuDriver) GetDiscoveryClient() discovery.ServerResourcesInterface

func (*UserMenuDriver) List

func (r *UserMenuDriver) List() (*rsapi.MenuList, error)

func (*UserMenuDriver) Upsert

func (r *UserMenuDriver) Upsert(menu *rsapi.Menu) (*rsapi.Menu, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL