queryPVC

package
v0.0.0-...-5e02e5d Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStorageToBytes

func ConvertStorageToBytes(storage string) (int64, error)

func FliterJson

func FliterJson() (map[string]string, error)

func GetPVCs

func GetPVCs() (map[string]int64, error)

func Query

func Query() ([]byte, error)

Types

type Capacity

type Capacity struct {
	Storage string `json:"storage"`
}

type Item

type Item struct {
	Metadata Metadata `json:"metadata"`
	Status   Status   `json:"status"`
}

type Metadata

type Metadata struct {
	Name string `json:"name"`
}

Define the structure that matches the JSON

type Response

type Response struct {
	Items []Item `json:"items"`
}

type Status

type Status struct {
	Capacity Capacity `json:"capacity"`
}

Jump to

Keyboard shortcuts

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