Documentation
¶
Index ¶
- Constants
- func NewCreateArtifactCmd(c *cmdutils.Factory) *cobra.Command
- func NewDeleteArtifactCmd(c *cmdutils.Factory) *cobra.Command
- func NewGetArtifactCmd(c *cmdutils.Factory) *cobra.Command
- func NewListArtifactCmd(c *cmdutils.Factory) *cobra.Command
- func NewPullArtifactCmd(c *cmdutils.Factory) *cobra.Command
- func NewPullGenericCmd(c *cmdutils.Factory) *cobra.Command
- func NewPushArtifactCmd(f *cmdutils.Factory) *cobra.Command
- func NewPushCargoCmd(f *cmdutils.Factory) *cobra.Command
- func NewPushComposerCmd(c *cmdutils.Factory) *cobra.Command
- func NewPushCondaCmd(c *cmdutils.Factory) *cobra.Command
- func NewPushGenericCmd(c *cmdutils.Factory) *cobra.Command
- func NewPushGoCmd(c *cmdutils.Factory) *cobra.Command
- func NewPushMavenCmd(c *cmdutils.Factory) *cobra.Command
- func NewPushRpmCmd(c *cmdutils.Factory) *cobra.Command
- type CargoPackageMetadata
- type VersionInfo
- type VersionMetadata
- func GetMetadataFromPayload(filePath string, fileName string) (*VersionMetadata, error)
- func ParseMetadataFromBZ2Payload(reader io.Reader) (*VersionMetadata, error)
- func ParseMetadataFromCondaPayload(reader io.Reader) (*VersionMetadata, error)
- func ParseMetadataFromPayload(reader io.Reader) (*VersionMetadata, error)
Constants ¶
View Source
const ( CondaFileExtension = ".conda" Bz2FileExtension = ".tar.bz2" )
View Source
const (
CargoFileExtension = ".crate"
)
View Source
const (
ComposerFileExtension = ".zip"
)
View Source
const (
RpmFileExtension = ".rpm"
)
Variables ¶
This section is empty.
Functions ¶
func NewPullArtifactCmd ¶
NewPullArtifactCmd creates a new cobra.Command for pulling artifacts
func NewPullGenericCmd ¶
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 ¶
NewPushArtifactCmd creates a new cobra.Command for pushing artifacts
func NewPushComposerCmd ¶ added in v1.1.0
func NewPushGenericCmd ¶
NewPushGenericCmd creates a new cobra.Command for pushing generic artifacts to the registry. command example: hc ar push generic <registry_name> <package_file_path>
Types ¶
type CargoPackageMetadata ¶ added in v1.1.0
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, )
Click to show internal directories.
Click to hide internal directories.