command

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CondaFileExtension = ".conda"
	Bz2FileExtension   = ".tar.bz2"
)
View Source
const (
	CargoFileExtension = ".crate"
)
View Source
const (
	ComposerFileExtension = ".zip"
)
View Source
const (
	NugetFileExtension = ".nupkg"
)
View Source
const (
	RpmFileExtension = ".rpm"
)

Variables

This section is empty.

Functions

func NewCreateArtifactCmd

func NewCreateArtifactCmd(c *cmdutils.Factory) *cobra.Command

NewCreateArtifactCmd wires up:

hc artifact create

func NewDeleteArtifactCmd

func NewDeleteArtifactCmd(c *cmdutils.Factory) *cobra.Command

func NewGetArtifactCmd

func NewGetArtifactCmd(c *cmdutils.Factory) *cobra.Command

NewGetArtifactCmd wires up:

hc artifact get <args>

func NewListArtifactCmd

func NewListArtifactCmd(c *cmdutils.Factory) *cobra.Command

NewListArtifactCmd wires up:

hc artifact list

func NewPullArtifactCmd

func NewPullArtifactCmd(c *cmdutils.Factory) *cobra.Command

NewPullArtifactCmd creates a new cobra.Command for pulling artifacts

func NewPullGenericCmd

func NewPullGenericCmd(c *cmdutils.Factory) *cobra.Command

NewPullGenericCmd creates a new cobra.Command for pulling generic artifacts from the registry. command example: hc ar pull generic <registry_name> <package_path> <destination_path>

func NewPushArtifactCmd

func NewPushArtifactCmd(f *cmdutils.Factory) *cobra.Command

NewPushArtifactCmd creates a new cobra.Command for pushing artifacts

func NewPushCargoCmd added in v1.1.0

func NewPushCargoCmd(f *cmdutils.Factory) *cobra.Command

func NewPushComposerCmd added in v1.1.0

func NewPushComposerCmd(c *cmdutils.Factory) *cobra.Command

func NewPushCondaCmd

func NewPushCondaCmd(c *cmdutils.Factory) *cobra.Command

func NewPushDartCmd added in v1.1.2

func NewPushDartCmd(f *cmdutils.Factory) *cobra.Command

NewPushDartCmd creates a new cobra.Command for pushing Dart packages. Command example: hc artifact push dart <registry_name> <dart_tar_gz_path>

func NewPushGenericCmd

func NewPushGenericCmd(c *cmdutils.Factory) *cobra.Command

NewPushGenericCmd creates a new cobra.Command for pushing generic artifacts to the registry. command example: hc ar push generic <registry_name> <package_file_path>

func NewPushGoCmd

func NewPushGoCmd(c *cmdutils.Factory) *cobra.Command

func NewPushMavenCmd

func NewPushMavenCmd(c *cmdutils.Factory) *cobra.Command

func NewPushNpmCmd added in v1.1.2

func NewPushNpmCmd(f *cmdutils.Factory) *cobra.Command

NewPushNpmCmd creates a new cobra.Command for pushing NPM packages. Command example: hc artifact push npm <registry_name> <npm_tgz_path>

func NewPushNugetCmd added in v1.2.0

func NewPushNugetCmd(c *cmdutils.Factory) *cobra.Command

func NewPushPythonCmd added in v1.2.0

func NewPushPythonCmd(c *cmdutils.Factory) *cobra.Command

func NewPushRpmCmd added in v1.1.0

func NewPushRpmCmd(c *cmdutils.Factory) *cobra.Command

Types

type CargoPackageMetadata added in v1.1.0

type CargoPackageMetadata struct {
	Package struct {
		Name    string `toml:"name"`
		Version string `toml:"version"`
	} `toml:"package"`
}

type VersionInfo

type VersionInfo struct {
	Description       string   `json:"description,omitempty"`
	Summary           string   `json:"summary,omitempty"`
	Homepage          string   `json:"home,omitempty"`
	Repository        string   `json:"dev_url,omitempty"`             //nolint:tagliatelle
	Documentation     string   `json:"doc_url,omitempty"`             //nolint:tagliatelle
	CondaVersion      string   `json:"conda_version,omitempty"`       //nolint:tagliatelle
	CondaBuildVersion string   `json:"conda_build_version,omitempty"` //nolint:tagliatelle
	Tags              []string `json:"tags,omitempty"`
	Readme            string   `json:"readme,omitempty"`
}

type VersionMetadata

type VersionMetadata struct {
	VersionInfo
	Architecture  string   `json:"arch"`
	Build         string   `json:"build"`
	BuildNumber   int64    `json:"build_number"` //nolint:tagliatelle
	Dependencies  []string `json:"depends"`
	License       string   `json:"license"`
	LicenseFamily string   `json:"license_family"` //nolint:tagliatelle
	Name          string   `json:"name"`
	Platform      string   `json:"platform"`
	Subdir        string   `json:"subdir"`
	Timestamp     int64    `json:"timestamp"`
	Version       string   `json:"version"`
	MD5           string   `json:"md5"`
	Sha256        string   `json:"sha256"`
	Size          int64    `json:"size"`
}

func GetMetadataFromPayload

func GetMetadataFromPayload(
	filePath string, fileName string,
) (*VersionMetadata, error)

func ParseMetadataFromBZ2Payload

func ParseMetadataFromBZ2Payload(reader io.Reader) (
	*VersionMetadata,
	error,
)

func ParseMetadataFromCondaPayload

func ParseMetadataFromCondaPayload(reader io.Reader) (
	*VersionMetadata,
	error,
)

func ParseMetadataFromPayload

func ParseMetadataFromPayload(reader io.Reader) (
	*VersionMetadata,
	error,
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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