Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = Update{ LoadPackage: func(ctx context.Context, target string) (*packagecontent.Package, error) { var filemap packagecontent.Files filemap, err := packageimport.Folder(ctx, target) if err != nil { return nil, err } pkg, err := packageloader.New(cmdutil.Scheme).FromFiles(ctx, filemap) if err != nil { return nil, err } return pkg, nil }, RetrieveDigest: crane.Digest, WriteLockFile: func(path string, data []byte) error { return os.WriteFile(path, data, 0o644) }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.