resource_hdl

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(handlers map[model.ResourceType]ResHandler) *Handler

func (*Handler) Get

func (h *Handler) Get(ctx context.Context, rID string) (model.HostResource, error)

func (*Handler) Handlers

func (h *Handler) Handlers() []string

func (*Handler) List

type ResHandler

type ResHandler interface {
	Get(ctx context.Context) (map[string]model.HostResourceBase, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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