Documentation ¶
Index ¶
- Constants
- func CreateTarball(sourcePath, outputPath string) error
- func CreateWorkspace(tool, desiredTool, ociURL string) error
- func ExtractTarContents(tarReader *tar.Reader, destinationDir string) error
- func GetCreds() ([]crane.Option, error)
- func GetGitRemoteURL() (string, error)
- func ParseAnnotations(args []string) (map[string]string, error)
- func PullArtifact(ctx context.Context, dest, path string) error
- func SignCosign(imageRef string) error
- func VerifyArifact(ctx context.Context, url, key string) (verified bool, err error)
Constants ¶
View Source
const ( // CreatedAnnotation is the OpenContainers annotation for specifying // the date and time on which the OCI artifact was built (RFC 3339). CreatedAnnotation = "org.opencontainers.image.created" // ConfigMediaType is the OpenContainers artifact media type for the config layer. ConfigMediaType = "application/vnd.genval.config.v1+json" // ContentMediaType is the OpenContainers artifact media type for the content layer. ContentMediaType = "application/vnd.genval.content.v1.tar+gzip" ContentTypeAnnotation = "genval.content.type" // SourceAnnotation is the OpenContainers annotation for specifying // the upstream source of an OCI artifact. SourceAnnotation = "org.opencontainers.image.source" URLPrefix = "oci://" )
Variables ¶
This section is empty.
Functions ¶
func CreateTarball ¶
CreateTarball creates a tarball from a file or directory.
func CreateWorkspace ¶
func ExtractTarContents ¶
ExtractTarContents extracts the contents of a tar.Reader to the specified directory.
func GetGitRemoteURL ¶
GetGitRemoteURL fetches the remote url of the project
func PullArtifact ¶
PullArtifact checks if tag exists and pull's the artifact from remote repository and writes to disk
func SignCosign ¶
SignCosign signs an image (`imageRef`) in Keyless mode https://github.com/sigstore/cosign/blob/main/KEYLESS.md.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.