cluster

package
v1.4.0-dev-20240918 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(scaled *config.Scaled, server *server.Server, _ config.Options) error

RegisterSchema returns a fake cluster schema, based on examples in github.com/rancher/apiserver which serves as a store to expose a cluster object this cluster object is not backed by an actual CRD and is only needed to satisfy ability to define actions or linkHandlers The cluster link handlers allow querying details of device allocation from all nodes in the cluster

Types

type Cluster

type Cluster struct {
	Name string
}

type Handler

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

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type Store

type Store struct {
	types.Store
}

func (*Store) ByID

func (f *Store) ByID(_ *types.APIRequest, _ *types.APISchema, id string) (types.APIObject, error)

func (*Store) List

Jump to

Keyboard shortcuts

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