Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ValidFiles specifies accepted Cargo files. ValidFiles [1]string = [1]string{"Cargo.toml"} )
Functions ¶
This section is empty.
Types ¶
type Cargo ¶
type Cargo struct {
// contains filtered or unexported fields
}
Cargo struct holds all information needed to generate cargo manifest.
func (Cargo) DiscoverManifests ¶
type MatchingRule ¶
type MatchingRule struct {
// Path specifies a Cargo crate path pattern, the pattern requires to match all of name, not just a subpart of the path.
Path string
}
MatchingRule allows to specifies rules to identify manifest
type MatchingRules ¶
type MatchingRules []MatchingRule
type Spec ¶
type Spec struct {
// RootDir defines the root directory used to recursively search for Cargo.toml
RootDir string `yaml:",omitempty"`
// Ignore specifies rule to ignore Cargo.toml update.
Ignore MatchingRules `yaml:",omitempty"`
// Only specify required rule to restrict Cargo.toml update.
Only MatchingRules `yaml:",omitempty"`
// Auths provides a map of registry credentials where the key is the registry URL without scheme
Registries map[string]cargo.Registry `yaml:",omitempty"`
}
Spec defines the Cargo parameters.
Click to show internal directories.
Click to hide internal directories.