meta

package
v0.32.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

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

Meta provides helpful methods for interacting with a metafile's runtime.Object.

func New

func New(obj runtime.Object) *Meta

New constructs a new Meta given a

func (*Meta) Bytes

func (m *Meta) Bytes() ([]byte, error)

Bytes returns the cleaned up byte representation of the meta file obj.

func (*Meta) DependsOn

func (m *Meta) DependsOn() ([]v1beta1.Dependency, error)

DependsOn returns a slice of v1beta1.Dependency that this workspace depends on.

func (*Meta) Upsert

func (m *Meta) Upsert(d v1beta1.Dependency) error

Upsert will add an entry to the meta file, if the meta file exists and does not yet have an entry for the given package. If an entry does exist, the entry will be updated to the given package version.

Jump to

Keyboard shortcuts

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