cargo

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCargoInstalled

func IsCargoInstalled() bool

func IsLockFileDetected

func IsLockFileDetected(lockfile string) bool

Types

type InlineKeyChain

type InlineKeyChain struct {
	// [A][S][C] Token specifies the cargo registry token to use for authentication.
	Token string `yaml:",omitempty"`
	// [A][S][C] HeaderFormat specifies the cargo registry header format to use for authentication (defaults to `Bearer`).
	HeaderFormat string `yaml:"headerformat,omitempty"`
}

type Registry

type Registry struct {
	// [A][S][C] Auth specifies the cargo registry auth to use for authentication.
	Auth InlineKeyChain `yaml:",omitempty"`
	// [A][S][C] URL specifies the cargo registry URL to use for authentication.
	URL string `yaml:",omitempty"`
	// [A][S][C] RootDir specifies the cargo registry root directory to use as FS index.
	RootDir string `yaml:",omitempty"`
	// [A] SCMID specifies the cargo registry scmId to use as FS index.
	SCMID string `yaml:",omitempty"`
}

func (Registry) Validate

func (r Registry) Validate() bool

Jump to

Keyboard shortcuts

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