meta

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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