convert

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloudResourceCommand added in v0.4.0

func NewCloudResourceCommand(factory cmd.Factory) *cobra.Command

NewCloudResourceCommand creates and returns a new command

func NewCommand

func NewCommand(factory cmd.Factory) *cobra.Command

NewCommand creates and returns a new command

func NewConfigurationCommand

func NewConfigurationCommand(factory cmd.Factory) *cobra.Command

NewConfigurationCommand creates a new command

func NewRevisionCommand added in v0.4.0

func NewRevisionCommand(factory cmd.Factory) *cobra.Command

NewRevisionCommand creates and returns 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

func (*CloudResourceCommand) Run added in v0.4.0

Run runs the command

type Command

type Command struct {
	cmd.Factory
}

Command 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

func (*ConfigurationCommand) Run

Run is the entry point 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

func (*RevisionCommand) Run added in v0.4.0

func (o *RevisionCommand) Run(ctx context.Context) error

Run implements the command

Jump to

Keyboard shortcuts

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