dimension

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetDimensions                      = "getInstanceDimensions"
	GetUniqueDimensionAndOptionsAction = "getInstanceUniqueDimensionAndOptions"
	AddDimensionAction                 = "addDimension"
	UpdateNodeIDAction                 = "updateDimensionOptionWithNodeID"
)

List of actions for dimensions

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	store.Storer
	MaxRequestOptions int
}

Store provides a backend for dimensions

func (*Store) AddHandler

func (s *Store) AddHandler(w http.ResponseWriter, r *http.Request)

AddHandler represents adding a dimension to a specific instance

func (*Store) AddNodeIDHandler

func (s *Store) AddNodeIDHandler(w http.ResponseWriter, r *http.Request)

AddNodeIDHandler against a specific option for dimension Deprecated: this method is superseded by PatchOptionHandler

func (*Store) GetDimensionsHandler

func (s *Store) GetDimensionsHandler(w http.ResponseWriter, r *http.Request, limit, offset int) (dimensions interface{}, totalCount int, err error)

GetDimensionsHandler returns a list of all dimensions and their options for an instance resource

func (*Store) GetUniqueDimensionAndOptionsHandler

func (s *Store) GetUniqueDimensionAndOptionsHandler(w http.ResponseWriter, r *http.Request, limit, offset int) (slicedOptions interface{}, totalCount int, err error)

GetUniqueDimensionAndOptionsHandler returns a list of dimension options for a dimension of an instance

func (*Store) PatchDimensionsHandler added in v1.36.0

func (s *Store) PatchDimensionsHandler(w http.ResponseWriter, r *http.Request)

PatchDimensionsHandler represents adding multiple dimensions to a specific instance And modifying multiple dimension options `node_id` and `order` values for a specific instance.

func (*Store) PatchOptionHandler added in v1.28.0

func (s *Store) PatchOptionHandler(w http.ResponseWriter, r *http.Request)

PatchOptionHandler updates a dimension option according to the provided patch array body

Jump to

Keyboard shortcuts

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