Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) BindFlags(fs *pflag.FlagSet)
- func (p Plugin) DeprecationWarning() string
- func (p Plugin) GetCreateAPISubcommand() plugin.CreateAPISubcommand
- func (p *Plugin) InjectConfig(c config.Config) error
- func (p *Plugin) InjectResource(res *resource.Resource) error
- func (Plugin) Name() string
- func (p *Plugin) PostScaffold() error
- func (p *Plugin) PreScaffold(machinery.Filesystem) error
- func (p *Plugin) Scaffold(fs machinery.Filesystem) error
- func (Plugin) SupportedProjectVersions() []config.Version
- func (p *Plugin) UpdateMetadata(cliMeta plugin.CLIMetadata, subcmdMeta *plugin.SubcommandMetadata)
- func (Plugin) Version() plugin.Version
- type PluginConfig
- type ResourceData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the plugin.Full interface
func (Plugin) DeprecationWarning ¶ added in v3.10.0
func (Plugin) GetCreateAPISubcommand ¶
func (p Plugin) GetCreateAPISubcommand() plugin.CreateAPISubcommand
GetCreateAPISubcommand will return the subcommand which is responsible for scaffolding apis
func (*Plugin) InjectConfig ¶
func (*Plugin) InjectResource ¶
func (*Plugin) PostScaffold ¶
func (p *Plugin) PostScaffold() error
func (*Plugin) PreScaffold ¶
func (p *Plugin) PreScaffold(machinery.Filesystem) error
func (*Plugin) Scaffold ¶
func (p *Plugin) Scaffold(fs machinery.Filesystem) error
func (Plugin) SupportedProjectVersions ¶
SupportedProjectVersions returns an array with all project versions supported by the plugin
func (*Plugin) UpdateMetadata ¶
func (p *Plugin) UpdateMetadata(cliMeta plugin.CLIMetadata, subcmdMeta *plugin.SubcommandMetadata)
type PluginConfig ¶ added in v3.12.0
type PluginConfig struct {
Resources []ResourceData `json:"resources,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.