Documentation
¶
Index ¶
- Constants
- func NewCreateArtifactCmd(c *client.ClientWithResponses) *cobra.Command
- func NewDeleteArtifactCmd(c *client.ClientWithResponses) *cobra.Command
- func NewGetArtifactCmd(c *client.ClientWithResponses) *cobra.Command
- func NewListArtifactCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPullArtifactCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPullGenericCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPushArtifactCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPushComposerCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPushCondaCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPushGenericCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPushGoCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPushMavenCmd(c *client.ClientWithResponses) *cobra.Command
- func NewPushRpmCmd(c *client.ClientWithResponses) *cobra.Command
- 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 (
ComposerFileExtension = ".zip"
)
View Source
const (
RpmFileExtension = ".rpm"
)
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 NewPushComposerCmd ¶ added in v1.1.0
func NewPushComposerCmd(c *client.ClientWithResponses) *cobra.Command
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
func NewPushRpmCmd ¶ added in v1.1.0
func NewPushRpmCmd(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, )
Click to show internal directories.
Click to hide internal directories.