resources

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v1.8.2

func Clone(r *api.Resource) *api.Resource

func CloneMetadata added in v1.8.2

func CloneMetadata(m *api.ResourceMetadata) *api.ResourceMetadata

Types

type Index

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

func (*Index) Add

func (x *Index) Add(r *api.Resource) error

func (*Index) AddFS

func (x *Index) AddFS(fsys fs.FS) error

func (*Index) All added in v1.8.0

func (*Index) Deps added in v1.8.2

func (i *Index) Deps(r *api.Resource) iter.Seq[integrity.NameDigest]

func (*Index) Get added in v1.8.2

func (x *Index) Get(nd integrity.NameDigest) (*api.Resource, bool)

func (*Index) Keys added in v1.8.0

func (x *Index) Keys() iter.Seq[integrity.NameDigest]

func (*Index) Pipes

func (x *Index) Pipes() *pipes.Index

func (*Index) Qualified added in v1.8.2

func (i *Index) Qualified() (*Index, error)

Qualify returns a new index with all resources qualified by digest.

Currently Qualify only updates pipes.

func (*Index) Qualify added in v1.8.2

func (idx *Index) Qualify(r *api.Resource) (*api.Resource, error)

Qualify replaces all pipe references with a valid digest returning a new Resource.

Qualify does not update the digest of r in the index.

Use Qualified to create a new qualified index.

func (*Index) Reset

func (x *Index) Reset()

func (*Index) Topo added in v1.8.2

func (i *Index) Topo() iter.Seq2[integrity.NameDigest, error]

Topo proceeds over the keys of the index topologically.

If there are cycles in the topological order an error is passed to the yield function. Any other error is passed to yield as well.

Topo does not attempt to Qualify names when no digest is present.

func (*Index) Values added in v1.8.0

func (x *Index) Values() iter.Seq[*api.Resource]

func (*Index) Views

func (x *Index) Views() *views.Index

Jump to

Keyboard shortcuts

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