Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is provided at compile-time.

Functions

func CatalogCmd

func CatalogCmd(cfg *config.Config) *cobra.Command

func LoadContractFromArgs

func LoadContractFromArgs(args []string) (*contract.Contract, error)

func MakeGetRequest added in v0.3.0

func MakeGetRequest(uri string) (*http.Response, error)

func NewCatalogExternalsCmd

func NewCatalogExternalsCmd(cfg *config.Config) *cobra.Command

NewCatalogExternalsCmd instantiates the "externals" subcommand.

func NewCatalogGenerateCmd

func NewCatalogGenerateCmd(cfg *config.Config) *cobra.Command

NewCatalogGenerateCmd instantiates the "generate" subcommand.

func NewCatalogGenerateFromExternalCmd

func NewCatalogGenerateFromExternalCmd(cfg *config.Config) *cobra.Command

NewCatalogGenerateFromExternalCmd instantiates the "generate" subcommand.

func NewReleaseCmd

func NewReleaseCmd(cfg *config.Config) *cobra.Command

NewReleaseCmd instantiates the NewReleaseCmd subcommand and flags.

func NewRenderCmd

func NewRenderCmd(cfg *config.Config) *cobra.Command

NewRenderCmd instantiate the "render" subcommand.

func NewRootCmd

func NewRootCmd(stream *tkncli.Stream) *cobra.Command

func NewSignCmd

func NewSignCmd(cfg *config.Config) *cobra.Command

NewSignCmd instantiate the SignCmd and flags.

func NewVerifyCmd

func NewVerifyCmd(cfg *config.Config) *cobra.Command

NewVerifyCmd instantiates the "verify" subcommand.

Types

type GitHubAssets added in v0.3.0

type GitHubAssets struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
	URL                string `json:"url"`
}

GitHubAssets represents the Assets field of the GitHubTags.

type GitHubMatrixObject

type GitHubMatrixObject struct {
	Include []GitHubRunObject `json:"include"`
}

type GitHubRunObject

type GitHubRunObject struct {
	Name                 string `json:"name"`
	URL                  string `json:"url"`
	Type                 string `json:"type"`
	IgnoreVersions       string `json:"ignoreVersions"`
	CatalogName          string `json:"catalog-name"`
	ResourcesTarballName string `json:"resources-tarball-name"`
}

type GitHubTags added in v0.3.0

type GitHubTags struct {
	TagName string         `json:"tag_name"`
	URL     string         `json:"url"`
	Assets  []GitHubAssets `json:"assets"`
}

GitHubTags represents the response JSON when fetching various tags/releases of a GitHub repo.

type ResourceInfo added in v0.3.0

type ResourceInfo struct {
	Source  string
	Version string
}

ResourceInfo represents the value field of a map where the key is the name of the resource.

Jump to

Keyboard shortcuts

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