fields

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: EUPL-1.2 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element any

Elements represents all key, value pars for one entry in the list of the listgenerator

type Elements

type Elements map[string]Element

func ElementsFromJSON

func ElementsFromJSON(raw []byte) (Elements, error)

func (Elements) AsJSON

func (es Elements) AsJSON() ([]byte, error)

func (Elements) GetElementAsString

func (es Elements) GetElementAsString(key string) string

GetElementAsString gets a value and returns as string This should be a method on Element, but a method cannot exist on interface datatypes

func (Elements) GetElementsAsStringMap

func (es Elements) GetElementsAsStringMap() (values map[string]string)

GetElementsAsString gets a value and returns as string This should be a method on Element, but a method cannot exist on interface datatypes

func (Elements) Key

func (es Elements) Key() string

func (Elements) Merge

func (es Elements) Merge(added Elements) Elements

Merge merges all key/value pairs from another Entries on top of this and returns the resulting total Entries set

func (Elements) String

func (es Elements) String() string

func (Elements) TryGetElementAsString

func (es Elements) TryGetElementAsString(key string) (string, error)

TryGetElementAsString gets a value and returns as string This should be a method on Element, but a method cannot exist on interface datatypes

type Entries

type Entries map[string]Elements

Entries represents all entries in the list of the listgenerator This is a map so that values are unique, the key is the paas entry

func EntriesFromJSON

func EntriesFromJSON(data []apiextensionsv1.JSON) (Entries, error)

func (Entries) AsJSON

func (en Entries) AsJSON() ([]apiextensionsv1.JSON, error)

func (Entries) Merge

func (en Entries) Merge(added Entries) Entries

Merge merges all key/value pairs from another Entries on top of this and returns the resulting total Entries set

func (Entries) String

func (en Entries) String() string

Jump to

Keyboard shortcuts

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