spec

package
v2.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder() *builder

func ValidateSpec

func ValidateSpec(files []File, isTargetMandatory, isSearchBasedSpec bool) error

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() *distribution.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
	PathMapping             utils.PathMapping
	Pattern                 string
	Exclusions              []string
	Target                  string
	Explode                 string
	BypassArchiveInspection string
	Props                   string
	TargetProps             string
	ExcludeProps            string
	SortOrder               string
	SortBy                  []string
	Offset                  int
	Limit                   int
	Build                   string
	Project                 string
	ExcludeArtifacts        string
	IncludeDeps             string
	Bundle                  string
	PublicGpgKey            string `json:"gpg-key,omitempty"`
	Recursive               string
	Flat                    string
	Regexp                  string
	Ant                     string
	IncludeDirs             string
	ArchiveEntries          string
	ValidateSymlinks        string
	Archive                 string
	Symlinks                string
	Transitive              string
	TargetPathInArchive     string
	// contains filtered or unexported fields
}

func (File) GetInclude added in v2.36.0

func (f File) GetInclude() []string

func (File) GetPatternType

func (f File) GetPatternType() (patternType clientutils.PatternType)

func (File) GetPublicGpgKey added in v2.4.0

func (f File) GetPublicGpgKey() string

func (File) IsAnt

func (f File) IsAnt(defaultValue bool) (bool, error)

func (File) IsBypassArchiveInspection added in v2.32.0

func (f File) IsBypassArchiveInspection(defaultValue bool) (bool, error)

func (File) IsExcludeArtifacts

func (f File) IsExcludeArtifacts(defaultValue bool) (bool, error)

func (File) IsExplode

func (f File) IsExplode(defaultValue bool) (bool, error)

func (File) IsFlat

func (f File) IsFlat(defaultValue bool) (bool, error)

func (File) IsIncludeDeps

func (f File) IsIncludeDeps(defaultValue bool) (bool, error)

func (File) IsIncludeDirs

func (f File) IsIncludeDirs(defaultValue bool) (bool, error)

func (File) IsRecursive

func (f File) IsRecursive(defaultValue bool) (bool, error)

func (File) IsRegexp

func (f File) IsRegexp(defaultValue bool) (bool, error)
func (f File) IsSymlinks(defaultValue bool) (bool, error)

func (File) IsTransitive

func (f File) IsTransitive(defaultValue bool) (bool, error)
func (f File) IsValidateSymlinks(defaultValue bool) (bool, error)

func (*File) ToCommonParams

func (f *File) ToCommonParams() (*utils.CommonParams, error)

type SpecFiles

type SpecFiles struct {
	Files []File
}

func CreateSpecFromFile

func CreateSpecFromFile(specFilePath string, specVars map[string]string) (spec *SpecFiles, err error)

func (*SpecFiles) Get

func (spec *SpecFiles) Get(index int) *File

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL