generate

package
v2.0.12 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationCommand

func NewApplicationCommand(o *ApplicationOptions) *cobra.Command

func NewCommand

func NewCommand(o *Options) *cobra.Command

NewCommand returns a new generate manifests command

func NewExperimentCommand

func NewExperimentCommand(o *ExperimentOptions) *cobra.Command

func NewRBACCommand

func NewRBACCommand(o *RBACOptions) *cobra.Command

func NewSampleCommand

func NewSampleCommand(o *SampleOptions) *cobra.Command

func NewTrialCommand

func NewTrialCommand(o *TrialOptions) *cobra.Command

Types

type ApplicationOptions

type ApplicationOptions struct {
	// Config is the Optimize Configuration used to generate the application
	Config *config.OptimizeConfig
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	Generator       application.Generator
	Resources       []string
	DefaultResource konjurev1beta2.Kubernetes
}

type ExperimentOptions

type ExperimentOptions struct {
	// Config is the Optimize Configuration used to generate the experiment
	Config *config.OptimizeConfig
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	Generator experiment.Generator

	Filename  string
	Resources []string
}

type Options

type Options struct {
	// Config is the Optimize Configuration
	Config *config.OptimizeConfig
}

Options includes the configuration for the subcommands

type RBACOptions

type RBACOptions struct {
	// Config is the Optimize Configuration used to generate the role binding
	Config *config.OptimizeConfig
	// Printer is the resource printer used to render generated objects
	Printer commander.ResourcePrinter
	// IOStreams are used to access the standard process streams
	commander.IOStreams

	Filename           string
	Name               string
	IncludeNames       bool
	ClusterRole        bool
	ClusterRoleBinding bool
	// contains filtered or unexported fields
}

func (*RBACOptions) Complete

func (o *RBACOptions) Complete(ctx context.Context)

type SampleOptions

type SampleOptions struct {
	Filter konjure.Filter
	Out    konjure.Writer
}

type TrialOptions

type TrialOptions struct {
	experiments.SuggestOptions

	Filename       string
	Job            string
	JobTrialNumber int
}

Jump to

Keyboard shortcuts

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