Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxZipFile is the maximum size in bytes of a module zip file. The // go command will report an error if either the zip file or its extracted // content is larger than this. MaxZipFile = 500 << 20 // MaxGoMod is the maximum size in bytes of a go.mod file within a // module zip file. MaxGoMod = 16 << 20 // MaxLICENSE is the maximum size in bytes of a LICENSE file within a // module zip file. MaxLICENSE = 16 << 20 )
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create builds a zip archive for module m from an abstract list of files and writes it to w.
Create verifies the restrictions described in the package documentation and should not produce an archive that Unzip cannot extract. Create does not include files in the output archive if they don't belong in the module zip. In particular, Create will not include files in modules found in subdirectories, most files in vendor directories, or irregular files (such as symbolic links) in the output archive.
Types ¶
type File ¶
type File interface { // Path returns a clean slash-separated relative path from the module root // directory to the file. Path() string // Lstat returns information about the file. If the file is a symbolic link, // Lstat returns information about the link itself, not the file it points to. Lstat() (os.FileInfo, error) // Open provides access to the data within a regular file. Open may return // an error if called on a directory or symbolic link. Open() (io.ReadCloser, error) }
File provides an abstraction for a file in a directory, zip, or anything else that looks like a file.
type Go ¶
type Go interface { Dependencies() []executers.Package CreateBuildInfoDependencies(includeInfoFiles bool) error PublishPackage(targetRepo, buildName, buildNumber, projectKey string, servicesManager artifactory.ArtifactoryServicesManager) error PublishDependencies(targetRepo string, servicesManager artifactory.ArtifactoryServicesManager, includeDepSlice []string) (succeeded, failed int, err error) BuildInfo(includeArtifacts bool, module, targetRepository string) *buildinfo.BuildInfo LoadDependencies() error }
Represent go project
Click to show internal directories.
Click to hide internal directories.