publish

package
v0.0.0-...-b79b7c2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(args Arguments) error

Execute is the entrypoint for the publish command execution.

Types

type Arguments

type Arguments struct {
	Project    string
	Repository string
	Location   string
	ModulePath string
	Version    string
}

func ParseArgs

func ParseArgs(f *pflag.FlagSet) (Arguments, error)

ParseArgs parses the arguments passed to the publish command.

type ArtifactRegistryGoModulesService

type ArtifactRegistryGoModulesService interface {
	Upload(context.Context, string, *os.File) (*artifactregistry.UploadGoModuleMediaResponse, error)
}

type ArtifactRegistryOperationService

type ArtifactRegistryOperationService interface {
	Get(string) (*artifactregistry.Operation, error)
}

type Provenance

type Provenance struct {
	URI             string `json:"uri"`
	Digest          string `json:"digest"`
	IsBuildArtifact string `json:"isBuildArtifact"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳