views

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v1.8.2

func Clone(v nuggit.View) nuggit.View

func Deps added in v1.8.2

func Qualify added in v1.8.2

func Qualify(pipes *pipes.Index, view nuggit.View) (nuggit.View, error)

Qualify adds digests to referenced pipes, where not present.

Qualify fails if the pipes index does not have a unique entry for the given name or if the name@digest is malformed.

Types

type Index

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

func (*Index) Add

func (i *Index) Add(name, uuid string, view nuggit.View)

func (*Index) AddName

func (i *Index) AddName(name string, view nuggit.View)

func (*Index) All added in v1.8.2

func (i *Index) All() iter.Seq2[string, nuggit.View]

func (*Index) Get

func (i *Index) Get(uuid string) (nuggit.View, bool)

func (*Index) GetUnique

func (i *Index) GetUnique(name string) (uuid string, ok bool)

func (*Index) GetUniqueView added in v1.8.2

func (i *Index) GetUniqueView(name string) (view nuggit.View, ok bool)

func (*Index) Has

func (i *Index) Has(uuid string) bool

func (*Index) HasName

func (i *Index) HasName(name string) bool

func (*Index) Keys added in v1.8.2

func (i *Index) Keys() iter.Seq[string]

func (*Index) Reset

func (i *Index) Reset()

func (*Index) Values added in v1.8.2

func (i *Index) Values() iter.Seq[nuggit.View]

Jump to

Keyboard shortcuts

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