Documentation
¶
Index ¶
- Constants
- Variables
- func Chmod(mode, destpath string) error
- func Chown(owner, destpath string) error
- func CopyThing(srcpath, destpath string) error
- func DirCopy(dest string, source string) error
- func FileCopy(dest string, source string, mode *fs.FileMode, uid, gid int) error
- func FileCopyNoPerms(dest string, source string) error
- func FindFiles(base, pattern string) ([]string, error)
- func GenerateBOM(opts GenerateBOMOpts) error
- func HashFile(path string, includeMode bool) (string, error)
- func ImageCopy(opts ImageCopyOpts) error
- func IsSymlink(path string) (bool, error)
- func PathExists(path string) bool
- func RegisterURLScheme(scheme string, f func(string) (types.ImageReference, error))
- type GenerateBOMOpts
- type Graph
- type ImageCopyOpts
- type Key
- type Value
- type Vertex
Constants ¶
View Source
const GidEmpty, UidEmpty = -1, -1
Variables ¶
View Source
var ( StackerVersion = "" LXCVersion = "" )
Functions ¶
func FileCopyNoPerms ¶ added in v1.0.0
func GenerateBOM ¶ added in v1.0.0
func GenerateBOM(opts GenerateBOMOpts) error
func ImageCopy ¶
func ImageCopy(opts ImageCopyOpts) error
func PathExists ¶ added in v1.0.0
func RegisterURLScheme ¶
func RegisterURLScheme(scheme string, f func(string) (types.ImageReference, error))
Types ¶
type GenerateBOMOpts ¶ added in v1.0.0
type Graph ¶
type Graph interface { // AddVertex creates a new vertex in the graph with the specified key and stores // value provided in the vertex. It returns an error if the vertex specified by // the key already exists. AddVertex(Key, Value) error // RemoveVertex removes the vertex specified by the key. It returns an error // if the vertex corresponding to the key is not present in the graph. RemoveVertex(Key) error // AddDependencies creates a dependency between a given vertex and the provided // list of dependency vertices. This returns an error if either the vertex or the // dependency is not present in the graph or a make a node depends on itself. // Adding an dependency that creates a cycle in the graph is not allowed. AddDependencies(Key, ...Key) error // GetValue returns the value of the vertex specified by the key. It returns nil if the // vertex is not present in the graph. GetValue(Key) Value // SetValue sets the value of the vertex specified by the key. It returns an error if // the vertex is not present in the graph SetValue(Key, Value) error // Sort returns all the vertex entries in the dependency order. Vertices are ordered in // such a way that a vertex's dependencies will always preseed itself. Sort() []Vertex }
Graph is collection of vertices and edges between them. In dag, sort implement a topological sort for the graph.
type ImageCopyOpts ¶
Directories
¶
Path | Synopsis |
---|---|
containers/image/storage has a dependency on libdevmapper.so; having this in its own package allows downstream users to import it if they want to use it, but means they can also avoid importing it if they don't want to add this dependency.
|
containers/image/storage has a dependency on libdevmapper.so; having this in its own package allows downstream users to import it if they want to use it, but means they can also avoid importing it if they don't want to add this dependency. |
Click to show internal directories.
Click to hide internal directories.