copyutil

package
v2.0.0-...-c472316 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeInfo

type NodeInfo struct {
	// Node represents a node in the graph.
	Node ocispec.Descriptor
	// Depth represents the depth of the node in the graph.
	Depth int
}

NodeInfo represents information of a node that is being visited in ExtendedCopy.

type Stack

type Stack []NodeInfo

Stack represents a stack data structure that is used in ExtendedCopy for storing node information.

func (*Stack) IsEmpty

func (s *Stack) IsEmpty() bool

IsEmpty returns true if the stack is empty, otherwise returns false.

func (*Stack) Pop

func (s *Stack) Pop() (NodeInfo, bool)

Pop pops the top item out of the stack.

func (*Stack) Push

func (s *Stack) Push(i NodeInfo)

Push pushes an item to the stack.

Jump to

Keyboard shortcuts

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