Documentation ¶
Overview ¶
Package codeartifact provides functions that interact with the AWS CodeArtifact API
Index ¶
- Constants
- func CreateDomain(name string) error
- func CreateRepo(name string, domain string) error
- func DomainExists(name string) (bool, error)
- func GetAsset(packageInfo *PackageInfo) (io.Reader, error)
- func GetAssetHashForPackage(packageInfo *PackageInfo) (string, error)
- func GetLatestPackageVersion(packageInfo *PackageInfo) (string, error)
- func IncrementSemverMinorVersion(version string) (string, error)
- func Publish(packageInfo *PackageInfo) error
- func RepoExists(name string, domain string) (bool, error)
- func SemverIsGreater(a, b string) (bool, error)
- func Unzip(f *os.File, dest string) error
- func ZipDirectory(directoryPath string) ([]byte, error)
- type PackageInfo
Constants ¶
View Source
const DefaultNamespace = "default"
View Source
const DefaultVersion = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
func DomainExists ¶
DomainExists checks if a domain exists
func GetAssetHashForPackage ¶
func GetAssetHashForPackage(packageInfo *PackageInfo) (string, error)
GetAssetHashForPackage returns the hash of the asset for a package
func GetLatestPackageVersion ¶
func GetLatestPackageVersion(packageInfo *PackageInfo) (string, error)
GetLatestPackageVersion gets the latest version of a package
func RepoExists ¶
RepoExists checks if a repo exists
func SemverIsGreater ¶
SemverIsGreater checks if a version string is greater than another version string
The version strings are in the format "major.minor.patch" The function returns true if the first version string is greater than the second version string, and false otherwise.
func ZipDirectory ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.