commands

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandCmd

func ExpandCmd(context *components.Context) error

func FindFiles

func FindFiles(root string, suffix string, recursive bool) ([]string, error)

func GetArtifactoryDetails

func GetArtifactoryDetails(context *components.Context) (*config.ServerDetails, error)

func GetArtifactoryManager added in v1.0.0

func GetArtifactoryManager(context *components.Context, dryRun bool, threads int) (artifactory.ArtifactoryServicesManager, error)

func GetExpandArguments

func GetExpandArguments() []components.Argument

func GetExpandCommand

func GetExpandCommand() components.Command

func GetExpandEnvVar

func GetExpandEnvVar() []components.EnvVar

func GetExpandFlags

func GetExpandFlags() []components.Flag

func GetRunArguments

func GetRunArguments() []components.Argument

func GetRunCommand

func GetRunCommand() components.Command

func GetRunEnvVar

func GetRunEnvVar() []components.EnvVar

func GetRunFlags

func GetRunFlags() []components.Flag

func InitTemplates added in v1.0.0

func InitTemplates()

func ParseDeleteParamsFromFile added in v1.0.0

func ParseDeleteParamsFromFile(file *os.File) ([]services.DeleteParams, error)

func ParseDeleteParamsFromPath added in v1.0.0

func ParseDeleteParamsFromPath(path string) ([]services.DeleteParams, error)

func ParseSearchParamsFromFile added in v1.0.0

func ParseSearchParamsFromFile(file *os.File) ([]services.SearchParams, error)

func ParseSearchParamsFromPath added in v1.0.0

func ParseSearchParamsFromPath(path string) ([]services.SearchParams, error)

func RunArtifactRetention

func RunArtifactRetention(artifactoryManager artifactory.ArtifactoryServicesManager, fileSpecsPaths []string) error

func RunCmd

func RunCmd(context *components.Context) error

Types

type ExpandConfiguration

type ExpandConfiguration struct {
	// contains filtered or unexported fields
}

func ParseExpandConfig

func ParseExpandConfig(context *components.Context) (*ExpandConfiguration, error)

type Policy added in v1.0.0

type Policy struct {
	Template     string                   `json:"template"`
	DeleteParent bool                     `json:"deleteParent"`
	NameProperty string                   `json:"nameProperty"`
	Entries      []map[string]interface{} `json:"entries"`
}

type RunConfiguration

type RunConfiguration struct {
	// contains filtered or unexported fields
}

func ParseRunConfig

func ParseRunConfig(context *components.Context) (*RunConfiguration, error)

Jump to

Keyboard shortcuts

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