menu

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 28 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.ServerResourcesInterface) (*rsapi.Menu, error)

func GenerateMenuItems

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

func GetGalleryMenu

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

func GetPresetName

func GetPresetName(
	kc client.Client,
	ref core.TypedLocalObjectReference,
) (string, error)

func RenderAccordionMenu

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

func RenderGalleryMenu

func RenderGalleryMenu(kc client.Client, 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.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) 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