Documentation
¶
Index ¶
- Constants
- Variables
- func CheckIfRepoExists(repository string, artDetails auth.ArtifactoryDetails) error
- func ConvertResultItemArrayToDeleteItemArray(resultItems []clientutils.ResultItem) []services.DeleteItem
- func CreateBuildInfoPropertiesFile(buildName, buildNumber string, config *viper.Viper, buildType BuildType) (string, error)
- func CreateBuildProperties(buildName, buildNumber string) (string, error)
- func CreateServiceManager(artDetails *config.ArtifactoryDetails, isDryRun bool) (*artifactory.ArtifactoryServicesManager, error)
- func DownloadFromBintray(downloadPath, filename, version, targetPath string) error
- func GetBuildDir(buildName, buildNumber string) (string, error)
- func GetEncryptedPasswordFromArtifactory(artifactoryAuth auth.ArtifactoryDetails) (string, error)
- func GetGeneratedBuildsInfo(buildName, buildNumber string) ([]*buildinfo.BuildInfo, error)
- func GetJfrogSecurityDir() (string, error)
- func GetRepositories(artDetails auth.ArtifactoryDetails, repoType ...RepoType) ([]string, error)
- func NewGitManager(path string) *gitManager
- func PublishBuildInfo(url string, content []byte, httpClientsDetails httputils.HttpClientDetails) (*http.Response, []byte, error)
- func ReadBuildInfoGeneralDetails(buildName, buildNumber string) (*buildinfo.General, error)
- func ReadConfigFile(configPath string, configType ConfigType) (*viper.Viper, error)
- func ReadPartialBuildInfoFiles(buildName, buildNumber string) (buildinfo.Partials, error)
- func RemoveBuildDir(buildName, buildNumber string) error
- func RunCmd(config CmdConfig) error
- func RunCmdOutput(config CmdConfig) ([]byte, error)
- func SaveBuildGeneralDetails(buildName, buildNumber string) error
- func SaveBuildInfo(buildName, buildNumber string, buildInfo *buildinfo.BuildInfo) error
- func SavePartialBuildInfo(buildName, buildNumber string, ...) error
- type BuildConfigMapping
- type BuildConfiguration
- type BuildInfoConfiguration
- type BuildType
- type CmdConfig
- type ConfigType
- type RepoType
Constants ¶
View Source
const ARTIFACT_PATTERN = "artifactPattern"
View Source
const BUILD_NAME = "build.name"
For key/value binding
View Source
const BUILD_NUMBER = "build.number"
View Source
const BuildInfoDetails = "details"
View Source
const BuildTempPath = "jfrog/builds/"
View Source
const ClassworldsConf = `` /* 166-byte string literal not displayed */
View Source
const DEPLOYER_PREFIX = "deployer."
View Source
const GENERATED_BUILD_INFO = "buildInfo.generated"
View Source
const GENERATED_BUILD_INFO_TEMP_PREFIX = "generatedBuildInfo"
View Source
const GradleInitScript = `` /* 1178-byte string literal not displayed */
View Source
const IVY_DESCRIPTOR = "deployIvyDescriptors"
View Source
const IVY_PATTERN = "ivyPattern"
View Source
const MAVEN_DESCRIPTOR = "deployMavenDescriptors"
View Source
const PASSWORD = "password"
View Source
const PROPERTIES_TEMP_PATH = "jfrog/properties/"
View Source
const PROPERTIES_TEMP_PREFIX = "buildInfoProperties"
For path and temp files
View Source
const RELEASE_REPO = "releaseRepo"
View Source
const REPO = "repo"
View Source
const RESOLVER_PREFIX = "resolver."
View Source
const SERVER_ID = "serverId"
View Source
const SNAPSHOT_REPO = "snapshotRepo"
View Source
const URL = "url"
View Source
const USERNAME = "username"
Variables ¶
View Source
var BuildTypes = []string{
"maven",
"gradle",
}
View Source
var RepoTypes = []string{
"local",
"remote",
"virtual",
}
Functions ¶
func CheckIfRepoExists ¶
func CheckIfRepoExists(repository string, artDetails auth.ArtifactoryDetails) error
func ConvertResultItemArrayToDeleteItemArray ¶
func ConvertResultItemArrayToDeleteItemArray(resultItems []clientutils.ResultItem) []services.DeleteItem
func CreateBuildProperties ¶
func CreateServiceManager ¶
func CreateServiceManager(artDetails *config.ArtifactoryDetails, isDryRun bool) (*artifactory.ArtifactoryServicesManager, error)
func DownloadFromBintray ¶
Download file from Bintray. downloadPath: download path in the following format: subject/repo/path/version/filename. filename: the file full name, will replace ${filename} in downloadPath argument. version: version of the desired file, will replace ${version} in downloadPath argument. targetPath: local download target path.
func GetBuildDir ¶
func GetEncryptedPasswordFromArtifactory ¶
func GetEncryptedPasswordFromArtifactory(artifactoryAuth auth.ArtifactoryDetails) (string, error)
func GetGeneratedBuildsInfo ¶
func GetJfrogSecurityDir ¶
func GetRepositories ¶
func GetRepositories(artDetails auth.ArtifactoryDetails, repoType ...RepoType) ([]string, error)
func NewGitManager ¶
func NewGitManager(path string) *gitManager
func PublishBuildInfo ¶
func ReadConfigFile ¶
func ReadConfigFile(configPath string, configType ConfigType) (*viper.Viper, error)
func RemoveBuildDir ¶
func RunCmdOutput ¶
func SaveBuildGeneralDetails ¶
func SaveBuildInfo ¶
func SavePartialBuildInfo ¶
Types ¶
type BuildConfigMapping ¶
type BuildConfiguration ¶
type BuildInfoConfiguration ¶
type BuildInfoConfiguration struct {
DryRun bool
EnvInclude string
EnvExclude string
// contains filtered or unexported fields
}
func (*BuildInfoConfiguration) GetArtifactoryDetails ¶
func (config *BuildInfoConfiguration) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*BuildInfoConfiguration) IsDryRun ¶
func (config *BuildInfoConfiguration) IsDryRun() bool
func (*BuildInfoConfiguration) SetArtifactoryDetails ¶
func (config *BuildInfoConfiguration) SetArtifactoryDetails(art auth.ArtifactoryDetails)
type CmdConfig ¶
type CmdConfig interface {
GetCmd() *exec.Cmd
GetEnv() map[string]string
GetStdWriter() io.WriteCloser
GetErrWriter() io.WriteCloser
}
type ConfigType ¶
type ConfigType string
const ( YAML ConfigType = "yaml" PROPERTIES ConfigType = "properties" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.