codeartifact

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package codeartifact provides functions that interact with the AWS CodeArtifact API

Index

Constants

View Source
const DefaultNamespace = "default"
View Source
const DefaultVersion = "0.1.0"

Variables

This section is empty.

Functions

func CreateDomain

func CreateDomain(name string) error

CreateDomain creates a domain

func CreateRepo

func CreateRepo(name string, domain string) error

CreateRepo creates a repo

func DomainExists

func DomainExists(name string) (bool, error)

DomainExists checks if a domain exists

func GetAsset

func GetAsset(packageInfo *PackageInfo) (io.Reader, error)

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 IncrementSemverMinorVersion

func IncrementSemverMinorVersion(version string) (string, error)

func Publish

func Publish(packageInfo *PackageInfo) error

Publish publishes a package

func RepoExists

func RepoExists(name string, domain string) (bool, error)

RepoExists checks if a repo exists

func SemverIsGreater

func SemverIsGreater(a, b string) (bool, error)

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 Unzip

func Unzip(f *os.File, dest string) error

Unzip unzips a zip file to a destination directory

func ZipDirectory

func ZipDirectory(directoryPath string) ([]byte, error)

Types

type PackageInfo

type PackageInfo struct {
	Domain        string
	Repo          string
	Name          string
	Version       string
	DirectoryPath string
}

Jump to

Keyboard shortcuts

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