Documentation
¶
Index ¶
- func NewCloudResourceCommand(factory cmd.Factory) *cobra.Command
- func NewCommand(factory cmd.Factory) *cobra.Command
- func NewConfigurationCommand(factory cmd.Factory) *cobra.Command
- func NewRevisionCommand(factory cmd.Factory) *cobra.Command
- type CloudResourceCommand
- type Command
- type ConfigurationCommand
- type RevisionCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudResourceCommand ¶ added in v0.4.0
NewCloudResourceCommand creates and returns a new command
func NewCommand ¶
NewCommand creates and returns a new command
func NewConfigurationCommand ¶
NewConfigurationCommand creates a new command
Types ¶
type CloudResourceCommand ¶ added in v0.4.0
type CloudResourceCommand struct {
cmd.Factory
// Name is the name of the resource
Name string
// Namespace is the namespace of the resource
Namespace string
// IncludeProvider is whether to include the provider in the output
IncludeProvider bool
// IncludeCheckov is whether to include checkov in the output
IncludeCheckov bool
// Directory is the path to write the files to
Directory string
}
CloudResourceCommand are the options for the command
type ConfigurationCommand ¶
type ConfigurationCommand struct {
cmd.Factory
// File is the location of the file containing the configuration
File string
// Name is the name of the resource
Name string
// Namespace is the namespace of the resource
Namespace string
// IncludeProvider is whether to include the provider in the output
IncludeProvider bool
// IncludeCheckov is whether to include checkov in the output
IncludeCheckov bool
// IncludeTerraform is whether to include terraform in the output
IncludeTerraform bool
// Directory is the path to write the files to
Directory string
// Configuration is the configuration we are converting
Configuration *terraformv1alpha1.Configuration
// Contexts is a list of contexts from the cluster
Contexts *terraformv1alpha1.ContextList
// Policies is a list of policies from the cluster
Policies *terraformv1alpha1.PolicyList
// Providers is a collection of providers in the cluster
Providers *terraformv1alpha1.ProviderList
}
ConfigurationCommand are the options for the command
type RevisionCommand ¶ added in v0.4.0
type RevisionCommand struct {
cmd.Factory
// Name is the name of the resource
Name string
// Namespace is the namespace of the resource
Namespace string
// IncludeProvider is whether to include the provider in the output
IncludeProvider bool
// IncludeCheckov is whether to include checkov in the output
IncludeCheckov bool
// IncludeTerraform is whether to include terraform in the output
IncludeTerraform bool
// Directory is the path to write the files to
Directory string
// File is the path to the file to containing the revision
File string
// Revision the revision we are converting
Revision *terraformv1alpha1.Revision
// Contexts is a list of contexts from the cluster
Contexts *terraformv1alpha1.ContextList
// Policies is a list of policies from the cluster
Policies *terraformv1alpha1.PolicyList
// Providers is a collection of providers in the cluster
Providers *terraformv1alpha1.ProviderList
// contains filtered or unexported fields
}
RevisionCommand are the options for the command
Click to show internal directories.
Click to hide internal directories.