Documentation
¶
Index ¶
- func NewBuilder() *builder
- func ValidateSpec(files []File, isTargetMandatory, isSearchBasedSpec, isUpload bool) error
- type DistributionRule
- type DistributionRules
- type File
- func (f File) IsAnt(defaultValue bool) (bool, error)
- func (f File) IsExcludeArtifacts(defaultValue bool) (bool, error)
- func (f File) IsExplode(defaultValue bool) (bool, error)
- func (f File) IsFlat(defaultValue bool) (bool, error)
- func (f File) IsIncludeDeps(defaultValue bool) (bool, error)
- func (f File) IsIncludeDirs(defaultValue bool) (bool, error)
- func (f File) IsRecursive(defaultValue bool) (bool, error)
- func (f File) IsRegexp(defaultValue bool) (bool, error)
- func (f File) IsSymlinks(defaultValue bool) (bool, error)
- func (f File) IsTransitive(defaultValue bool) (bool, error)
- func (f File) IsVlidateSymlinks(defaultValue bool) (bool, error)
- func (f *File) ToArtifactoryCommonParams() (*utils.ArtifactoryCommonParams, error)
- type SpecFiles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder() *builder
func ValidateSpec ¶
Types ¶
type DistributionRule ¶
type DistributionRule struct {
SiteName string `json:"site_name,omitempty"`
CityName string `json:"city_name,omitempty"`
CountryCodes []string `json:"country_codes,omitempty"`
}
func (*DistributionRule) IsEmpty ¶
func (distributionRule *DistributionRule) IsEmpty() bool
func (*DistributionRule) ToDistributionCommonParams ¶
func (distributionRule *DistributionRule) ToDistributionCommonParams() *utils.DistributionCommonParams
type DistributionRules ¶
type DistributionRules struct {
DistributionRules []DistributionRule `json:"distribution_rules,omitempty"`
}
func CreateDistributionRulesFromFile ¶
func CreateDistributionRulesFromFile(distributionSpecPath string) (*DistributionRules, error)
func (*DistributionRules) Get ¶
func (distributionRules *DistributionRules) Get(index int) *DistributionRule
type File ¶
type File struct {
Aql utils.Aql
Pattern string
// Deprecated, use Exclusions instead
ExcludePatterns []string
Exclusions []string
Target string
Explode string
Props string
TargetProps string
ExcludeProps string
SortOrder string
SortBy []string
Offset int
Limit int
Build string
ExcludeArtifacts string
IncludeDeps string
Bundle string
Recursive string
Flat string
Regexp string
Ant string
IncludeDirs string
ArchiveEntries string
ValidateSymlinks string
Archive string
Symlinks string
Transitive string
}
func (File) IsExcludeArtifacts ¶ added in v1.2.0
func (File) IsIncludeDeps ¶ added in v1.2.0
func (File) IsTransitive ¶ added in v1.5.0
func (*File) ToArtifactoryCommonParams ¶
func (f *File) ToArtifactoryCommonParams() (*utils.ArtifactoryCommonParams, error)
Click to show internal directories.
Click to hide internal directories.