command

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CondaFileExtension = ".conda"
	Bz2FileExtension   = ".tar.bz2"
)

Variables

This section is empty.

Functions

func NewCreateArtifactCmd

func NewCreateArtifactCmd(c *client.ClientWithResponses) *cobra.Command

NewCreateArtifactCmd wires up:

hc artifact create

func NewDeleteArtifactCmd

func NewDeleteArtifactCmd(c *client.ClientWithResponses) *cobra.Command

func NewGetArtifactCmd

func NewGetArtifactCmd(c *client.ClientWithResponses) *cobra.Command

NewGetArtifactCmd wires up:

hc artifact get <args>

func NewListArtifactCmd

func NewListArtifactCmd(c *client.ClientWithResponses) *cobra.Command

NewListArtifactCmd wires up:

hc artifact list

func NewPullArtifactCmd

func NewPullArtifactCmd(c *client.ClientWithResponses) *cobra.Command

NewPullArtifactCmd creates a new cobra.Command for pulling artifacts

func NewPullGenericCmd

func NewPullGenericCmd(c *client.ClientWithResponses) *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(c *client.ClientWithResponses) *cobra.Command

NewPushArtifactCmd creates a new cobra.Command for pushing artifacts

func NewPushCondaCmd

func NewPushCondaCmd(c *client.ClientWithResponses) *cobra.Command

func NewPushGenericCmd

func NewPushGenericCmd(c *client.ClientWithResponses) *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 *client.ClientWithResponses) *cobra.Command

func NewPushMavenCmd

func NewPushMavenCmd(c *client.ClientWithResponses) *cobra.Command

Types

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,
)

Jump to

Keyboard shortcuts

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