resource

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	Json     []byte
	Kind     string
	Name     string //duplicate data from Metadata.Name extracted for convenience
	Version  string
	Metadata map[string]interface{}
	Spec     map[string]interface{}
}

func FromFile

func FromFile(path string) ([]Resource, error)

func FromFolder

func FromFolder(path string) ([]Resource, error)

func FromYamlByte added in v0.2.7

func FromYamlByte(data []byte) ([]Resource, error)

func (Resource) MarshalJSON added in v0.2.7

func (r Resource) MarshalJSON() ([]byte, error)

func (*Resource) PrintPreservingOriginalFieldOrder added in v0.2.7

func (r *Resource) PrintPreservingOriginalFieldOrder() error

func (Resource) String

func (r Resource) String() string

func (Resource) StringFromMetadata

func (r Resource) StringFromMetadata(key string) (string, error)

func (*Resource) UnmarshalJSON added in v0.2.7

func (r *Resource) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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