Documentation ¶
Index ¶
Constants ¶
View Source
const ( DistributionSpecReferrersTagV1_1 = "v1.1-referrers-tag" // Referrers tag fallback DistributionSpecReferrersAPIV1_1 = "v1.1-referrers-api" // Referrers API )
Variables ¶
This section is empty.
Functions ¶
func AutocompleteFormulae ¶
AutocompleteFormulae returns an autocompletion function that suggests formula names.
func CompleteInstalledFormulae ¶
CompleteInstalledFormulae returns an autocompletion function that suggests formula names.
Types ¶
type DistributionSpec ¶ added in v0.2.0
type DistributionSpec string
DistributionSpec option struct which implements pflag.Value interface.
Indivates the preference of the implementation of the Referrers API:
- "v1.1-referrers-api" for referrers API
- "v1.1-referrers-tag" for referrers tag scheme
- "" for auto fallback
func (*DistributionSpec) Options ¶ added in v0.2.0
func (*DistributionSpec) Options() string
Options returns the string of usable options for the flag.
func (*DistributionSpec) Set ¶ added in v0.2.0
func (ds *DistributionSpec) Set(value string) error
Set validates and sets the flag value from a string argument.
func (*DistributionSpec) String ¶ added in v0.2.0
func (ds *DistributionSpec) String() string
String returns the string representation of the flag.
func (*DistributionSpec) Type ¶ added in v0.2.0
func (*DistributionSpec) Type() string
Type returns the string value of the inner flag.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.