resources

package
v0.0.221 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoerceAsString added in v0.0.167

func CoerceAsString(v any) (string, error)

func LookupServerEndpoint

func LookupServerEndpoint(resources *Parsed, serverRef, service string) (string, error)

func LookupServerFirstIngress added in v0.0.117

func LookupServerFirstIngress(resources *Parsed, serverRef, service string) (*string, error)

func ReadSecret

func ReadSecret(r *Parsed, resource string) ([]byte, error)

func SelectField added in v0.0.167

func SelectField(description string, value any, field string) (any, error)

Types

type Parsed

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

func LoadResources

func LoadResources() (*Parsed, error)

func ParseResourceData

func ParseResourceData(data []byte) (*Parsed, error)

func (*Parsed) SelectField added in v0.0.81

func (p *Parsed) SelectField(resource, field string) (any, error)

SelectField traverses the specified resource, if one exists, and obtains the value specified by the field selector.

func (*Parsed) Unmarshal

func (p *Parsed) Unmarshal(resource string, out any) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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